JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
9.52k stars 504 forks source link

Game Database fails to load after Playnite App restart #3801

Open rocket1138 opened 3 months ago

rocket1138 commented 3 months ago

Bug Description

Playnite fails to load the database after a restart Themes and addons work fine but games disappear from the application after doing a library update and then a restart

To Reproduce

No response

Diagnostics ID

3857908e-fb3c-498d-aba3-979506eba2b5

Screenshots

image_2024-08-17_022433305 Library before update

image_2024-08-17_022723247 Library after update and restart

Jeshibu commented 3 months ago

Does this still happen if you disable SuccessStory?

JosefNemec commented 3 months ago

I see some errors in the logs related to library data handling, but I would guess this is indeed caused by the latest SuccessStory update since people are having similar issues after they installed it.

rocket1138 commented 3 months ago

just tried with SS disabled still happening

JosefNemec commented 3 months ago

Does it happen with all plugins disabled?

You have ton of other plugins installed that could be messing breaking this, like installation status updater, given that you have installed filter enabled, it might be setting all games to uninstalled state.

rocket1138 commented 3 months ago

Yes still happening with all addons disabled

I restore my backup, playnite restarts games are there i update the library and restart games are gone

JosefNemec commented 3 months ago

Playnite never removes games on its own, so it's most likely just game states being changed for some reason and games being filtered out. Disable all filters to see if those games are really gone.

JosefNemec commented 3 months ago

Also please attach library\games.db file from install folder.

rocket1138 commented 3 months ago

image_2024-08-17_035408339 heres a screenshot game arent there even with filters disabled

JosefNemec commented 3 months ago

Please attach library\games.db file from install folder.

rocket1138 commented 3 months ago

games.zip

JosefNemec commented 3 months ago

I'm afraid the file is corrupted beyond repair. Do you have the original backup file from before games go missing? Can you attach that one? Also during that backup restore you mentioned, did you have plugins enabled? My only guess is that some plugin might be corrupting it.

rocket1138 commented 3 months ago

Yes i have an old backup of my database backup_games.zip I tried to restore it both with plugins enabled and disabled and games still keep despairing after trying to update the library and restarting the app

JosefNemec commented 3 months ago

Try with this file: games.zip

There's definitely something fishy going on with your games file. It's around 34MB while it should be just around 4MB.

rocket1138 commented 3 months ago

Doesn't seem to work Playnite does its thing with the backup but no games show

At this point would you recommend starting from scratch with a new installation?

I really don't want to waste development time on something that was most likely my fault.

JosefNemec commented 3 months ago

Yeah I have no idea what's going on, db files must be messed up in some specific way. I'm out of ideas if rebuilt file I attached doesn't work.