BlueAndi / Pixelix

Full RGB LED matrix, based on an ESP32 and WS2812B LEDs.
MIT License
295 stars 59 forks source link

[Bug] Info page causes reset on S2 and S3 #186

Open BlueAndi opened 5 days ago

BlueAndi commented 5 days ago

With the espressif32 @ ~6.9.0 in the Development branch, the info page causes a reset. Problem is a known bug in EspClass::getFlashChipMode(), see https://github.com/espressif/arduino-esp32/issues/9816

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x420f4470  PS      : 0x00060c30  A0      : 0x82010c75  A1      : 0x3fcbceb0
A2      : 0x00000008  A3      : 0x3c122021  A4      : 0x00000000  A5      : 0x0000ff00
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x8204d9da  A9      : 0x3fcbce90
A10     : 0x3fcbcefc  A11     : 0x3c122021  A12     : 0x00000000  A13     : 0x0000ff00
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x00000019  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000008  LBEG    : 0x40055499  LEND    : 0x400554a9  LCOUNT  : 0xffffffef

Backtrace: 0x420f446d:0x3fcbceb0 0x42010c72:0x3fcbced0 0x42010af7:0x3fcbcef0 0x420f1989:0x3fcbcf30 0x42023cfd:0x3fcbcf50 0x42023f7b:0x3fcbcfe0 0x4201fbc9:0x3fcbd040 0x4201fbe9:0x3fcbd060 0x420d82cd:0x3fcbd080 0x420d8749:0x3fcbd0b0 0x420d78e7:0x3fcbd130
  #0  0x420f446d in EspClass::getFlashChipMode() at C:/Users/XXX/.platformio/packages/framework-arduinoespressif32/cores/esp32/Esp.cpp:356
  #1  0x42010c72 in tmpl::getFlashChipMode() at src/Web/Pages.cpp:696
  #2  0x42010af7 in tmplPageProcessor(String const&) at src/Web/Pages.cpp:306
  #3  0x420f1989 in std::_Function_handler<String (String const&), String (*)(String const&)>::_M_invoke(std::_Any_data const&, String const&) at c:\users\XXX\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\bits/std_function.h:283
  #4  0x42023cfd in std::function<String (String const&)>::operator()(String const&) const at c:\users\XXX\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\bits/std_function.h:687
      (inlined by) AsyncAbstractResponse::_fillBufferAndProcessTemplates(unsigned char*, unsigned int) at .pio/libdeps/lilygo-t-display-s3-TFT-32x8/ESP Async WebServer/src/WebResponses.cpp:442
  #5  0x42023f7b in AsyncAbstractResponse::_ack(AsyncWebServerRequest*, unsigned int, unsigned int) at .pio/libdeps/lilygo-t-display-s3-TFT-32x8/ESP Async WebServer/src/WebResponses.cpp:316
  #6  0x4201fbc9 in AsyncWebServerRequest::_onAck(unsigned int, unsigned int) at .pio/libdeps/lilygo-t-display-s3-TFT-32x8/ESP Async WebServer/src/WebRequest.cpp:219
  #7  0x4201fbe9 in std::_Function_handler<void (void*, AsyncClient*, unsigned int, unsigned int), AsyncWebServerRequest::AsyncWebServerRequest(AsyncWebServer*, AsyncClient*)::{lambda(void*, AsyncClient*, unsigned int, unsigned int)#5}>::_M_invoke(std::_Any_data const&, void*&&, AsyncClient*&&, unsigned int&&, AsyncClient*&&) at .pio/libdeps/lilygo-t-display-s3-TFT-32x8/ESP Async WebServer/src/WebRequest.cpp:73
      (inlined by) _M_invoke at c:\users\XXX\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\bits/std_function.h:297
  #8  0x420d82cd in std::function<void (void*, AsyncClient*, unsigned int, unsigned int)>::operator()(void*, AsyncClient*, unsigned int, unsigned int) const at c:\users\XXX\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\bits/std_function.h:687
      (inlined by) AsyncClient::_notifyWrittenBuffers(std::deque<AsyncClient::notify_writebuf, std::allocator<AsyncClient::notify_writebuf> >&, int) at .pio/libdeps/lilygo-t-display-s3-TFT-32x8/AsyncTCPSock/src/AsyncTCP.cpp:840     
  #9  0x420d8749 in AsyncClient::_sockIsWriteable() at .pio/libdeps/lilygo-t-display-s3-TFT-32x8/AsyncTCPSock/src/AsyncTCP.cpp:732
  #10 0x420d78e7 in _asynctcpsock_task(void*) at .pio/libdeps/lilygo-t-display-s3-TFT-32x8/AsyncTCPSock/src/AsyncTCP.cpp:141

ELF file SHA256: 31f2bfca24a73269

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x420f598e
  #0  0x420f598e in esp_pm_impl_waiti at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_pm/pm_impl.c:855

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
BlueAndi commented 22 hours ago

fyi - https://github.com/espressif/arduino-esp32/issues/10419