Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.59k stars 3.13k forks source link

Crashes when leds length is 3 #4120

Open Andro-Marian opened 2 weeks ago

Andro-Marian commented 2 weeks ago

What happened?

WLed crashes when setting some effects like Fireworks 1D

To Reproduce Bug

  1. Set the Length of leds to 3
  2. Set the effect to Fireworks 1D

Expected Behavior

To work fine.

Install Method

Binary from WLED.me

What version of WLED?

0.14.4, 0.15.0-b4

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

abort() was called at PC 0x4008f49c on core 0

ELF file SHA256: 0000000000000000

Backtrace: 0x4008a7b8:0x3ffb7710 0x4008ab15:0x3ffb7730 0x4008f49c:0x3ffb7750 0x4008f9b4:0x3ffb7770 0x4008600d:0x3ffb7790 0x4008603e:0x3ffb77b0 0x4008645d:0x3ffb77d0 0x4000beaf:0x3ffb77f0 0x40084081:0x3ffb7810 0x4018a2b1:0x3ffb7830 0x401a1ce9:0x3ffb7850 0x4019cf91:0x3ffb7870 0x4014dc73:0x3ffb7890 0x4014dcdb:0x3ffb78b0 0x4008c55e:0x3ffb78d0

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
Ada

Anything else?

No response

Code of Conduct

blazoncek commented 2 weeks ago

Can you, please, use exception decoder and provide decoded output? You will need to compile sources yourself, preferably using debug options.

Andro-Marian commented 2 weeks ago

If you can help me with a guide on VSCode how to debug, because I already try and it was unsuccessful.

I will try when I wake up tomorrow.

blazoncek commented 2 weeks ago

Please use WLED forum or Discord for that. It has been answered many times before.

Andro-Marian commented 2 weeks ago

New Text Document (2).txt

blazoncek commented 2 weeks ago

From the crash dump you provided it can be seen that the crash happens in system libraries (WiFi UDP) during handleNotification().

handleNotification() is used if you have sync receive enabled and slave device listens for sync messages. I would suspect a rogue packet...

And BTW, please use 0.15 when submitting bugs. 0.14 will not receive updates any more and several bugs were fixed in 0.15 already.

Andro-Marian commented 2 weeks ago

The Sync button is not activated. About that you say?

blazoncek commented 2 weeks ago

The Sync button is not activated. About that you say?

That button is for master aka sender. This is for slave aka receiver. It is always active but you can disable receiving by unchecking all receive groups.

Andro-Marian commented 2 weeks ago

Also, the 0_15 branch takes (41 seconds) than latest 0.15.0-b4 release to reboot. All sync settings are unchecked. 0.150-b4 Release Source.txt

blazoncek commented 2 weeks ago

Again your crash dump shows abort from within system libraries (possibly OOM during network packet receive).

I urge you to use Wireshark and monitor network traffic to and from the ESP that is crashing.

There is of course a possibility that there is a memory leak somewhere within WLED but that is impossible to tell from these crash dumps.

Andro-Marian commented 2 weeks ago

I don't think is a network issue. Another use managed it to reproduce on discord. And is only when setting the leds length below or equal to 3. For my doesn't looks a network issue.

On the 0.15.0-b4 sometimes the crash happens after leaving the Fireworks 1D to Solid than on 0.14

Still crashes with WLED-AP connected with phone. Crashes when scanning for Wi-Fi too. Maybe this should be send to the Espressif.