Skip to content

Guru Meditation Error: Core 1 panic'ed if pin not available #4782

Closed as not planned

Description

@maxx-ukoo

What happened?

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

Install Method

Self-Compiled

What version of WLED?

2412040 v4 eth build from https://github.com/wled/WLED/compare/0_15_x...maxx-ukoo:WLED:mk_0_15_0_RTL8201?expand=1 branch

Which microcontroller/board are you seeing the problem on?

Other

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. blazoncek commented on Jul 18, 2025

    @blazoncek
    Contributor

    Please use latest sources and compile from upstream.

    Workaround is to define default GPIO for LEDs.

  2. added
    workaround
    on Jul 18, 2025
  3. netmindz commented on Jul 27, 2025

    @netmindz
    Member

    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 ?

  4. removed
    workaround
    on Jul 27, 2025
  5. netmindz commented on Jul 27, 2025

    @netmindz
    Member

    Please can you check if my commit was enough to resolve the issue you were having @maxx-ukoo ?

  6. maxx-ukoo commented on Jul 27, 2025

    @maxx-ukoo
    Author

    @netmindz i broke esp32 prog board, I am waiting for another prog board from ali. I will be able to test in few weeks.

  7. qistoph commented on Aug 26, 2025

    @qistoph

    e5ba97b introduces issues for my PWM RGB

    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
    
  8. blazoncek commented on Aug 26, 2025

    @blazoncek
    Contributor

    @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:

    #if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3)

    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.

  9. added a commit that references this issue on Aug 26, 2025
    30b61dd
  10. github-actions commented on Dec 24, 2025

    @github-actions

    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! ✨

  11. added
    stale
    on Dec 24, 2025
  12. softhack007 commented on Dec 24, 2025

    @softhack007
    Member

    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.

  13. removed
    stale
    on Dec 24, 2025
  14. github-actions commented on Apr 24, 2026

    @github-actions

    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! ✨

  15. added
    stale
    on Apr 24, 2026
  16. removed
    stale
    on May 2, 2026
  17. tebrown commented on Jul 19, 2026

    @tebrown

    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.

    [12:21:11]Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled. 
    [12:21:11] [12:21:11]Core  1 register dump: [12:21:11]PC      : 0x400918f4  PS      : 0x00060633  A0      : 0x80091e7a  A1      : 0x3ffdc110   
    [12:21:11]A2      : 0x00000000  A3      : 0xd4fab25d  A4      : 0x33333333  A5      : 0x0000abab   
    [12:21:11]A6      : 0x00060423  A7      : 0x00060420  A8      : 0xfffff000  A9      : 0x0000000c   
    [12:21:11]A10     : 0x00001574  A11     : 0xd4fab22d  A12     : 0xd4fab22d  A13     : 0xffffffff   
    [12:21:11]A14     : 0x00060623  A15     : 0x00060623  SAR     : 0x00000014  EXCCAUSE: 0x0000001c   
    [12:21:11]EXCVADDR: 0xd4fab25d  LBEG    : 0x4008c63d  LEND    : 0x4008c64d  LCOUNT  : 0xffffffff   
    [12:21:11] 
    [12:21:11] 
    [12:21:11]Backtrace: 0x400918f1:0x3ffdc110 0x40091e77:0x3ffdc130 0x40091f78:0x3ffdc150 0x40084d42:0x3ffdc170 0x40084d94:0x3ffdc190 0x40092349:0x3ffdc1b0 0x40130265:0x3ffdc1d0 0x40133949:0x3ffdc1f0 0x401329fe:0x3ffdc250 0x40131516:0x3ffdc2a0 0x40121711:0x3ffdc2f0 0x40123105:0x3ffdc370 0x40134385:0x3ffdc3d0 0x401ba4a9:0x3ffdc420 0x40134bcd:0x3ffdc440 0x4013153d:0x3ffdc480 0x401325ec:0x3ffdc4d0 0x4013263f:0x3ffdc510 0x401327f5:0x3ffdc550 0x4012647d:0x3ffdc570 0x401268d1:0x3ffdc5a0 0x401269e5:0x3ffdc5c0 
    [12:21:11] 
    [12:21:11] 
    [12:21:11] 
    [12:21:11] 
    [12:21:11]ELF file SHA256: bd9adb8871a7ce4f 
    [12:21:11] 
    [12:21:11]Rebooting... 
    [12:21:11]ets Jul 29 2019 12:21:46 
    [12:21:11] 
    [12:21:11]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 
    [12:21:11]configsip: 271414342, SPIWP:0xee 
    [12:21:11]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 
    [12:21:11]mode:DOUT, clock div:2 
    [12:21:11]load:0x3fff0018,len:4 
    [12:21:11]load:0x3fff001c,len:1044 
    [12:21:11]load:0x40078000,len:10124
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions