Another crash may be related with following reproduce steps:
click test, then indev
click button reload
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1680078==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5644a0de7ee6 bp 0x7ffe84f88d30 sp 0x7ffe84f88d10 T0)
==1680078==The signal is caused by a READ memory access.
==1680078==Hint: address points to the zero page.
#0 0x5644a0de7ee5 in luavgl_indev_gc ../src/indev.c:278
#1 0x7fdeb4679fb6 (/lib/x86_64-linux-gnu/libluajit-5.1.so.2+0x8fb6)
#2 0x7fdeb4686f59 (/lib/x86_64-linux-gnu/libluajit-5.1.so.2+0x15f59)
#3 0x7fdeb46a7105 (/lib/x86_64-linux-gnu/libluajit-5.1.so.2+0x36105)
#4 0x7fdeb46a7267 (/lib/x86_64-linux-gnu/libluajit-5.1.so.2+0x36267)
#5 0x7fdeb467a325 (/lib/x86_64-linux-gnu/libluajit-5.1.so.2+0x9325)
#6 0x7fdeb46c8bed in lua_close (/lib/x86_64-linux-gnu/libluajit-5.1.so.2+0x57bed)
#7 0x5644a0dd2dfc in lua_terminate ../simulator/main.c:290
#8 0x5644a0dd2e3a in reload_cb ../simulator/main.c:302
#9 0x5644a0df80fa in event_send_core ../deps/lvgl/src/core/lv_event.c:467
#10 0x5644a0df4f0c in lv_event_send ../deps/lvgl/src/core/lv_event.c:75
#11 0x5644a0e011c8 in indev_proc_release ../deps/lvgl/src/core/lv_indev.c:980
#12 0x5644a0dfd32d in indev_pointer_proc ../deps/lvgl/src/core/lv_indev.c:384
#13 0x5644a0dfadbd in lv_indev_read_timer_cb ../deps/lvgl/src/core/lv_indev.c:101
#14 0x5644a0ec0e46 in lv_timer_exec ../deps/lvgl/src/misc/lv_timer.c:313
#15 0x5644a0ec05b4 in lv_timer_handler ../deps/lvgl/src/misc/lv_timer.c:109
#16 0x5644a0dd2f43 in main ../simulator/main.c:335
#17 0x7fdeb4443082 in __libc_start_main ../csu/libc-start.c:308
#18 0x5644a0dcd58d in _start (/home/neo/projects/luavgl/build/simulator/simulator+0x4d58d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ../src/indev.c:278 in luavgl_indev_gc
==1680078==ABORTING
Crash only happen with luajit but not lua.
Another crash may be related with following reproduce steps: