vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
383 stars 69 forks source link

ESP32 crashes after sending "Switch on/off ALL devices" in Alexa App #81

Closed pvint closed 3 years ago

pvint commented 5 years ago

Original report by Marcel Hunfeld (Bitbucket: pariot, GitHub: pariot).


Sending single device commands works like a charme, but when you press "Switch on all devices" in the Alexa app, Alexa sends commands for each device, one after another, but with a really small delay. This seems to crash the ESP32 after having installed a certain amount of devices.

On my side, I have added 5 devices to the list. After pressing the "Switch All devices" a few times (3-4x), the ESP32 crashes with a stacktrace that leads in the end to the ASyncWebserver-Module, to the destructor/free-methodcall, to be exact.

Can anyone reproduce this issue on his/her side?

pvint commented 5 years ago

Original comment by fabian.spinrath@googlemail.com (Bitbucket: twinking, GitHub: twinking).


Hi,

I can reproduce the error. I also found out, that i get it more often when the time in the callback function gets longer. When there is no code in the callback function you do not get errors. Could you find any solution or workaround?

Greets

pvint commented 3 years ago

@twinking @pariot I think this is the same thing I have had happen... see #115 I just took over the project, and this is one of my higher priorities (I've been using the patch referenced in #115 for a week or two without issue, but I want to look into it further before committing the code)

pvint commented 3 years ago

I applied the change to the dev branch - please test and let me know (I've been using it like that for about a week without a crash)