ESP32-audioI2S icon indicating copy to clipboard operation
ESP32-audioI2S copied to clipboard

Misuse of Mutex

Open MeAndy56 opened this issue 1 year ago • 1 comments

Hallo, I used your simple WIFI Radio. It worked fine, then I expanded my Code to read *.mp3 from SD. Worked fine. But if I heared WIFI musik then SD musik and switched back to WIFI musik the audio loop was hanging in the Mutex. I looked for your code and found a misuse of the mutex. You mixed different Calls with the same ground Mutex, was isn't allowed the xSemaphoreCreateRecursiveMutex() needs a different ground mutex as the simple one. I changed all to xSemaphoreCreateRecursiveMutex() now it workes fine. But I have not made extensive tests. Have a look to the mutex use if you have time. Best Regards Andreas

MeAndy56 avatar Jun 04 '24 08:06 MeAndy56

Hello Andreas, thank you for your detailed explanation. The mutex should prevent two tasks from executing a function at the same time. This will soon be corrected in the master. Best regards Wolle

schreibfaul1 avatar Jun 04 '24 19:06 schreibfaul1

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 05 '24 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 19 '24 02:07 github-actions[bot]