forkineye / ESPAsyncE131

Asynchronous E1.31 (sACN) library for Arduino ESP8266 and ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Locks up on the ESP32

computergeek1507 opened this issue · comments

On the ESP32 the library will stop reading packets after a while. With one universe in unicast mode it happens randomly. With 10 universes it stops immediately. I tried increasing the buffer slots to 30 and it will stop receiving packets when I send 4 universes of data from xLights. I am using the ESP32 1.3 rc1 ardunio core with a manual edit to the "AsyncUDP.cpp" library to workaround the issue described here espressif/arduino-esp32#2685

Thanks,
Scott

Are you still having issues with this or was related to the core?

I still get this but I have abandoned all my ESP32 development for now. It happens when I send 4+ universes of data, I think the stack will overflow but it may be a issue with my code.

I think that this code is not thread-safe. This is why you see this problem. It does not happen on ESP8266 as there's no multiple cores that can do things concurrently.