https://forum.kerbalspaceprogram.com/topic/219607-ksp2-is-spamming-the-windows-registry-over-weeksmonths-until-the-game-will-stop-working-permanently/ Jump to content Kerbal Space Program Forums * Existing user? Sign In Sign In + [ ] + [ ] + [*] Remember me Not recommended on shared computers + Sign In Forgot your password? * Sign Up * * Forum + Forums + Guidelines + Staff + Online Users + Developer Articles + More * Activity + All Activity + My Activity Streams + Unread Threads + Threads I Started + Search + More * Community + Discord + IRC + Subreddit + Wiki + More * Release Notes * Mods + KSP1 Mods + KSP2 Mods + More * Social Media + Discord + Instagram + Facebook + TikTok + Twitter + More * Store * More + More [ ] * ( )Everywhere * (*)This Forum * (*)This Topic * ( )Status Updates * ( )Topics * ( )Pages * ( )Articles * ( )Releases * ( )Bug Reports * ( )Members * Crash * * * All Activity * Home * Kerbal Space Program 2 * KSP2 Suggestions and Development Discussion * KSP2 Bug Reports * * KSP2 is Spamming the Windows Registry Over Weeks/Months Until the Game Will Stop Working Permanently * * 141 * Crash KSP2 is Spamming the Windows Registry Over Weeks/Months Until the Game Will Stop Working Permanently * v0.1.4 --------------------------------------------------------------------- Anth12 Submitted by Anth12, Yesterday at 02:59 AM Share * * * --------------------------------------------------------------------- More sharing options... Followers 5 * Reply to this report Bug Report Anth12 Anth12 Posted yesterday at 02:59 AM Anth12 * Anth12 * Bug Hunter * + 934 + 1.9k * + Share Posted yesterday at 02:59 AM (edited) Reported Version: v0.1.4 (latest) | Mods: none | Can replicate without mods? Yes OS: Windows 10 | CPU: i9 9900K | GPU: 3070ti | RAM: 32GB Main Issue: KSP2 will throw a PlayerPrefsException error when the game's registry Key/Entries is filled up with too much information, At that point KSP2 will never again complete the initial load into the main menu. Whats Happening: KSP2 is adding information every time a SOI change happens or if a save file has been loaded. It all appears to be similar information repeated again and again. Screenshot of Spam: Spoiler Registry.png.e513540784dfdcc0b12141462743c5eb.png Timeline: 24 February 2023: 0.1.0.0 to 0.1.2.0 KSP2 started fine. 22 July 2023: 0.1.3.0 the PlayerPrefsException started happening but I wasn't sure what the cause was. I fixed it by creating a new local account on my computer. 23 September 2023: It happened again with the new local account. Important Information: It only took two months to get to this point this last time. Once others start playing KSP2 more regularly it will only be a matter of time until others have the same problem. Workaround: Delete using regedit: HKEY_CURRENT_USER\SOFTWARE\Intercept Games\ Be warned though, deleting the wrong thing can stop applications from working, or even break the entire operating system. Files: The following is the registry entries for 0.1.0.0 until when 0.1.3.0 stopped the game from loading into the main menu (322mb): (Changed from reg file to text file) KSP2RegistryEntries.txt Log file created yesterday: Ksp2.log Unity Links: PlayerPrefs Information: https://docs.unity3d.com/ScriptReference/PlayerPrefs.html PlayerPrefsException error: https://docs.unity3d.com/ScriptReference/PlayerPrefsException.html Edited yesterday at 10:17 AM by Anth12 * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... 54 answers to this question * * Prev * 1 * 2 * 3 * Next * * Page 1 of 3 + [ ] + [Go] Recommended Posts * [2027dc97fc] * * 6 * * Community Manager Dakota Dakota Posted 6 hours ago Dakota * Dakota * Community Manager * + 1,946 + 329 + 14 * Community Manager * + Share Posted 6 hours ago Hi all, The team is aware of this issue and we have a fix. It's currently being tested and we're aiming for a hotfix since we see this as critical. I'll share more details on a timeline when I have one. Dakota * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 20 * Kerbart Kerbart Posted yesterday at 07:34 PM Kerbart * Kerbart * Members * + 5,932 + 4.2k + 4 * About me: Mun Marketeer * + Share Posted yesterday at 07:34 PM (edited) ARE THEY INSANE??!! I know professional developers who recommend .ini files over the registry "so you can never get blamed for messing up the registry" and [snip] use it as if it where a Temp file?! And that is on top of gargantuan game save files? "Save files were getting too big so we're using the registry instead." Wow. You couldn't come up with this when asked for a list of "stupid things no developer ever should do" and yet here we are. I'm liquided they're wrecking the KSP legacy but now I'm PO'd they're trying to wreck my PC as well. I have the habit of briefly playing KSP2 after each update until I get disgusted with it (that doesn't take long, as you can imagine). Now I even don't want to do that and I'm seriously considering uninstalling the game until this is fixed. In my (and assuming everyone's) book this is not something that can wait two months until the next patch; fixing this warrants its own hot patch rolled out as fast as humanly possible. I didn't think anything could surpass the current state of the game as a bad reflection on the dev team, but here it is. They truly outdid themselves. @Anth12 thank you for uncovering this. Edited 1 hour ago by Vanamonde * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 12 * cheese3660 cheese3660 Posted yesterday at 01:28 PM cheese3660 * cheese3660 * Members * + 61 + 42 * + Share Posted yesterday at 01:28 PM (edited) Alright, doing some investigating it seems that they are saving the Pqs preferences based off of the instance ID of the pqs object, which, according to unity's own documentation, changes between runs of the game, hence why its saving 10 trillion different copies of the same data Update: On doing even more investigating, I have come to the conclusion that it is vestigial side effects of part of an editor tool that wasn't supposed to be in the game, and could easily just be removed Edited 21 hours ago by cheese3660 Concluded what it was * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 12 * schlosrat schlosrat Posted yesterday at 01:52 PM schlosrat * schlosrat * Members * + 343 + 508 + 1 * About me: Spam in a Can * + Share Posted yesterday at 01:52 PM Upvoted. I agree with others. This should be moved to the very top of the priority list immediately. @Dakota, perhaps we need a new category for bugs that cause chaos outside the game? This is a whole other level of Not OK, transcending the impact of any other class of bug. It's universal in its horrible badness. Other bugs, even really persistent and nasty ones like wobbly rockets, orbital decay, etc., can constrain the kind of craft you build or mission plans, but this is a class of bug that can make the game simply not start at all, and worse it does so by creating an issue for the OS. I hope the fix for this one is simple! * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 9 * MechBFP MechBFP Posted yesterday at 04:05 PM MechBFP * MechBFP * Members * + 2,611 + 2k + 1 * + Share Posted yesterday at 04:05 PM (edited) Okay, I don't think this should have to be said, but adding anything to the registry should be limited to NECESSARY DATA ONLY. This should be hot fixed as soon as possible. Edited yesterday at 04:10 PM by MechBFP * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 6 * Kerbart Kerbart Posted yesterday at 09:24 PM Kerbart * Kerbart * Members * + 5,932 + 4.2k + 4 * About me: Mun Marketeer * + Share Posted yesterday at 09:24 PM 1 hour ago, cheese3660 said: This does not seem to be the case here, what they were doing makes sense, using unities player preferences to store what should be a small amount of stuff, but their implementation of it has a bug that makes it that they are storing it in a different key each time Your argument has merit, but what stands is that they were exceptionally careless in checking what was written to the registry. Your sleuthing suggets an instance ID which sounds to me as something very volatile and changing -- how could they use that? Was this simply a typo? And what else did they get wrong? It's not an exact vote of confidence for the code. * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 5 * Stephensan Stephensan Posted yesterday at 08:05 PM Stephensan * Stephensan * Members * + 416 + 399 * About me: Remind Me How I Cannot Think :3 * + Share Posted yesterday at 08:05 PM 1.65gb gone. -_- * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 5 * ShadowDev ShadowDev Posted yesterday at 09:07 PM ShadowDev * ShadowDev * Members * + 113 + 85 * + Share Posted yesterday at 09:07 PM heres a temporary fix for the bug, run once every so often (like once a month). * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 5 * MechBFP MechBFP Posted yesterday at 09:29 PM MechBFP * MechBFP * Members * + 2,611 + 2k + 1 * + Share Posted yesterday at 09:29 PM 1 hour ago, cheese3660 said: This does not seem to be the case here, what they were doing makes sense, using unities player preferences to store what should be a small amount of stuff, but their implementation of it has a bug that makes it that they are storing it in a different key each time I would argue that using the registry for this type of data isn't the place it should be in the first place since I don't see how it is relevant to the overall application instead of a particular save. * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 5 * Kerbart Kerbart Posted 19 hours ago Kerbart * Kerbart * Members * + 5,932 + 4.2k + 4 * About me: Mun Marketeer * + Share Posted 19 hours ago 2 hours ago, cheese3660 said: The code never was meant to be in the final build, best I can tell from more sleuthing, its for an editor tool to allow them to move PqsObjects in playmode, and then load them back after playmode has stopped, which likely does not change the instance ID in the same editing session Let's assume that it's indeed a leftover from an internal tool. That uses the registry to store some session values instead of storing the in a dictionary. And somehow that code made it into production. "The notion that we did this knowingly is preposterous. How could we? We absolutely don't know what we're doing" * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 4 * cocoscacao cocoscacao Posted yesterday at 09:30 AM cocoscacao * cocoscacao * Members * + 540 + 555 + 1 * About me: Armchair Armstrong * + Share Posted yesterday at 09:30 AM (edited) Same. This bug should be a priority, since the effects are leaked to the OS. Nice catch @Anth12 Edited yesterday at 09:31 AM by cocoscacao * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 4 * Mikki Mikki Posted yesterday at 11:14 AM Mikki * Mikki * Members * + 1,833 + 1.5k + 2 * About me: type export * + Share Posted yesterday at 11:14 AM (edited) I just deleted the file in the registry editor by hand, it was rather ... huge... OMG :0.0: I hope this will be fixed ASAP since this is crazy. Edit: Upvoted Edited yesterday at 11:15 AM by Mikki * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 4 * mattihase mattihase Posted yesterday at 04:17 PM mattihase * mattihase * Members * + 166 + 190 * About me: Rocketeer * + Share Posted yesterday at 04:17 PM (edited) *immense sense of dread* I'm gonna have to go look at windows, see if it's ok. EDIT: Can confirm windows was not happy. Edited yesterday at 04:34 PM by mattihase * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 4 * mattihase mattihase Posted yesterday at 04:34 PM mattihase * mattihase * Members * + 166 + 190 * About me: Rocketeer * + Share Posted yesterday at 04:34 PM this needs to be hotfixed ASAP * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 4 * scerion scerion Posted yesterday at 07:03 PM scerion * scerion * Members * + 13 + 113 * About me: Spacecraft Engineer * + Share Posted yesterday at 07:03 PM I went to check after reading this post, although I only had a brief time of playing at launch, I still had a bunch of entries. These persisted after uninstalling the game as well. * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 3 * RalphKerman RalphKerman Posted yesterday at 03:43 PM RalphKerman * RalphKerman * Members * + 49 + 33 * + Share Posted yesterday at 03:43 PM Wow, this is crazy. It took my system (installed on a pretty fast M.2 SSD) about 5 seconds to load and display the registry node (and I hardly play KSP 2 ever). I had so many entries that I was wondering how my system still works.... Please fix this. The registry is a crucial part of the operating system and seeing it being (ab)used to store masses of not needed data is "concerning" (the only word I can think of that does not get me banned here instantly....). I will not touch this game anymore until this is confirmed to be fixed. Thank you so much, @Anth12 for finding and reporting this bug! * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 3 * Kerb_ Kerb_ Posted yesterday at 07:41 PM Kerb_ * Kerb_ * New Members * + 6 + 3 * + Share Posted yesterday at 07:41 PM 100% agree that this is deserving of a hotfix. Players should not be digging through the registry, and these issues will be an inevitably for every player * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 3 * Buzz313th Buzz313th Posted yesterday at 09:04 PM Buzz313th * Buzz313th * Members * + 162 + 147 * About me: Bottle Rocketeer * + Share Posted yesterday at 09:04 PM What else could be hiding in the KSP2 code? I don't think anyone really knows.. Even the developers have no idea. * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 3 * GGG-GoodGuyGreg GGG-GoodGuyGreg Posted yesterday at 09:28 PM GGG-GoodGuyGreg * GGG-GoodGuyGreg * Members * + 218 + 168 * + Share Posted yesterday at 09:28 PM (edited) @Anth12 Thanks for reporting this. I checked and I also had an abnormal high registry spammed. I expect dancing bears on a unicycle to come in any moment now. How is this called a game ready to be released is beyond me. Edited yesterday at 09:30 PM by GGG-GoodGuyGreg * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 3 * ShadowDev ShadowDev Posted 8 hours ago ShadowDev * ShadowDev * Members * + 113 + 85 * + Share Posted 8 hours ago ME: Creates tool to help people with the registry since some people wont want to touch it. Some random guy: 11 hours ago, Buzz313th said: LOL, is this the guy T2 and IG sent to do damage control for shoddy coding? Why not, he already does it on his You Tube Channel. Unreal and absolutely pathetic. You are actually enabling this company to continue in bad faith business practice. Anyone who doesn't see it is in denial. * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 2 * Buzz313th Buzz313th Posted yesterday at 08:09 PM Buzz313th * Buzz313th * Members * + 162 + 147 * About me: Bottle Rocketeer * + Share Posted yesterday at 08:09 PM What a bunch of "Hacks". This should be stickied on the Store page under the KSP2 Steam reviews so people can be aware before buying. Maybe someone should let the Steam admins know. Why am I not surprised. And Thank you for finding this. * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 2 * cheese3660 cheese3660 Posted yesterday at 08:15 PM cheese3660 * cheese3660 * Members * + 61 + 42 * + Share Posted yesterday at 08:15 PM 39 minutes ago, Kerbart said: and these clowns use it as if it where a Temp file?! This does not seem to be the case here, what they were doing makes sense, using unities player preferences to store what should be a small amount of stuff, but their implementation of it has a bug that makes it that they are storing it in a different key each time * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 2 * Buzz313th Buzz313th Posted yesterday at 08:52 PM Buzz313th * Buzz313th * Members * + 162 + 147 * About me: Bottle Rocketeer * + Share Posted yesterday at 08:52 PM TBH, I wouldn't feel safe running this title on my personal computer. It has been uninstalled for 3 months. This kind of reinforces some people's opinions that the engineering team on KSP2 are not competent enough to finish this game regardless of how long they take. * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 2 * Kerb_ Kerb_ Posted yesterday at 10:54 PM Kerb_ * Kerb_ * New Members * + 6 + 3 * + Share Posted yesterday at 10:54 PM 1 hour ago, Buzz313th said: Outa curiosity.. Who in their right mind is so fond of KSP2 right now, they will risk running a game that is spamming the registry and then on top of it, run some random person's code to delete blocks of reg data? Unreal. To be fair, the "random person's code" is completely open source and you can read it to figure out exactly what it does. In a sense, it's safer to run than the game * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * 2 * Kabinet Kabinet Posted 23 hours ago Kabinet * Kabinet * New Members * + 1 + 3 * + Share Posted 23 hours ago Storing anything at all in the windows registry is somewhat bad practice, but using it for large amounts of runtime data, AND not even deleting it afterwards or managing it correctly. Wow. That is some grade A+ premium bad practice spaghetti I would get second hand embarrassment from seeing in a 24 hour gamejam codebase. My only hope is that whichever developer wrote this was either extremely sleep deprived or didn't read the documentation for the PlayerPrefs API and just guessed what it did from function names alone. Even then something called "PlayerPrefs" should be a red flag if you're aiming to store anything other than player preferences. I am both confused and utterly shocked someone wrote this in a production videogame. * * Quote * Link to comment [https://forum.kerbal] Share on other sites * * * --------------------------------------------------------------------- More sharing options... * * Prev * 1 * 2 * 3 * Next * * Page 1 of 3 + [ ] + [Go] Guest * [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Reply to this report... x Pasted as rich text. Paste as plain text instead Only 75 emoji are allowed. x Your link has been automatically embedded. Display as a link instead x Your previous content has been restored. Clear editor x You cannot paste images directly. Upload or insert images from URL. + Insert image from URL x * Desktop * Tablet * Phone * * Submit Reply Share * * * --------------------------------------------------------------------- More sharing options... Followers 5 Go to question listing * Dev Team Comms * Discord Appeals Feed * Flight * All Activity * Home * Kerbal Space Program 2 * KSP2 Suggestions and Development Discussion * KSP2 Bug Reports * * KSP2 is Spamming the Windows Registry Over Weeks/Months Until the Game Will Stop Working Permanently * * * Theme + KSP Light (Default) + KSP Dark + KSP Light Red + KSP Dark Red * Privacy Policy * Contact Us * Contact Us (c)2023 Take-Two Interactive Software, Inc. Powered by Invision Community x * Existing user? Sign In * Sign Up * Forum + Back + Forums + Guidelines + Staff + Online Users + Developer Articles * Activity + Back + All Activity + My Activity Streams + Unread Threads + Threads I Started + Search * Community + Back + Community + Discord + IRC + Subreddit + Wiki * Release Notes * Mods + Back + Mods + KSP1 Mods + KSP2 Mods * Social Media + Back + Social Media + Discord + Instagram + Facebook + TikTok + Twitter * Store x * Create New...