[GH-ISSUE #3383] Gran Turismo - crashed when load save data #1415

Closed
opened 2026-03-17 23:22:32 +03:00 by kerem · 33 comments
Owner

Originally created by @hdd60311 on GitHub (Aug 25, 2013).
Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/3383

The issue has been reported from http://forums.ppsspp.org/showthread.php?tid=1601&pid=42906#pid42906 and I also met it... :(
Game works fine without old save.

log : http://www.mediafire.com/?ax333zk3tab3bny
save : http://www.mediafire.com/?d3hvrl209nbk0tk

Originally created by @hdd60311 on GitHub (Aug 25, 2013). Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/3383 The issue has been reported from http://forums.ppsspp.org/showthread.php?tid=1601&pid=42906#pid42906 and I also met it... :( Game works fine without old save. log : http://www.mediafire.com/?ax333zk3tab3bny save : http://www.mediafire.com/?d3hvrl209nbk0tk
kerem 2026-03-17 23:22:32 +03:00
Author
Owner

@hrydgard commented on GitHub (Aug 25, 2013):

Save states are NOT reliable between versions. Use real saves.

I guess we need to burn the git version into each savestate and check it to prevent this...

<!-- gh-comment-id:23226053 --> @hrydgard commented on GitHub (Aug 25, 2013): Save states are NOT reliable between versions. Use real saves. I guess we need to burn the git version into each savestate and check it to prevent this...
Author
Owner

@hrydgard commented on GitHub (Aug 25, 2013):

Sorry, misread, thought you meant a save state.

Might be a bug in the old version of PPSSPP creating a corrupt savegame?

<!-- gh-comment-id:23226074 --> @hrydgard commented on GitHub (Aug 25, 2013): Sorry, misread, thought you meant a save state. Might be a bug in the old version of PPSSPP creating a corrupt savegame?
Author
Owner

@hdd60311 commented on GitHub (Aug 25, 2013):

Oh sorry for my expression, I mean real save in game
Btw I didn't move save data to new build, the problem happened in the build I use (0.9.1-15).  

<!-- gh-comment-id:23226181 --> @hdd60311 commented on GitHub (Aug 25, 2013): Oh sorry for my expression, I mean real save in game Btw I didn't move save data to new build, the problem happened in the build I use (0.9.1-15).  
Author
Owner

@unknownbrackets commented on GitHub (Aug 25, 2013):

It would help to know:

  • Does real savedata from a PSP work?
  • If you use the PPSSPP-generated savedata on a real PSP, does it work?
  • Dd it work in a past version?

-[Unknown]

<!-- gh-comment-id:23229183 --> @unknownbrackets commented on GitHub (Aug 25, 2013): It would help to know: - Does real savedata from a PSP work? - If you use the PPSSPP-generated savedata on a real PSP, does it work? - Dd it work in a past version? -[Unknown]
Author
Owner

@Krude commented on GitHub (Aug 26, 2013):

Can that be related to the bug in Castlevania: Dracula X Chronicles, where the emulator crashes when the game tries to SAVE?
Here's the issue: https://github.com/hrydgard/ppsspp/issues/2751

What's supposed to happen in that case is the game asks if you're sure you want to overwrite the existing save, but the emulator crashes instead on opening the save.

<!-- gh-comment-id:23271474 --> @Krude commented on GitHub (Aug 26, 2013): Can that be related to the bug in Castlevania: Dracula X Chronicles, where the emulator crashes when the game tries to SAVE? Here's the issue: https://github.com/hrydgard/ppsspp/issues/2751 What's supposed to happen in that case is the game asks if you're sure you want to overwrite the existing save, but the emulator crashes instead on opening the save.
Author
Owner

@sum2012 commented on GitHub (Sep 6, 2013):

Do v0.9.1-602-g3d19869 or newer fixed ?

<!-- gh-comment-id:23953285 --> @sum2012 commented on GitHub (Sep 6, 2013): Do v0.9.1-602-g3d19869 or newer fixed ?
Author
Owner

@thedax commented on GitHub (Sep 6, 2013):

The crash is fixed, but now it seems to hang on a black screen if you have a bad save(http://forums.ppsspp.org/attachment.php?aid=7250 for example). I'm not sure what the correct behaviour is, but at least it's not crashing now.

<!-- gh-comment-id:23954140 --> @thedax commented on GitHub (Sep 6, 2013): The crash is fixed, but now it seems to hang on a black screen if you have a bad save(http://forums.ppsspp.org/attachment.php?aid=7250 for example). I'm not sure what the correct behaviour is, but at least it's not crashing now.
Author
Owner

@sum2012 commented on GitHub (Sep 15, 2013):

Test on real PSP.It show
Load failed due to data being corrupted.
Do you wish to retry ?
Choosing "NO" will cause your data to be lost

<!-- gh-comment-id:24474382 --> @sum2012 commented on GitHub (Sep 15, 2013): Test on real PSP.It show Load failed due to data being corrupted. Do you wish to retry ? Choosing "NO" will cause your data to be lost
Author
Owner

@unknownbrackets commented on GitHub (Sep 15, 2013):

We're probably not returning a correct error code in this case.

-[Unknown]

<!-- gh-comment-id:24474937 --> @unknownbrackets commented on GitHub (Sep 15, 2013): We're probably not returning a correct error code in this case. -[Unknown]
Author
Owner

@sum2012 commented on GitHub (Sep 15, 2013):

I do not see error code in JPCSP trace log in sceUtilitySavedataInitStart
JPCSP trace log
https://gist.github.com/sum2012/2a6021c2b79f80915f5d

ppssppv0.9.1-948.log debug log
https://docs.google.com/file/d/0B3OaSdeV0L8kcVZ1bkE0WFc1enc/edit?usp=sharing

edit:Let me mark this http://tieba.baidu.com/f?ct=335675392&tn=baiduPostBrowser&sc=38989934646&z=2594852634

<!-- gh-comment-id:24482802 --> @sum2012 commented on GitHub (Sep 15, 2013): I do not see error code in JPCSP trace log in sceUtilitySavedataInitStart JPCSP trace log https://gist.github.com/sum2012/2a6021c2b79f80915f5d ppssppv0.9.1-948.log debug log https://docs.google.com/file/d/0B3OaSdeV0L8kcVZ1bkE0WFc1enc/edit?usp=sharing edit:Let me mark this http://tieba.baidu.com/f?ct=335675392&tn=baiduPostBrowser&sc=38989934646&z=2594852634
Author
Owner

@unknownbrackets commented on GitHub (Sep 15, 2013):

It's a bit tricky, the error code is returned inside the struct.

-[Unknown]

<!-- gh-comment-id:24482946 --> @unknownbrackets commented on GitHub (Sep 15, 2013): It's a bit tricky, the error code is returned inside the struct. -[Unknown]
Author
Owner

@sum2012 commented on GitHub (Sep 17, 2013):

Any suggest code to test to fix ?

<!-- gh-comment-id:24583635 --> @sum2012 commented on GitHub (Sep 17, 2013): Any suggest code to test to fix ?
Author
Owner

@xsacha commented on GitHub (Oct 23, 2013):

Can you try the latest version?
I committed a patch that appears to have fixed this issue.

<!-- gh-comment-id:26955893 --> @xsacha commented on GitHub (Oct 23, 2013): Can you try the latest version? I committed a patch that appears to have fixed this issue.
Author
Owner

@sum2012 commented on GitHub (Oct 24, 2013):

ppsspp-v0.9.1-2123-g6c5a2ea
Test with bad save still fail

<!-- gh-comment-id:27000701 --> @sum2012 commented on GitHub (Oct 24, 2013): ppsspp-v0.9.1-2123-g6c5a2ea Test with bad save still fail
Author
Owner

@thedax commented on GitHub (Dec 11, 2013):

Minor update: With fast memory and a bad save, GT will crash in 0.9.5-1073-g0bfe9db on Windows x64, but with it off, it just black screens. Basically nothing new has happened.

<!-- gh-comment-id:30372449 --> @thedax commented on GitHub (Dec 11, 2013): Minor update: With fast memory and a bad save, GT will crash in 0.9.5-1073-g0bfe9db on Windows x64, but with it off, it just black screens. Basically nothing new has happened.
Author
Owner

@dbz400 commented on GitHub (Feb 11, 2014):

It seems to be okay now to load up save . It is with default setting .

44:30:460 PDI:00000005 I[UTIL]: Dialog\PSPSaveDialog.cpp:66 sceUtilitySavedataInitStart(0bc80a08) : Mode = 0
44:30:469 PDI:00000005 I[UTIL]: Dialog\SavedataParam.cpp:543 Loading file with size 65536 in ms0:/PSP/SAVEDATA/UCJS10100-GAMEDAT/GAME.DAT

<!-- gh-comment-id:34750706 --> @dbz400 commented on GitHub (Feb 11, 2014): It seems to be okay now to load up save . It is with default setting . 44:30:460 PDI:00000005 I[UTIL]: Dialog\PSPSaveDialog.cpp:66 sceUtilitySavedataInitStart(0bc80a08) : Mode = 0 44:30:469 PDI:00000005 I[UTIL]: Dialog\SavedataParam.cpp:543 Loading file with size 65536 in ms0:/PSP/SAVEDATA/UCJS10100-GAMEDAT/GAME.DAT
Author
Owner

@hrydgard commented on GitHub (Feb 11, 2014):

@hdd60311 , can you confirm with your save?

<!-- gh-comment-id:34751377 --> @hrydgard commented on GitHub (Feb 11, 2014): @hdd60311 , can you confirm with your save?
Author
Owner

@daniel229 commented on GitHub (Feb 11, 2014):

That savedata is not working on PSP with 660pro-c2 and PPSSPP.

<!-- gh-comment-id:34753834 --> @daniel229 commented on GitHub (Feb 11, 2014): That savedata is not working on PSP with 660pro-c2 and PPSSPP.
Author
Owner

@hrydgard commented on GitHub (Feb 11, 2014):

ok. not clear to me whether this should remain open or not.

<!-- gh-comment-id:34754501 --> @hrydgard commented on GitHub (Feb 11, 2014): ok. not clear to me whether this should remain open or not.
Author
Owner

@dbz400 commented on GitHub (Feb 11, 2014):

I'm not 100 % sure this one .Probably keep it open and other ppl can test it as well .

<!-- gh-comment-id:34755027 --> @dbz400 commented on GitHub (Feb 11, 2014): I'm not 100 % sure this one .Probably keep it open and other ppl can test it as well .
Author
Owner

@dbz400 commented on GitHub (Feb 11, 2014):

This is the screenshot i take .Not too sure if we are talking the same thing :)

screen00448
screen00449

Then i restart the emulator to see if it loads it and seen this log

48:07:179 PDI:00000005 I[UTIL]: Dialog\PSPSaveDialog.cpp:66 sceUtilitySavedataInitStart(0bc80a08) : Mode = 0
48:07:188 PDI:00000005 I[UTIL]: Dialog\SavedataParam.cpp:543 Loading file with size 65536 in ms0:/PSP/SAVEDATA/UCJS10100-GAMEDAT/GAME.DAT

<!-- gh-comment-id:34755267 --> @dbz400 commented on GitHub (Feb 11, 2014): This is the screenshot i take .Not too sure if we are talking the same thing :) ![screen00448](https://f.cloud.github.com/assets/3000282/2137287/1746c64a-9323-11e3-87ab-41ea3ebaf416.jpg) ![screen00449](https://f.cloud.github.com/assets/3000282/2137288/178ff2c0-9323-11e3-9c6e-b20805ad2080.jpg) Then i restart the emulator to see if it loads it and seen this log 48:07:179 PDI:00000005 I[UTIL]: Dialog\PSPSaveDialog.cpp:66 sceUtilitySavedataInitStart(0bc80a08) : Mode = 0 48:07:188 PDI:00000005 I[UTIL]: Dialog\SavedataParam.cpp:543 Loading file with size 65536 in ms0:/PSP/SAVEDATA/UCJS10100-GAMEDAT/GAME.DAT
Author
Owner

@hrydgard commented on GitHub (Feb 11, 2014):

Did it seem to load just fine?

<!-- gh-comment-id:34755996 --> @hrydgard commented on GitHub (Feb 11, 2014): Did it seem to load just fine?
Author
Owner

@daniel229 commented on GitHub (Feb 11, 2014):

Not that,people said that play a day,and the next day it hangs on loading.

<!-- gh-comment-id:34756350 --> @daniel229 commented on GitHub (Feb 11, 2014): Not that,people said that play a day,and the next day it hangs on loading.
Author
Owner

@hrydgard commented on GitHub (Feb 11, 2014):

Next day? Maybe some time function trouble?

<!-- gh-comment-id:34756659 --> @hrydgard commented on GitHub (Feb 11, 2014): Next day? Maybe some time function trouble?
Author
Owner

@daniel229 commented on GitHub (Feb 11, 2014):

I am going to play the game a while to see if the bug still exist.

<!-- gh-comment-id:34757347 --> @daniel229 commented on GitHub (Feb 11, 2014): I am going to play the game a while to see if the bug still exist.
Author
Owner

@daniel229 commented on GitHub (Feb 11, 2014):

I play for a while,then it hangs on loading save,if you want to continue using savedada,you need to delete all savefiles before saving.

<!-- gh-comment-id:34772272 --> @daniel229 commented on GitHub (Feb 11, 2014): I play for a while,then it hangs on loading save,if you want to continue using savedada,you need to delete all savefiles before saving.
Author
Owner

@unknownbrackets commented on GitHub (Feb 12, 2014):

It'd be nice to see a log from when it doesn't work and when it does. Something must be different.

I think I asked this on the forum but don't think anyone tested it. What would be really interesting is:

  1. Get a log of what happens when you try to load data that doesn't work.
  2. Delete the savedata and create new savedata.
  3. Make a backup of this savedata.
  4. Make sure the savedata works.
  5. Make a log of the working savedata.
  6. Wait a day or etc.
  7. Try to load the data and see the failure.
  8. Compare the data with the backup. If different, replace it.
  9. Try again, see if it still doesn't load.
  10. Maybe try updating the modification time (e.g. open with a hex editor and save without any changes) of the files.

There must be some reason...

-[Unknown]

<!-- gh-comment-id:34834368 --> @unknownbrackets commented on GitHub (Feb 12, 2014): It'd be nice to see a log from when it doesn't work and when it does. Something must be different. I think I asked this on the forum but don't think anyone tested it. What would be really interesting is: 1. Get a log of what happens when you try to load data that doesn't work. 2. Delete the savedata and create new savedata. 3. Make a backup of this savedata. 4. Make sure the savedata works. 5. Make a log of the working savedata. 6. Wait a day or etc. 7. Try to load the data and see the failure. 8. Compare the data with the backup. If different, replace it. 9. Try again, see if it still doesn't load. 10. Maybe try updating the modification time (e.g. open with a hex editor and save without any changes) of the files. There must be some reason... -[Unknown]
Author
Owner

@daniel229 commented on GitHub (Feb 12, 2014):

Here are debug logs.rename jpg to rar
loading not working
loading working
saving not working saving without delete files
saving working saving after delete files

Modify file time does not help.Come back after lunch,save agains,then loading hanging.

<!-- gh-comment-id:34837821 --> @daniel229 commented on GitHub (Feb 12, 2014): Here are debug logs.rename jpg to rar ![loading not working](https://f.cloud.github.com/assets/3481559/2145204/683ca9be-939d-11e3-9b76-d888b378a533.jpg) ![loading working](https://f.cloud.github.com/assets/3481559/2145206/683e69ac-939d-11e3-993d-b16b01cc2f71.jpg) ![saving not working](https://f.cloud.github.com/assets/3481559/2145205/683e1862-939d-11e3-867e-bdbb9e90eccb.jpg) saving without delete files ![saving working](https://f.cloud.github.com/assets/3481559/2145207/6841e9c4-939d-11e3-80f3-b3605690f854.jpg) saving after delete files Modify file time does not help.Come back after lunch,save agains,then loading hanging.
Author
Owner

@unknownbrackets commented on GitHub (Feb 12, 2014):

Thanks, that's super helpful. I already see what might be the difference and have an idea.

-[Unknown]

<!-- gh-comment-id:34843216 --> @unknownbrackets commented on GitHub (Feb 12, 2014): Thanks, that's super helpful. I already see what might be the difference and have an idea. -[Unknown]
Author
Owner

@daniel229 commented on GitHub (Feb 12, 2014):

Glad to see that.

<!-- gh-comment-id:34843828 --> @daniel229 commented on GitHub (Feb 12, 2014): Glad to see that.
Author
Owner

@sum2012 commented on GitHub (Feb 12, 2014):

@unknownbrackets Just remaind.
Do you want fix a bad save ?
bad save:
http://forums.ppsspp.org/attachment.php?aid=7250

<!-- gh-comment-id:34849268 --> @sum2012 commented on GitHub (Feb 12, 2014): @unknownbrackets Just remaind. Do you want fix a bad save ? bad save: http://forums.ppsspp.org/attachment.php?aid=7250
Author
Owner

@hrydgard commented on GitHub (Feb 12, 2014):

@daniel229 reports that #5420 fixes this, closing. Please reopen if issue remains or returns.

<!-- gh-comment-id:34851242 --> @hrydgard commented on GitHub (Feb 12, 2014): @daniel229 reports that #5420 fixes this, closing. Please reopen if issue remains or returns.
Author
Owner

@thedax commented on GitHub (Feb 12, 2014):

Still crashes with the bad save that @sum2012 linked to, but that save is probably shot/destroyed for all eternity, so it probably doesn't matter now.

<!-- gh-comment-id:34852023 --> @thedax commented on GitHub (Feb 12, 2014): Still crashes with the bad save that @sum2012 linked to, but that save is probably shot/destroyed for all eternity, so it probably doesn't matter now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ppsspp#1415
No description provided.