m5stack/M5EPD

Random crash when drawing PNG at src/utility/pngle.c:859

huksley opened this issue · 1 comments

Hi, I am using PlatformIO core 5.1.0 home 3.3.3, M5EPD 0.1.1
Source code is here https://github.com/huksley/m5panel

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400e160d  PS      : 0x00060a30  A0      : 0x800db238  A1      : 0x3ffb1670  
A2      : 0x00000000  A3      : 0x3ffb177c  A4      : 0x00000132  A5      : 0x00000000  
A6      : 0x3ffd9118  A7      : 0xff000000  A8      : 0x80193df2  A9      : 0x3ffb16e0  
A10     : 0x00000132  A11     : 0x3ffb177c  A12     : 0x00000400  A13     : 0x00000000  
A14     : 0x3ffd8fd4  A15     : 0x00000000  SAR     : 0x00000018  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000024  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  

Backtrace

Backtrace: 0x400e160d:0x3ffb1670 0x400db235:0x3ffb1720 0x400d4f92:0x3ffb1ba0 0x400d6db9:0x3ffb1c30 0x400d7565:0x3ffb1f60 0x400f5fef:0x3ffb1fb0 0x4008bcd5:0x3ffb1fd0
  #0  0x400e160d:0x3ffb1670 in pngle_feed at .pio/libdeps/m5stack-fire/M5EPD/src/utility/pngle.c:859
  #1  0x400db235:0x3ffb1720 in M5EPD_Canvas::drawPngFile(fs::FS&, char const*, unsigned short, unsigned short, unsigned short, unsigned short, unsigned short, unsigned short, double, unsigned char) at .pio/libdeps/m5stack-fire/M5EPD/src/M5EPD_Canvas.cpp:1308
  #2  0x400d4f92:0x3ffb1ba0 in M5PanelWidget::draw(m5epd_update_mode_t) at src/M5PanelWidget.cpp:32
  #3  0x400d6db9:0x3ffb1c30 in updateSiteMap(int) at /Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.h:85
  #4  0x400d7565:0x3ffb1f60 in setup() at /Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.h:85
  #5  0x400f5fef:0x3ffb1fb0 in loopTask(void*) at /Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:14
  #6  0x4008bcd5:0x3ffb1fd0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)