christianhaitian / arkos

Another rockchip Operating System
MIT License
1.47k stars 83 forks source link

Saving State causes Retroarch to crash and re-load this also resets the memory card data #257

Closed MorhionG closed 3 years ago

MorhionG commented 3 years ago

This is a random issues and occurs once out of every 7 or 8 savestates. When attempting to savestate using start+X in the retroarch menu, it will cause the game to freeze for a moment and then crash back to Retroarch. This has a 50/50 chance of corrupting the save. Also it will reset any memory card data back to the previous save. The only way to ensure memory card data persists is to save the game, close the game and then go back in.

This happens often enough it's easy to replicate.

christianhaitian commented 3 years ago

What emulator and games have you had this happen in?

christianhaitian commented 3 years ago

Also, why are you saving state from the retroarch menu and not using the preset hotkey of Select+R1?

MorhionG commented 3 years ago

It does it with both methods. After about 8-10 save states it will randomly crash and reset itself when using the hotkey method as well. So I started using the other, thinking it may have just been a bug.

On Thu, Feb 18, 2021 at 3:31 PM christianhaitian notifications@github.com wrote:

Also, why are you saving state from the retroarch menu and not using the preset hotkey of Select+R1?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/257#issuecomment-781616351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPWXREO27HMDIPLQWBYWN3S7V2I7ANCNFSM4X2QFBLA .

-- Developer Consistency Restorative Input Learner

MorhionG commented 3 years ago

Oh also PSX emulator, updated retroarch core and Saga Frontier

On Thu, Feb 18, 2021 at 3:33 PM Jason Windsor morhion@gmail.com wrote:

It does it with both methods. After about 8-10 save states it will randomly crash and reset itself when using the hotkey method as well. So I started using the other, thinking it may have just been a bug.

On Thu, Feb 18, 2021 at 3:31 PM christianhaitian notifications@github.com wrote:

Also, why are you saving state from the retroarch menu and not using the preset hotkey of Select+R1?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/257#issuecomment-781616351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPWXREO27HMDIPLQWBYWN3S7V2I7ANCNFSM4X2QFBLA .

-- Developer Consistency Restorative Input Learner

-- Developer Consistency Restorative Input Learner

christianhaitian commented 3 years ago

Try the other pcsx-rearmed core and see if you have the issue there.

christianhaitian commented 3 years ago

Any update with your testing?

MorhionG commented 3 years ago

The different core offered no change, still having issues with it crashing every 10-12 save states.Also it seems to screw up memory card data when that happens too and loses any 'recent' memory card data and reverts to memory card date before the save.

On Sat, Feb 20, 2021 at 12:05 AM christianhaitian notifications@github.com wrote:

Any update with your testing?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/257#issuecomment-782561524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPWXRAAEQQNSI6X3OXOOZLS747INANCNFSM4X2QFBLA .

-- Developer Consistency Restorative Input Learner

christianhaitian commented 3 years ago

Have you enabled runahead or fast forwarding in your the retroarch settings? If so, try disabling that and see if the issue goes away.

https://github.com/libretro/pcsx_rearmed/issues/431

christianhaitian commented 3 years ago

Just seeing if you’ve tried the suggestion above yet. Thanks

MorhionG commented 3 years ago

No frame skipping is enabled or anything like that the only global option set is bilinear filtering

On Mon, Feb 22, 2021, 4:53 AM christianhaitian notifications@github.com wrote:

Just seeing if you’ve tried the suggestion above yet. Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/257#issuecomment-783247661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPWXRADC3UZEDGJ4XOHIA3TAISRZANCNFSM4X2QFBLA .

christianhaitian commented 3 years ago

Have you tried to see if this issue happens on the original sd card or another OS like 351Elec?

christianhaitian commented 3 years ago

Have you tried what I suggested above? Any update on this?

christianhaitian commented 3 years ago

Also, did you make sure to load a compatible bios per the wiki? https://github.com/christianhaitian/arkos/wiki/ArkOS-Emulators-and-Ports-information#playstation-1-psx

MorhionG commented 3 years ago

Yes, I did.

trying elec sometime this week I really like ArkOS so I didn't want to reflash honestly

On Wed, Feb 24, 2021 at 12:02 PM christianhaitian notifications@github.com wrote:

Also, did you make sure to load a compatible bios per the wiki? https://github.com/christianhaitian/arkos/wiki/ArkOS-Emulators-and-Ports-information#playstation-1-psx

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/257#issuecomment-785224564, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPWXREMN2Q5TNRNRWYSFVTTAUWK7ANCNFSM4X2QFBLA .

-- Developer Consistency Restorative Input Learner

christianhaitian commented 3 years ago

Are you sure you’re not using auto savestates?

MorhionG commented 3 years ago

Positive, I have to manually save state each time

On Sun, Feb 28, 2021, 11:22 AM christianhaitian notifications@github.com wrote:

Are you sure you’re not using auto savestates?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/257#issuecomment-787477972, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPWXRGHR64IRXPFSSP5Q73TBJUV3ANCNFSM4X2QFBLA .

iCheetle commented 3 years ago

same here but when i try to flash it it wont let me

christianhaitian commented 3 years ago

Unfortunately, I have no other ideas to try on this. Maybe try the latest version of 351elec or retroarena and see if those are more stable for you.

MorhionG commented 3 years ago

Nah I'm going to stick with ArkOS I really like it. I'll just keep updating and see if the bug fixes. It's not GAME BREAKING just annoying lol.

Thanks!

On Wed, Mar 3, 2021, 9:49 AM christianhaitian notifications@github.com wrote:

Closed #257 https://github.com/christianhaitian/arkos/issues/257.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/257#event-4402442872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPWXRANETFVDNLTF2F4Q23TBZD7FANCNFSM4X2QFBLA .

GhostCrab commented 3 years ago

Sorry to necro a closed issue, but I think the part of this user's issue with his memory card reverting is related to SRAM Autosave Interval being disabled by default. This setting may have been disabled on purpose in the interest of preserving SD cards, in which case I wont rehash an argument that has been made to death in this thread: (https://github.com/libretro/RetroArch/issues/4901) I would like to point out that while leaving SRAM saves for when RA successfully shuts down makes sense on a desktop system that might close RA periodically, these handhelds that are built to go to sleep instead of shut down could possibly go dozens of in-game hours on some long RPG without switching games and have the console run out of power or crash wiping all progress unless the user was using save-states. I do like using save states, but in my case I was playing Vagrant Story (PSX) which uses an item stash system where excess items are stashed in some kind of secondary save on the memory card and when my system crashed, the memory card reverted a few hours back but my save states were current and got out of sync, corrupting the item stash. I know it's a corner case and maybe not worth the change to the default configuration, but I wanted to share.