libretro / flycast

Flycast is a multiplatform Sega Dreamcast emulator. NOTE: No longer actively developed, use upstream repo for libretro from now on - https://github.com/flyinghead/flycast
http://reicast.com
GNU General Public License v2.0
155 stars 77 forks source link

Crash with savestate #951

Open liberodark opened 3 years ago

liberodark commented 3 years ago

Hi,

Have somes crash with flycast on savestate :

[libretro ERROR] 00:25:084 libretro/common.cpp:376 E[COMMON]: SIGSEGV @ 7f4c99e1175b ... 0x7f4b3db41000 -> was not in vram (dyna code 0)
[libretro ERROR] Fatal error : segfault
 in signal_handler -> core/libretro/common.cpp : 383 

[libretro ERROR] 00:25:084 libretro/libretro.cpp:3250 E[COMMON]: DEBUGBREAK!
[libretro ERROR] 00:25:084 libretro/common.cpp:376 E[COMMON]: SIGSEGV @ 7f4c958ede48 ... 0x7f4c958ede48 -> was not in vram (dyna code 0)
[libretro ERROR] Fatal error : segfault
 in signal_handler -> core/libretro/common.cpp : 383 

[libretro ERROR] 00:25:084 libretro/libretro.cpp:3250 E[COMMON]: DEBUGBREAK!
2020-09-22 20:13:26 INFO (emulatorlauncher.py:235):<module>: Exiting configgen with status -4

On somes games have same error and this have been make on Grandia II.chd

This game is CHD v5 : MComprHD|cdlzcdzlcdflP

Best Regards

kage2051 commented 3 years ago

Try disabling savestate compression. Some people on libretro's Discord have solved the issue that way.

That option is at Settings > Saving inside RetroArch.

liberodark commented 3 years ago

Hi,

Have disable compression option no have same error in log but same issue.


[libretro INFO] 00:01:040 hw/maple/maple_devs.cpp:596 N[MAPLE]: Loaded VMU from file "/userdata/bios//vmu_save_B1.bin"
[libretro INFO] 00:01:040 hw/maple/maple_devs.cpp:596 N[MAPLE]: Loaded VMU from file "/userdata/bios//vmu_save_C1.bin"
[libretro INFO] 00:01:041 hw/maple/maple_devs.cpp:596 N[MAPLE]: Loaded VMU from file "/userdata/bios//vmu_save_D1.bin"
[libretro INFO] 00:01:903 hw/pvr/Renderer_if.cpp:102 N[PVR]: Creating Open GL per-triangle/strip renderer
[libretro INFO] 00:01:903 rend/gles/gles.cpp:414 N[RENDERER]: OpenGL version: 4.6 (Compatibility Profile) Mesa 20.1.4
[INFO] 
[INFO] State size: 28213095 bytes.
[INFO] 
[INFO] Loading state: "/userdata/saves/dreamcast/Grandia II (F).state".
[INFO] State size: 28213095 bytes.
[INFO] State size: 28151847 bytes.
retroarch: malloc.c:2379: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
2020-09-23 03:19:38 INFO (emulatorlauncher.py:235):<module>: Exiting configgen with status -6```

This is like memory corrupted : 

`retroarch: malloc.c:2379: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.`
domb84 commented 3 years ago

Was there ever a fix for this issue? I find I have no issue saving save states, but often I cannot load them again. I get the same error on load.

[libretro INFO] hw/maple/maple_devs.cpp:603 N[MAPLE]: Loaded VMU from file "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).A1.bin"
[libretro INFO] hw/maple/maple_devs.cpp:603 N[MAPLE]: Loaded VMU from file "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).B1.bin"
[libretro INFO] hw/maple/maple_devs.cpp:603 N[MAPLE]: Loaded VMU from file "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).C1.bin"
[libretro INFO] hw/maple/maple_devs.cpp:603 N[MAPLE]: Loaded VMU from file "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).D1.bin"
[libretro INFO] hw/pvr/Renderer_if.cpp:104 N[PVR]: Creating Open GL per-triangle/strip renderer
[libretro INFO] rend/gles/gles.cpp:413 N[RENDERER]: OpenGL version: OpenGL ES 3.1 Mesa 21.2.0
[INFO] [State]: Loading state "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).state10", 28126919 bytes.
[libretro INFO] hw/maple/maple_devs.cpp:603 N[MAPLE]: Loaded VMU from file "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).A1.bin"
[libretro INFO] hw/maple/maple_devs.cpp:603 N[MAPLE]: Loaded VMU from file "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).B1.bin"
[libretro INFO] hw/maple/maple_devs.cpp:603 N[MAPLE]: Loaded VMU from file "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).C1.bin"
[libretro INFO] hw/maple/maple_devs.cpp:603 N[MAPLE]: Loaded VMU from file "/storage/assets/saves/Flycast/De La Jet Set Radio (Japan) (En,Ja,Fr,De,Es).D1.bin"
[libretro ERROR] libretro/common.cpp:359 E[COMMON]: SIGSEGV @ ed76186c ... 0xc00d9000 -> was not in vram (dyna code 0)
[libretro ERROR] libretro/libretro.cpp:3257 E[COMMON]: DEBUGBREAK!
[libretro ERROR] libretro/common.cpp:359 E[COMMON]: SIGSEGV @ ee9316c8 ... 0xee9316c8 -> was not in vram (dyna code 0)
[libretro ERROR] libretro/libretro.cpp:3257 E[COMMON]: DEBUGBREAK!