Guru Meditation Error: the ESP32 crashes and restarts
- ESP32
You may see
Why it happens
- Reading outside an array.
- Using a screen, sensor or Bluetooth object before its
begin(). - Long work inside an interrupt or a web request.
How to fix it
- Note the last line printed before the crash: the trouble is just after it.
- Check array sizes and loop limits.
- Make sure every
begin()is insetup()and you check that it worked. - Keep interrupt functions tiny: set a flag, and do the work in
loop(). Mark themIRAM_ATTR. - In an async web server don't use
delay()inside the request function.
It worked if: It runs past the line where it used to crash.
Tutorials where it can happen
From the official documentation. Message format from Espressif's fatal errors page. Sources: Espressif: fatal errors.
Didn't help? Search another error or ask us.

