ESP32 - Guru Meditation Error: Core 1 panic'ed (LoadProhibited).

Hello friends.

New day, new problem.

I am ausing an ESp32 and a Nextion display. For this i am using the Nextion lib. Like many here in this forum underlinied, that the Nextion lib can cause problems. Unfortunly i am to far in the project to dump the Nextion lib, so for this project i have to deal with it.

The code that i will post, already made (other) problems in the past. But now i discovered a new odd behavior and hope one of you has an idea. For clarity i will only post the code that causes the problem, since my code is 1000+ long.

//globay declared

char lowerAlarmBuffer[100];
char upperAlarmBuffer[100];

void bt_Alarm1PopCallback(void *ptr)                                                              
  uint32_t alarmState;

    EEPROM.writeInt(PHVALUEADDR + 4*(sizeof(float)), sonde_pH._alarmState);

When i push the button bt_Alarm1 on my Nextion, my terminal gives me this:

Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x400d4689 PS : 0x00060a30 A0 : 0x8017223c A1 : 0x3ffb1da0 A2 : 0x3ffc1c4c A3 : 0xffffff1a A4 : 0x00000004 A5 : 0x3ffc2118 A6 : 0x040000ff A7 : 0x040000ff A8 : 0x23c7a107 A9 : 0x3ffb1d80 A10 : 0x3ffb1db0 A11 : 0x3ffb1db0 A12 : 0x33333333 A13 : 0x40153333 A14 : 0x23c7a107 A15 : 0x00000000 SAR : 0x00000015 EXCCAUSE: 0x0000001c EXCVADDR: 0xffffff1a LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffe

Backtrace: 0x400d4689:0x3ffb1da0 0x40172239:0x3ffb1de0 0x400ddb9b:0x3ffb1e00 0x400dd3fe:0x3ffb1e20 0x400d8e22:0x3ffb1e50 0x400e13bd:0x3ffb1fb0 0x400895dd:0x3ffb1fd0


Can it be that there is a problem with the buffers? If so, i cant see why

Anyone an idea?

Thank you

Manuel_o: For clarity i will only post the code that causes the problem, since my code is 1000+ long.

There are no apparent errors in the posted code. Try to look at this.

i know this joke sir..

but my code is very very long, and i pretty sure noone wants to go through that. So what should i do?


It is not a joke! Posting partial code and expecting ppl to guess what stuff like “PHVALUEADDR”, “sonde_pH”, “lowerAlarm”, “upperAlarm” and so on are, is a joke which gets you no help and wastes ppl’s time…