Playnite Forums
Trying to figure out what happened to my Playnite Library - Printable Version

+- Playnite Forums (https://playnite.link/forum)
+-- Forum: Playnite (https://playnite.link/forum/forum-1.html)
+--- Forum: Support and Troubleshooting (https://playnite.link/forum/forum-4.html)
+--- Thread: Trying to figure out what happened to my Playnite Library (/thread-1302.html)



Trying to figure out what happened to my Playnite Library - danteisis - 08-07-2022

Hello, I am trying to figure out what happened to my Playnite Library.  I clicked on one of the games in my library and received a message that Playnite encountered an unexpected error.  Upon restarting, my entire library is gone with all tags, sources, the works.  My saved scanners and library integrations now all fail with the error "Value cannot be null." When checking settings, I see that the integrations are all set up properly.  I looked for my database.json and see that it is now 1kb in size and the log i found before/including the first Value cannot be null error listed in txt file that is attached. I'm assuming that all of my hard work over the past year of fixing all 7k+ items is basically lost but Id love to try to understand what failed and if it was something that I had done or if it is an actual issue that could be in the latest build.

Thank you


RE: Trying to figure out what happened to my Playnite Library - Crow - 08-08-2022

Your library files are damaged somehow. Please upload all .db files from your library and I'll try to fix them: https://github.com/JosefNemec/Playnite/wiki/Frequently-Asked-Questions#where-can-i-find-library-folder-with-all-games


RE: Trying to figure out what happened to my Playnite Library - danteisis - 08-08-2022

Thank you so much! I have no idea how this happened and appreciate the assistance with this library! I am unable to upload my files directly here as the games.db is too large in zip format and .db files seem not to be allowed to be updated so I have saved the zip to this link

https://drive.google.com/file/d/1egWNi9cnpglUFJ17WXvaMTHNGEJeSr3b/view?usp=sharing

I have left out the images folder from the library folder for sake of size, but can include that if needed.

I also apologize for the contents of this library.


RE: Trying to figure out what happened to my Playnite Library - Crow - 08-09-2022

Here's fixed file: https://playnite.link/download/games_fixed.zip

Did you btw use some tool or extension that modifies those library files directly (circumventing our SDK)? Because this corruption was really weird, it had some duplicate item keys in it, which in theory can't happen under normal circumstances.


RE: Trying to figure out what happened to my Playnite Library - danteisis - 08-09-2022

Thank you so much! The only extensions that I have installed is CheckDLC and Export Library, the latter of which I have not used. I am not sure what caused the corruption and was hoping to learn more if possible. I couldnt find anything in the logs that really spoke to what happened other than the
System.InvalidCastException: Unable to cast object of type 'LiteDB.ExtendPage' to type 'LiteDB.DataPage'.
in the crash log which occurred 20 mins after I played a game and had clicked on another game. The other concerning thing has been Playnite's inability to re-import ANY data from any source as it claims that the value is null. It could be just due to not being able to write properly to the corrupted DB but could be something else as well.

I really appreciate the help with this issue! I was successfully able to replace the games.db file and launch in safe mode. Playnite is reading the file and has recovered successfully. Thank you again!