forkineye / ESPAsyncE131

Asynchronous E1.31 (sACN) library for Arduino ESP8266 and ESP32
128 stars 28 forks source link

Locks up on the ESP32 #8

Closed computergeek1507 closed 4 years ago

computergeek1507 commented 5 years ago

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 https://github.com/espressif/arduino-esp32/issues/2685

Thanks, Scott

forkineye commented 5 years ago

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

computergeek1507 commented 4 years ago

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.

ayufan commented 4 years ago

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.