suchmememanyskill / CYD-Klipper

An implementation of a wireless Klipper status display on an ESP32 + screen
https://suchmememanyskill.github.io/CYD-Klipper/
GNU General Public License v3.0
241 stars 32 forks source link

Crash on print end #10

Closed suchmememanyskill closed 8 months ago

suchmememanyskill commented 9 months ago

Investigate later. This definitely didn't happen before

suchmememanyskill commented 9 months ago

Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.

Core 0 register dump: PC : 0x4008a5be PS : 0x00060b30 A0 : 0x800d3f09 A1 : 0x3ffe5140
A2 : 0x00000000 A3 : 0x3fff099c A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x2f414c50 A9 : 0x3ffe5110 A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000000 A13 : 0x3ffeed97 A14 : 0x00000004 A15 : 0x00000008 SAR : 0x0000001e EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x4008a5b1 LEND : 0x4008a5c5 LCOUNT : 0xffffffff

Backtrace: 0x4008a5bb:0x3ffe5140 0x400d3f06:0x3ffe5150 0x400d65d9:0x3ffe5660 0x400d5ca7:0x3ffe5680 0x400d58c4:0x3ffe56a0 0x400e219b:0x3ffe56c0 0x400d3b89:0x3ffe56f0 0x400d3c52:0x3ffe59c0

0 0x4008a5bb:0x3ffe5140 in strcpy at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/strcpy.S:103

1 0x400d3f06:0x3ffe5150 in get_files() at src/core/files_query.cpp:43

2 0x400d65d9:0x3ffe5660 in print_panel_init(_lv_obj_t*) at src/ui/panels/print_panel.cpp:98

3 0x400d5ca7:0x3ffe5680 in nav_buttons_setup(unsigned char) at src/ui/nav_buttons.cpp:167

4 0x400d58c4:0x3ffe56a0 in on_state_change(void, lv_msg_t) at src/ui/main_ui.cpp:71

5 0x400e219b:0x3ffe56c0 in notify at .pio/libdeps/esp32dev/lvgl/src/extra/others/msg/lv_msg.c:162

  (inlined by) lv_msg_send at .pio/libdeps/esp32dev/lvgl/src/extra/others/msg/lv_msg.c:122

6 0x400d3b89:0x3ffe56f0 in fetch_printer_data() at src/core/data_setup.cpp:190

7 0x400d3c52:0x3ffe59c0 in data_loop_background(void*) at src/core/data_setup.cpp:219

At line 42, malloc returns NULL. You cannot write data to NULL

suchmememanyskill commented 9 months ago

oh you're hilarious github, thanks for making them issue references