~aleteoryx/muditaos

dc9ad45a04a4b592ee020debea06fe51a2560f8c — Adam Dobrowolski 3 years ago 523eb6f
[MOS-53] Not enough stack for audio worker

There were ocasional crashes due to too small stack for audio worker.
These were not caught via stack overflow catching logic most of times
1 files changed, 2 insertions(+), 2 deletions(-)

M module-audio/Audio/decoder/DecoderWorker.hpp
M module-audio/Audio/decoder/DecoderWorker.hpp => module-audio/Audio/decoder/DecoderWorker.hpp +2 -2
@@ 1,4 1,4 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once


@@ 40,7 40,7 @@ namespace audio
        auto disablePlayback() -> bool;

      private:
        static constexpr std::size_t stackDepth = 6 * 1024;
        static constexpr std::size_t stackDepth = 12 * 1024;

        virtual auto handleMessage(uint32_t queueID) -> bool override;
        void pushAudioData();