Guru Meditation Error: Core 1 panic’ed

YourName
Posts: 3
Joined: Sat May 04, 2019 4:00 pm

Guru Meditation Error: Core 1 panic’ed

Postby YourName » Sat May 04, 2019 4:07 pm

Hello.

I have an ESP32 and use it with ESPHome and it first ran well. I updated its configuration several times with success. And suddenly it began to crash with :

Code: Select all

INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[17:23:58][I][logger:119]: Log initialized
[17:23:58][VV][preferences:036]: LOAD 0: valid=YES, 0=0x00000000 1=0x0DEFE4E3 (Type=233825507, CRC=0x0DEFE4E3)
[17:23:58][C][ota:484]: There have been 0 suspected unsuccessful boot attempts.
[17:23:58][VV][preferences:049]: SAVE 0: 0=0x00000001 1=0x42F4583F (Type=233825507, CRC=0x42F4583F)
[17:23:58][I][application:055]: Running through setup()...
[17:23:58][V][application:056]: Sorting components by setup priority...
[17:23:58][C][wifi:027]: Setting up WiFi...
[17:23:58][V][wifi_esp32:033]: Enabling STA.
[17:23:58]Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
[17:23:58]Core 1 register dump:
[17:23:58]PC      : 0x400eafe3  PS      : 0x00060230  A0      : 0x800f1c49  A1      : 0x3ffb17a0  
INFO Need to fetch platformio IDE-data, please stand by
INFO Running:  platformio run -d config/klsesp2 -t idedata
WARNING Decoded 0x400eafe3: _svfprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vfprintf.c:1604
[17:24:00]A2      : 0x00000400  A3      : 0x00000000  A4      : 0x3ffb1994  A5      : 0x00000052  
[17:24:00]A6      : 0x3ffb1930  A7      : 0x00000001  A8      : 0x00000000  A9      : 0xffffffff  
[17:24:00]A10     : 0x00000024  A11     : 0x0000002a  A12     : 0xffffffff  A13     : 0x3f409df8  
[17:24:00]A14     : 0x3ffb17b0  A15     : 0xff000000  SAR     : 0x00000016  EXCCAUSE: 0x0000001c  
[17:24:00]EXCVADDR: 0x00000008  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff  
[17:24:00]
[17:24:00]Backtrace: 0x400eafe3:0x3ffb17a0 0x400f1c46:0x3ffb1ab0 0x400f1c7e:0x3ffb1b40 0x400d477e:0x3ffb1b80 0x400d4619:0x3ffb1ba0 0x4008450a:0x3ffb1be0 0x4013799f:0x3ffb1c30 0x40132787:0x3ffb1c70 0x4010fa20:0x3ffb1c90 0x4010fbf6:0x3ffb1cc0 0x400e3bf9:0x3ffb1cf0 0x4012f566:0x3ffb1d10 0x400d7a80:0x3ffb1e10 0x400d6d21:0x3ffb1e40 0x400d3862:0x3ffb1e80 0x400d33b5:0x3ffb1ea0 0x400d22a5:0x3ffb1ef0 0x400dc1b7:0x3ffb1fb0 0x40091245:0x3ffb1fd0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x400eafe3: _svfprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vfprintf.c:1604
WARNING Decoded 0x400f1c46: _vsnprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vsnprintf.c:72
WARNING Decoded 0x400f1c7e: vsnprintf at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vsnprintf.c:41
WARNING Decoded 0x400d477e: esphome::LogComponent::log_vprintf_(int, char const*, char const*, __va_list_tag)
WARNING Decoded 0x400d4619: esp_idf_log_vprintf_(char const*, __va_list_tag)
WARNING Decoded 0x4008450a: esp_log_write at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/log/log.c:215
WARNING Decoded 0x4013799f: pp_create_task
WARNING Decoded 0x40132787: ic_create_wifi_task
WARNING Decoded 0x4010fa20: wifi_init_in_caller_task
WARNING Decoded 0x4010fbf6: esp_wifi_init_internal
WARNING Decoded 0x400e3bf9: esp_wifi_init at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/wifi_init.c:98
WARNING Decoded 0x4012f566: WiFiGenericClass::mode(wifi_mode_t)
WARNING Decoded 0x400d7a80: esphome::WiFiComponent::wifi_mode_(esphome::optional<bool>, esphome::optional<bool>)
WARNING Decoded 0x400d6d21: esphome::WiFiComponent::setup()
WARNING Decoded 0x400d3862: esphome::Component::call_setup()
WARNING Decoded 0x400d33b5: esphome::Application::setup()
WARNING Decoded 0x400d22a5: setup()
WARNING Decoded 0x400dc1b7: loopTask(void*)
WARNING Decoded 0x40091245: vPortTaskWrapper at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port.c:355 (discriminator 1)
[17:24:01]
[17:24:01]Rebooting...
[17:24:01]ets Jun  8 2016 00:22:57
[17:24:01]
[17:24:01]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[17:24:01]configsip: 0, SPIWP:0xee
[17:24:01]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[17:24:01]mode:DOUT, clock div:2
[17:24:01]load:0x3fff0018,len:4
[17:24:01]load:0x3fff001c,len:928
[17:24:01]ho 0 tail 12 room 4
[17:24:01]load:0x40078000,len:9280
[17:24:01]load:0x40080400,len:5860
[17:24:01]entry 0x40080698
[17:24:01][I][logger:119]: Log initialized
[17:24:01][VV][preferences:036]: LOAD 0: valid=YES, 0=0x00000001 1=0x42F4583F (Type=233825507, CRC=0x42F4583F)
[17:24:01][C][ota:484]: There have been 1 suspected unsuccessful boot attempts.
[17:24:01][VV][preferences:049]: SAVE 0: 0=0x00000002 1=0x13D89D5A (Type=233825507, CRC=0x13D89D5A)
[17:24:01][I][application:055]: Running through setup()...
[17:24:01][V][application:056]: Sorting components by setup priority...
[17:24:01][C][wifi:027]: Setting up WiFi...
[17:24:01][V][wifi_esp32:033]: Enabling STA.
[17:24:01]Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
[17:24:01]Core 1 register dump:
[17:24:01]PC      : 0x400eafe3  PS      : 0x00060430  A0      : 0x800f1c49  A1      : 0x3ffb17a0  
WARNING Decoded 0x400eafe3: _svfprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vfprintf.c:1604
[17:24:01]A2      : 0x00000400  A3      : 0x00000000  A4      : 0x3ffb1994  A5      : 0x00000053  
[17:24:01]A6      : 0x3ffb1930  A7      : 0x00000001  A8      : 0x00000000  A9      : 0xffffffff  
[17:24:01]A10     : 0x00000024  A11     : 0x0000002a  A12     : 0xffffffff  A13     : 0x3f409df8  
[17:24:01]A14     : 0x3ffb17b0  A15     : 0xff000000  SAR     : 0x00000002  EXCCAUSE: 0x0000001c  
[17:24:01]EXCVADDR: 0x00000008  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff  
[17:24:01]
[17:24:01]Backtrace: 0x400eafe3:0x3ffb17a0 0x400f1c46:0x3ffb1ab0 0x400f1c7e:0x3ffb1b40 0x400d477e:0x3ffb1b80 0x400d4619:0x3ffb1ba0 0x4008450a:0x3ffb1be0 0x4013799f:0x3ffb1c30 0x40132787:0x3ffb1c70 0x4010fa20:0x3ffb1c90 0x4010fbf6:0x3ffb1cc0 0x400e3bf9:0x3ffb1cf0 0x4012f566:0x3ffb1d10 0x400d7a80:0x3ffb1e10 0x400d6d21:0x3ffb1e40 0x400d3862:0x3ffb1e80 0x400d33b5:0x3ffb1ea0 0x400d22a5:0x3ffb1ef0 0x400dc1b7:0x3ffb1fb0 0x40091245:0x3ffb1fd0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x400eafe3: _svfprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vfprintf.c:1604
WARNING Decoded 0x400f1c46: _vsnprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vsnprintf.c:72
WARNING Decoded 0x400f1c7e: vsnprintf at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vsnprintf.c:41
WARNING Decoded 0x400d477e: esphome::LogComponent::log_vprintf_(int, char const*, char const*, __va_list_tag)
WARNING Decoded 0x400d4619: esp_idf_log_vprintf_(char const*, __va_list_tag)
WARNING Decoded 0x4008450a: esp_log_write at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/log/log.c:215
WARNING Decoded 0x4013799f: pp_create_task
WARNING Decoded 0x40132787: ic_create_wifi_task
WARNING Decoded 0x4010fa20: wifi_init_in_caller_task
WARNING Decoded 0x4010fbf6: esp_wifi_init_internal
WARNING Decoded 0x400e3bf9: esp_wifi_init at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/wifi_init.c:98
WARNING Decoded 0x4012f566: WiFiGenericClass::mode(wifi_mode_t)
WARNING Decoded 0x400d7a80: esphome::WiFiComponent::wifi_mode_(esphome::optional<bool>, esphome::optional<bool>)
WARNING Decoded 0x400d6d21: esphome::WiFiComponent::setup()
WARNING Decoded 0x400d3862: esphome::Component::call_setup()
WARNING Decoded 0x400d33b5: esphome::Application::setup()
WARNING Decoded 0x400d22a5: setup()
WARNING Decoded 0x400dc1b7: loopTask(void*)
WARNING Decoded 0x40091245: vPortTaskWrapper at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port.c:355 (discriminator 1)
[17:24:01]
[17:24:01]Rebooting...
The configuration file is :

