You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guru Meditation Error: Core 1 panic'ed if pin not available #4782
I have board with ethernet. Ethernet chip use pins 16/17 for communication.
It looks like by default WLED use pin 16 as data pin for W28xx strips.
As result W28xx object not initialized properly and app crash on attempt of control leds. This lead to AP not available and it is not possible to fix config without full binary reflash.
To Reproduce Bug
Flash ethernet firmware on ethernet supported board with pin 16/17 as data pins and configure ethernet.
Expected Behavior
If data pin not available WLED shouldn't run effects on led object
We should not be panic like this, there is code to check if the pin is available and we have checks like if (!_valid) return; so why are we still seeing the crash? Do you have the full crash log @maxx-ukoo ?
I am running a "Wemos D1 mini" with RGB outputs on GPIO 5, 4, and 3. Updating my firmware with main/nightly today the output didn't work anymore. Using bisect I found this commit to be the issue.
git bisect start
# status: waiting for both good and bad commits
# bad: [1fb9eb771e2cb6f9163f2ce695acb3c1bedd8249] Merge pull request #4856 from wled/copilot/fix-4855
git bisect bad 1fb9eb771e2cb6f9163f2ce695acb3c1bedd8249
# status: waiting for good commit(s), bad commit known
# good: [4f3992b4dc57c888b53d9576c894a278e03e4cfc] 0.15.1
git bisect good 4f3992b4dc57c888b53d9576c894a278e03e4cfc
# good: [a121f5b61b2dbb2934630120f22527a5cdab91d4] Merge pull request #4286 from blazoncek/xml-bugfix
git bisect good a121f5b61b2dbb2934630120f22527a5cdab91d4
# good: [2eff6b7a3a202638ac96b33121cea8b5ee3b1fd9] usermod/sensors_to_mqtt: Add explicit dep
git bisect good 2eff6b7a3a202638ac96b33121cea8b5ee3b1fd9
# good: [849d5e6667c2f5e682281d21f46dd995606e006c] Add libArchive to other usermods
git bisect good 849d5e6667c2f5e682281d21f46dd995606e006c
# good: [9099b13f692275978c8848923f29dd536fa5938a] Fix deps for Si7021_MQTT_HA
git bisect good 9099b13f692275978c8848923f29dd536fa5938a
# good: [8bcd4550f898129f07157b321744dcb73db3045b] Merge pull request #4762 from willmmiles/parallel-i2s-bus-selection
git bisect good 8bcd4550f898129f07157b321744dcb73db3045b
# bad: [93e011d4039d1a1e8c4a70503f2d79cf4ac44c3b] Merge pull request #4769 from wled/fix-4671
git bisect bad 93e011d4039d1a1e8c4a70503f2d79cf4ac44c3b
# bad: [591dbe387cb67de0621c6fcbea4f4a2b78aaa55c] Merge pull request #4780 from jasonsomers/main
git bisect bad 591dbe387cb67de0621c6fcbea4f4a2b78aaa55c
# good: [ab5b6f9b7dd36f4ec865caaea5eb896df12d4a21] fix change that got lost
git bisect good ab5b6f9b7dd36f4ec865caaea5eb896df12d4a21
# good: [806163f1edeed1133871a8959d204e5d6bac3a54] Merge branch 'wled:main' into main
git bisect good 806163f1edeed1133871a8959d204e5d6bac3a54
# bad: [e5ba97bbe2e077438b5a93ee16406b81f4a8ab75] Prevent crash during blend if led init fails, https://github.com/wled/WLED/issues/4782
git bisect bad e5ba97bbe2e077438b5a93ee16406b81f4a8ab75
# good: [b79e81f3be5dd0d75cae3f163bebdb19493feb89] maxIssues for release notes
git bisect good b79e81f3be5dd0d75cae3f163bebdb19493feb89
# first bad commit: [e5ba97bbe2e077438b5a93ee16406b81f4a8ab75] Prevent crash during blend if led init fails, https://github.com/wled/WLED/issues/4782
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
Thank you for using WLED! ✨
It looks like the safest solution - as we should avoid any pin used by at least one ethernet config - will be to use gpio 4 in ethernet enabled builds.
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
Thank you for using WLED! ✨
For what it's worth, I hit this bug without ethernet, via a different path to the same precondition: a misconfigured GPIO. I had one LED output set to GPIO 16 on an Adafruit Feather ESP32 V2 (https://www.adafruit.com/product/5400). That board's ESP32-PICO-MINI-02 module uses GPIO 16/17 internally for PSRAM, so pin 16 isn't broken out/available — same situation as the ethernet boards, different cause. The device crashed with random timing, typically within a few minutes of boot. Changing the output to a valid pin (GPIO 33) stopped the crashes (2+ hours uptime and counting, previously minutes). So the bug is about any unavailable pin, not ethernet specifically.
This was on the official WLED 0.16.0 release ESP32 build (vid 2605030). Crash log below; ELF SHA is in the log if anyone wants to decode the backtrace.
Activity
blazoncek commentedon Jul 18, 2025
Please use latest sources and compile from upstream.
Workaround is to define default GPIO for LEDs.
netmindz commentedon Jul 27, 2025
We should not be panic like this, there is code to check if the pin is available and we have checks like
if (!_valid) return;so why are we still seeing the crash? Do you have the full crash log @maxx-ukoo ?Prevent crash during blend if led init fails, #4782
netmindz commentedon Jul 27, 2025
Please can you check if my commit was enough to resolve the issue you were having @maxx-ukoo ?
maxx-ukoo commentedon Jul 27, 2025
@netmindz i broke esp32 prog board, I am waiting for another prog board from ali. I will be able to test in few weeks.
qistoph commentedon Aug 26, 2025
e5ba97b introduces issues for my
PWM RGBI am running a "Wemos D1 mini" with RGB outputs on GPIO
5,4, and3. Updating my firmware withmain/nightlytoday the output didn't work anymore. Using bisect I found this commit to be the issue.blazoncek commentedon Aug 26, 2025
@netmindz your fix from e5ba97b seems incorrect and does not really resolve the underlying issue.
A better way is to change default GPIO assignment during compilation by changing this line:
WLED/wled00/const.h
Line 577 in 1fb9eb7
to
#if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(WLED_USE_ETHERNET)It may still cause issues if DMX is also compiled (as GPIO1 may also be used by some Ethernet boards), but at least it is not a default build.
Change default LED GPIO from 16 to 2 for ethernet boards
github-actions commentedon Dec 24, 2025
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
Thank you for using WLED! ✨
softhack007 commentedon Dec 24, 2025
Same issue as described here
It looks like the safest solution - as we should avoid any pin used by at least one ethernet config - will be to use gpio 4 in ethernet enabled builds.
github-actions commentedon Apr 24, 2026
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
Thank you for using WLED! ✨
tebrown commentedon Jul 19, 2026
For what it's worth, I hit this bug without ethernet, via a different path to the same precondition: a misconfigured GPIO. I had one LED output set to GPIO 16 on an Adafruit Feather ESP32 V2 (https://www.adafruit.com/product/5400). That board's ESP32-PICO-MINI-02 module uses GPIO 16/17 internally for PSRAM, so pin 16 isn't broken out/available — same situation as the ethernet boards, different cause. The device crashed with random timing, typically within a few minutes of boot. Changing the output to a valid pin (GPIO 33) stopped the crashes (2+ hours uptime and counting, previously minutes). So the bug is about any unavailable pin, not ethernet specifically.
This was on the official WLED 0.16.0 release ESP32 build (vid 2605030). Crash log below; ELF SHA is in the log if anyone wants to decode the backtrace.
Prevent crash during blend if led init fails, wled#4782