pcsx2 icon indicating copy to clipboard operation
pcsx2 copied to clipboard

[BUG]: Memory Card Crashes in Windows

Open xfechx opened this issue 6 months ago • 13 comments

Describe the Bug

I am having crashes while saving game data (overwrtting slot game save) using a folder type memory card that I have been using for years (cross-save) between devices.

In Linux this is not happening, but anytime I want to save game progress in windows to that memory card (overwritting a save file from a game), the game crashes.

Here is the log

emulog.txt

Reproduction Steps

Saving a game like usual, under a 'folder-type' memory card.

Expected Behavior

Saving and continuing game, however game crashes when saving.

PCSX2 Revision

V2.3.343

Operating System

Windows 11

If Linux - Specify Distro

No response

Logs & Dumps

emulog.txt

xfechx avatar May 13 '25 15:05 xfechx

Failed to open CHD 'F:\Games\PS2\Crash Twinsanity (USA) (v2.00).chd': invalid file

Are you sure the game is still there and also check if there are no permission issues.

Maybe try this below for that game:

How To Verify Your Games From the game list, right click on your game and go to Properties. Then, in the Summary tab click Verify.

If the status is bad, follow the disk dumping guide to make a fresh copy.

RedDevilus avatar May 13 '25 15:05 RedDevilus

It still showing the same error when all files are ok, please check the updated log file

xfechx avatar May 13 '25 15:05 xfechx

Please check the new updated log, still having the same issue, the bad chd file had nothing to do with the bug.

xfechx avatar May 13 '25 15:05 xfechx

[   38.6689] Reopening GS with existing device
[   76.0562] OSD [MemoryCardSave0]: Memory Card 'Mcd001.ps2' was saved to storage.
[   77.9235] FolderMcd: Writing data for slot 0 to file system...

Hmm at a glance I don't see where it's breaking.

RedDevilus avatar May 13 '25 15:05 RedDevilus

OK, so I copied the memory card folder elsewhere, outside of the dropbox folder, and this way it works. However - I have been using this setup (with dropbox) for many years without issues, not sure why now it would crash if my save file is saving to a cloud-enabled folder under Windows?

On Tue, May 13, 2025 at 5:31 PM RedDevilus @.***> wrote:

RedDevilus left a comment (PCSX2/pcsx2#12658) https://github.com/PCSX2/pcsx2/issues/12658#issuecomment-2876988152

[ 38.6689] Reopening GS with existing device [ 76.0562] OSD [MemoryCardSave0]: Memory Card 'Mcd001.ps2' was saved to storage. [ 77.9235] FolderMcd: Writing data for slot 0 to file system...

Hmm at a glance I don't see where it's breaking.

— Reply to this email directly, view it on GitHub https://github.com/PCSX2/pcsx2/issues/12658#issuecomment-2876988152, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACD4JKV7S3BZOZL52BQMM6D26IF5FAVCNFSM6AAAAAB5A53QMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNZWHE4DQMJVGI . You are receiving this because you modified the open/close state.Message ID: @.***>

xfechx avatar May 13 '25 16:05 xfechx

Oh, yeah using dropbox can cause permission changes or problems with wrong saves/ broken saves on Windows. People using something like syncthing and having cold saves (whenever emulator is fully closed and then synced up in cloud) is safer.

Makes sense as to why it works fine on Linux but not Windows. I don't think we can really fix this besides making a way to connect to cloud only after everything safe or a built-in save sync.

RedDevilus avatar May 13 '25 16:05 RedDevilus

But I am concerned that after all these years, only now having this issue? What has changed? Is there any way to see where the error is happening, or any solution to this, apart from cold saving or syncthing? I do not want to change cloud setup, it works in all my other emulators, I don't see why it would fail with pcsx2 now suddenly.

On Tue, May 13, 2025 at 6:12 PM RedDevilus @.***> wrote:

RedDevilus left a comment (PCSX2/pcsx2#12658) https://github.com/PCSX2/pcsx2/issues/12658#issuecomment-2877152239

Oh, yeah using dropbox can cause permission changes or problems with wrong saves/ broken saves on Windows. People using something like syncthing and having cold saves (whenever emulator is fully closed and then synced up in cloud) is safer.

Makes sense as to why it works fine on Linux but not Windows. I don't think we can really fix this besides making a way to connect to cloud only after everything safe or a built-in save sync.

— Reply to this email directly, view it on GitHub https://github.com/PCSX2/pcsx2/issues/12658#issuecomment-2877152239, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACD4JKR7XPHFK7IB3XEHLVL26IKXHAVCNFSM6AAAAAB5A53QMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNZXGE2TEMRTHE . You are receiving this because you modified the open/close state.Message ID: @.***>

xfechx avatar May 13 '25 16:05 xfechx

I remember there is a different issue where PCSX2 doesn't release the lock handler properly and then doesn't save correctly, it's been an issue that can come up randomly. It can be totally fine at times and you probably got unlucky.

RedDevilus avatar May 13 '25 16:05 RedDevilus

What should I try? I have had this issue since yesterday and I have tried many times with the same issue.

On Tue, May 13, 2025 at 6:27 PM RedDevilus @.***> wrote:

RedDevilus left a comment (PCSX2/pcsx2#12658) https://github.com/PCSX2/pcsx2/issues/12658#issuecomment-2877194986

I remember there is a different issue where PCSX2 doesn't release the lock handler properly and then doesn't save correctly, it's been an issue that can come up randomly. It can be totally fine at times and you probably got unlucky.

— Reply to this email directly, view it on GitHub https://github.com/PCSX2/pcsx2/issues/12658#issuecomment-2877194986, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACD4JKRESNKLQKMAMHY6ISD26IMQ5AVCNFSM6AAAAAB5A53QMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNZXGE4TIOJYGY . You are receiving this because you modified the open/close state.Message ID: @.***>

xfechx avatar May 13 '25 16:05 xfechx

What should I try? I have had this issue since yesterday and I have tried many times with the same issue.

You could join the Discord and see if there are ways to alleviate the issue somewhat. Because it's kinda both Windows and PCSX2 not liking it.

RedDevilus avatar May 13 '25 16:05 RedDevilus

OK, it seems to be resolved by going to Dropbox for Windows application, and then under preferences > account, pressing ALT will show "Fix Permissions" and "Reset File System warnings" buttons, pressed those two and now the problem is fixed.

So the problem was dropbox file permissions, because now it saves without issues, for new saves and overwriting.

xfechx avatar May 13 '25 16:05 xfechx

So further testing, and I am still having the same issue.

xfechx avatar May 13 '25 20:05 xfechx

Can you try https://github.com/PCSX2/pcsx2/pull/12694 if it fixes the crash?

lightningterror avatar May 22 '25 02:05 lightningterror