InfiniTimeOrg / InfiniSim

Simulator for InfiniTime user interface without needing a PineTime
GNU General Public License v3.0
166 stars 67 forks source link

Simulator SIGSEGV when trying to swipe up #95

Closed Da-Viper closed 1 year ago

Da-Viper commented 1 year ago

If I build program with the build flag -DMONITOR_ZOOM=2 the program crashes when I try to swipe up, the program SIGSEGV faults

Action performed: swipe up after building

System Info: Fedora 37 X11 Gnome 43.3

I first get this error when launching

InfiniSim/InfiniTime/src/libs/littlefs/lfs.c:1071:error: Corrupted dir pair at {0x0, 0x1}
InfiniSim/InfiniTime/src/libs/littlefs/lfs.c:1790:debug: Bad block at 0x0
InfiniSim/InfiniTime/src/libs/littlefs/lfs.c:1796:warn: Superblock 0x0 has become unwritable
InfiniSim/InfiniTime/src/libs/littlefs/lfs.c:1071:error: Corrupted dir pair at {0x0, 0x1}

the backtrace.

* thread #4, name = 'displayapp', stop reason = signal SIGSEGV: address access protected (fault address: 0x7fffd8191000)
  * frame #0: 0x00007ffff7e712ae libSDL2-2.0.so.0`BlitNtoN.lto_priv.0 + 6206
    frame #1: 0x00007ffff7e62742 libSDL2-2.0.so.0`SDL_SoftBlit.lto_priv.0 + 306
    frame #2: 0x00007ffff7e97ea9 libSDL2-2.0.so.0`SDL_ConvertPixels_REAL + 1001
    frame #3: 0x00007ffff7e52332 libSDL2-2.0.so.0`SW_RenderReadPixels + 130
    frame #4: 0x00007ffff7e267c6 libSDL2-2.0.so.0`SDL_RenderReadPixels_REAL + 358
    frame #5: 0x000000000040f0c8 infinisim`MoveScreen(disp_drv=0x00000000005505a8, height=-4) at LittleVgl.cpp:199:3
    frame #6: 0x000000000040f5f9 infinisim`Pinetime::Components::LittleVgl::FlushDisplay(this=0x000000000054f668, area=0x000000000054f694, color_p=0x000000000054f6a8) at LittleVgl.cpp:277:5
    frame #7: 0x000000000040ec61 infinisim`disp_flush(disp_drv=0x0000000000551658, area=0x000000000054f694, color_p=0x000000000054f6a8) at LittleVgl.cpp:65:9
    frame #8: 0x000000000046ddcb infinisim`lv_refr_vdb_flush at lv_refr.c:1145:13
    frame #9: 0x000000000046ef3e infinisim`lv_refr_area_part(area_p=0x000000000055171a) at lv_refr.c:777:9
    frame #10: 0x000000000046e35b infinisim`lv_refr_area(area_p=0x000000000055171a) at lv_refr.c:510:21
    frame #11: 0x000000000046dbf0 infinisim`lv_refr_areas at lv_refr.c:400:13
    frame #12: 0x000000000046d2ea infinisim`_lv_disp_refr_task(task=0x0000000000551858) at lv_refr.c:199:5
    frame #13: 0x00000000004879ad infinisim`lv_task_exec(task=0x0000000000551858) at lv_task.c:386:27
    frame #14: 0x000000000048776b infinisim`lv_task_handler at lv_task.c:134:20
    frame #15: 0x000000000044ebe9 infinisim`Pinetime::Applications::DisplayApp::Refresh(this=0x000000000054f5d8) at DisplayApp.cpp:168:22
    frame #16: 0x000000000044eb14 infinisim`Pinetime::Applications::DisplayApp::Process(instance=0x000000000054f5d8) at DisplayApp.cpp:125:10
    frame #17: 0x00000000004ad726 infinisim`sdl_function_wrapper(instance=0x0000000000550620) at task.cpp:61:3
    frame #18: 0x00007ffff7f06687 libSDL2-2.0.so.0`RunThread.lto_priv.0 + 199
    frame #19: 0x00007ffff78ae12d libc.so.6`start_thread + 717
    frame #20: 0x00007ffff792fbc0 libc.so.6`__clone3 + 48
NeroBurner commented 1 year ago

can reproduce, that's a new issue