Code: Select all

esphome:
  name: klsesp2
  platform: ESP32
  board: nodemcu-32s

wifi:
  ssid: "zzzzz"
  password: "xxxxx"
  domain: ".yyyyy.lan"

# Enable logging
logger:
  level: VERY_VERBOSE

# Enable Home Assistant API
api:

ota:
What is happening ? Is my ESP broken ?

Thank you in advance, it's a bit panic here...

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: Guru Meditation Error: Core 1 panic’ed

Postby ESP_Dazz » Mon May 13, 2019 10:52 am

Code: Select all

[17:24:01]Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
LoadProhibited means the CPU was trying to load from an illegal address in memory.

Code: Select all

[17:24:01]EXCVADDR: 0x00000008
The CPU was trying to read from memory address 0x00000008 which is definitely illegal. This could be caused either by a programming error (e.g. trying to read a null pointer), or by memory corruption (e.g. a valid pointer was overwritten by a stack overflow).

Judging from your backtrace, the illegal load happens somewhere on the stack of the loopTask. If you're application was working before, my guess would be a stack overflow somewhere in the loopTask (not sure how you would do that using ESPHome YAML configuration) or lowering your logger level configuration (will probably reduce stack usage). Alternatively, you could raise this issue at the ESPHome repo.

YourName
Posts: 3
Joined: Sat May 04, 2019 4:00 pm

Re: Guru Meditation Error: Core 1 panic’ed

Postby YourName » Tue May 14, 2019 9:59 am

Thank you for answering.

I have two identical ESP32, one works well, the other gives this error backtrace.

How can I know the problematic ESP32 has not any hardware issue ? Is there a sort of self-test on ESP32 ?

hdnguyen
Posts: 1
Joined: Tue May 14, 2019 10:15 am

Re: Guru Meditation Error: Core 1 panic’ed

Postby hdnguyen » Wed May 15, 2019 3:45 pm

It looks like you set value for a string in an illegal way. Could you share your code snippets?

YourName
Posts: 3
Joined: Sat May 04, 2019 4:00 pm

Re: Guru Meditation Error: Core 1 panic’ed

Postby YourName » Sun May 19, 2019 6:01 pm

It is the ESPHome code. But I have 2 identical ESP32, from same factory, purchased together, and one works perfectly since weeks, the other refuses and gives the above error.

Code: Select all

// Auto generated code by esphome
// ========== AUTO GENERATED INCLUDE BLOCK BEGIN ===========
#include "esphome.h"
using namespace esphome;
// ========== AUTO GENERATED INCLUDE BLOCK END ==========="

void setup() {
  // ===== DO NOT EDIT ANYTHING BELOW THIS LINE =====
  // ========== AUTO GENERATED CODE BEGIN ===========
  App.set_name("klsesp2");
  App.set_compilation_datetime(__DATE__ ", " __TIME__);
  LogComponent *logcomponent = App.init_log(115200, 512, UART_SELECTION_UART0);
  logcomponent->set_global_log_level(ESPHOME_LOG_LEVEL_VERY_VERBOSE);
  WiFiComponent *wificomponent = App.init_wifi();
  wificomponent->set_use_address("klsesp2.chezmoi.lan");
  WiFiAP wifiap = WiFiAP();
  wifiap.set_ssid("MADOUIFI");
  wifiap.set_password("onsenfout");
  wificomponent->add_sta(wifiap);
  OTAComponent *otacomponent = App.init_ota();
  otacomponent->start_safe_mode();
  api::APIServer *api_apiserver = App.init_api_server();
  // =========== AUTO GENERATED CODE END ============
  // ========= YOU CAN EDIT AFTER THIS LINE =========
  App.setup();
}

void loop() {
  App.loop();
}

TheMosFet
Posts: 3
Joined: Wed Aug 14, 2019 8:54 pm

Re: Guru Meditation Error: Core 1 panic’ed

Postby TheMosFet » Wed Aug 21, 2019 3:24 am

I get the same error trying to switch between 2 thingspeak channel updates. Honestly, it's my experience that on this chipset ....this just happens 60% of the time. I just don't get it. I'd get out of arduino IDE but it's a senior design project and I port my code again in time.

Who is online

Users browsing this forum: No registered users and 40 guests