Repository navigation
Closed
Labels
bugconfirmedThe bug is reproducable and confirmedfixed in sourceThis issue is unsolved in the latest release but fixed in master
Milestone
Description
What happened?
After add an SK6812 and other WS2812B in WLED settings led preferences ESP reboots.
To Reproduce Bug
Installing WLED
- Install WLED 0.15.0-b7 from https://install.wled.me (using option Erase all user data)
- Set Wi-Fi (Joined to hidden SSID, so name and password needs to be writen)
- Visit device.
- Go to config> Wifi Setup > Set static IP (10.10.1.135) and gateway to router's IP. Click onsave and connect
- open http://10.10.1.135
- Go to config > Usermods > and change the AudioReactive's Digital mic pins to my config: SD-22, WS-21, SCK-23
- Save and type ir browser's address http://10.10.1.135/reset
- Go to config > Led preferences, then start to configure LED & Hardware setup
Hardware & setup
- Disable automatic brightness limiter ( my PSU is 300w, and I setup 234 leds)
- Change the 1st led ouput and add WS2812B led strip with same lenght: 18 LEDS using GPIOs: 26, 5, 14, 16,17)
to be more clear: Pin 14 needs to be changed from audioreactive digital mic.
First time I try, fails when save my led settings (GPIO already used),
after save led ouputs (1 to 5), I change GPIO from AudioReactive preferences,
then return to add more led ouputs (8 in total for my config) and can't set any other
led output either rebooting or disconnecting the ESP32.
I need reinstall WLED and change the digital mic pins before set my led ouput preferences.
- added 1 WS2812B led strip with 11 leds length and GPIO 13
- Added 1 SK6812 les strip with length 112 leds and GPIO 15
After step 5 save settings. and the ligtstrips starts to flash
Watching the console from https://install.wled.me get this:
ets ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x12 (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
abort() was called at PC 0x4008da26 on core 1
ELF file SHA256: 0000000000000000
Backtrace: 0x4008ad54:0x3ffbff60 0x4008b0b1:0x3ffbff80 0x4008da26:0x3ffbffa0 0x4008cad1:0x3ffbffd0 0x4008409a:0x3ffbfff0 0x40086291:0x3ffc0020 0x4000d085:0x3ffb1f00 0x40082c77:0x3ffb1f20 0x4011bcef:0x3ffb1f40 0x4011c45a:0x3ffb1f90 0x4013ce31:0x3ffb1fb0 0x4008cb3a:0x3ffb1fd0
Rebooting...
Expected Behavior
In version 0.15.0-b1, I can setup this configuration without problem using the ESP32 and WLED as I describe before. but starting from 0.15.0-b2 the bug is exactly the same.
Install Method
Binary from WLED.me
What version of WLED?
0.15.0-b7
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
ets ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x12 (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
abort() was called at PC 0x4008da26 on core 1
ELF file SHA256: 0000000000000000
Backtrace: 0x4008ad54:0x3ffbff60 0x4008b0b1:0x3ffbff80 0x4008da26:0x3ffbffa0 0x4008cad1:0x3ffbffd0 0x4008409a:0x3ffbfff0 0x40086291:0x3ffc0020 0x4000d085:0x3ffb1f00 0x40082c77:0x3ffb1f20 0x4011bcef:0x3ffb1f40 0x4011c45a:0x3ffb1f90 0x4013ce31:0x3ffb1fb0 0x4008cb3a:0x3ffb1fd0
Rebooting...Anything else?
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugconfirmedThe bug is reproducable and confirmedfixed in sourceThis issue is unsolved in the latest release but fixed in master
Activity
dosipod commentedon Nov 22, 2024
I can see the same crash
The error related to "AR: Failed to initialize sound input driver. Please check input PIN settings. " is there all the time even if the usermod is not active and pins are unused
chybeat commentedon Nov 22, 2024
Thanks for your complete log @dosipod. I think was a problem with my board, and amazon works all night... so, I bought 2 more ESP32 boards thinking mine is broken 😅.... Your log is much better and complete than mine. So Thanks for take time to reproduce the error and share the information.
softhack007 commentedon Nov 22, 2024
@dosipod @chybeat please check if the crash also happens if you configure all outputs as ws2812b
It might be that the bug is related to having one "sk6812" (RGBW) output among all other being ws2812b.
softhack007 commentedon Nov 22, 2024
I could reproduce the crash, but its still very mysterious to me what's going on.
In fact it has something to do with adding the SK6812 led strip, because it was crashing right afterwards and then boot-looping.
to reproduce, its enough to add LEDs in preferences
--> bootloop.
after that we have a bootloop, with several different crash locations
[-]Continue reboots using GPIO14 and GPIO 15 in led out after change from AudioReactive digitalmic[/-][+](ESP32) Bootloop after adding SK6812 led strip to existing setup with 6 ws2812b[/+]softhack007 commentedon Nov 22, 2024
It would be good to understand the root cause of this problem before releasing 0.15.0-RC1
dosipod commentedon Nov 22, 2024
@softhack007 We could try more scenarios if that would help , just one thing that might help in this and in other cases how did you get the Backtrace details in your post , could you make an environment available as an example
softhack007 commentedon Nov 22, 2024
Hi, the backtrace comes from "esp exception decoder". It only works when you build and upload in VSCode, as exception decoder needs information from the compilation process.
You only need this in your buildenv
monitor_filters = esp32_exception_decoderIn VSCode
esp32devIf WLED crashes, you should see the function backtrace
The backtrace is not always correct, but usually a good start for analysis.
dosipod commentedon Nov 22, 2024
I do not have access to VSC because of big brother but only compile on github with both debug flag and exception_decoder but can not get the detailed Backtrace but only the same as in my post . Was hoping that is possible online
dosipod commentedon Nov 23, 2024
@softhack007 I was able to reproduce the crash without adding SK6812 so it also happens with all the output set to ws2812b
I did not test on older builds but since the OP mentioned it is working on 0.15.0-b1 but not on 0.15.0-b2 , might be that could
isolated the changes to either led preference page or god forbid the audio usermod
chybeat commentedon Nov 23, 2024
Just and idea. @softhack007. Try to watch the saved cfg.json after crash (if possible), I remember time ago when implemented the brightness limiter, when saving does nothing, the google inspector says something like 'not possible to point over input area' , with unmarked brightness limiter checkbox and points to a 'required' element in ouputs. This maybe saves wrong configuration, may be happens in global saves as while saving (for fisrt time) on any settings pages, and maybe is not saving o reading GPIO config for Audioreactive, when use GPIO. Again, is just an idea :)
willmmiles commentedon Nov 23, 2024
I've replicated this on my test setup; it looks like a buffer overflow of some kind when using the parallel I2S output mode.
3 remaining items
Defer calling begin() on digital buses
Defer calling begin() on digital buses
netmindz commentedon Nov 25, 2024
Can we close this as fixed then @willmmiles ?
dosipod commentedon Nov 26, 2024
The bootloop is fixed so for sure this is better then current situation and you already merged that so this is after the fact question
But the 10 buses limit is not clear ( I know that was increased recently as I see in const.h ) but if you try to add more then 10 and you reboot then it will go back to 10 buses only .
The behavior before was that you can not add more then 10 digital buses as after 10 the led output will be grayed same as below

I see also he opened another issue here #4315 so maybe settings/leds page is not
100 % ready and it is very critical page
netmindz commentedon Nov 26, 2024
Please log a separate issue for the limit of 10 @dosipod
dosipod commentedon Nov 26, 2024
@netmindz Sure but the question was is the PR that fixed the crash responsible for breaking the 10 digital buses limit or was there another change that broke it as I have hard time tracking old PRs due to strange naming and combing multiple fixes in the same PR . It may also be better to engorge testing , feedback and issue reporting is not to close issues that someone toke the time to test and open unless they confirmed . Keep it open for a while marked as fixed in source as a courtesy to the OP @chybeat
willmmiles commentedon Nov 26, 2024
#4312 made no changes to the bus settings logic -- it only changed the call order for bus hardware initialization. I think we can close this issue; problems with the settings page are unrelated.
dosipod commentedon Nov 27, 2024
This is not the proper way to close raised cases but with that I assume you have tested with real leds on 10 outputs as I do not have the setup to test that at the moment
willmmiles commentedon Nov 27, 2024
This issue entry covers what the title says and first post state and no more: a bootloop if more than 6 entries are added. This problem has been fixed; the updated software no longer crashes and enters a boot loop. Hence we have closed this issue as there is no more work required on it.
If there's some other problem with 10 outputs, that is a different and unrelated issue, and should be raised as a new entry as @netmindz said earlier. As I see things, issue entries aren't support cases - each entry should cover one specific software problem; they aren't meant to be an ongoing conversation with a specific user until all their problems are solved.
dosipod commentedon Nov 27, 2024
I have also tested with even 10 output and do not see any crash issue but not with real leds but the OP has the setup to test on 7 outputs with real leds . If the supported number of outputs at the moment is 10 and you have change something to fix the crash then the proper way is to test 10 outputs with real leds as might be your change has introduced something else say flicker . No one is forcing you to close cases and there are still a lot of other cases open so not sure why only this
Defer calling begin() on digital buses
Defer calling begin() on digital buses