Nertea Posted October 13 Author Share Posted October 13 2 hours ago, omegalex said: Exception: NullReferenceException: Object reference not set to an instance of an object This error gets spammed in the cheat console when I'm in flight (on runway, launchpad, flight any situation outside). It only happens when I have anything that generates electrical power, including stock photovoltaic panels. Recently I've also had an issue with the game suddenly crashing out of nowhere, the screen turning into a color that would fit the environment (camera faces the surface of the mun => grey screen of death). I don't know if these 2 issues are related, but this exception being spammed continuously does feel like some sort of time bomb. Logfiles, modlist, reproduction steps. Quote Link to comment Share on other sites More sharing options...
omegalex Posted October 14 Share Posted October 14 (edited) Logs and mods are here in this google drive link. On 10/14/2024 at 1:08 AM, Nertea said: Logfiles, modlist, reproduction steps. ---------------------------------------------------------------------------------------------------------- [LOG 12:42:51.599] Vessel destroyed - Regenerating scatters [LOG 12:42:51.600] [PlanetariumCamera]: Focus: Kerbin [ERR 12:42:51.614] Exception handling event onPlanetariumTargetChange in class KnowledgeBase:System.NullReferenceException at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component) at KSP.UI.Screens.KbApp_PlanetResources.ActivateApp (MapObject target) [0x0007d] in <4b449f2841f84227adfaad3149c8fdba>:0 at KSP.UI.Screens.KnowledgeBase.ActivateApps (KSP.UI.Screens.KnowledgeBase+KbTargetType targetType, MapObject target) [0x000fa] in <4b449f2841f84227adfaad3149c8fdba>:0 at KSP.UI.Screens.KnowledgeBase.OnMapFocusChange (MapObject target) [0x000f4] in <4b449f2841f84227adfaad3149c8fdba>:0 at EventData`1[T].Fire (T data) [0x000b0] in <4b449f2841f84227adfaad3149c8fdba>:0 [EXC 12:42:51.615] NullReferenceException KSP.UI.Screens.KbApp_PlanetResources.ActivateApp (MapObject target) (at <4b449f2841f84227adfaad3149c8fdba>:0) KSP.UI.Screens.KnowledgeBase.ActivateApps (KSP.UI.Screens.KnowledgeBase+KbTargetType targetType, MapObject target) (at <4b449f2841f84227adfaad3149c8fdba>:0) KSP.UI.Screens.KnowledgeBase.OnMapFocusChange (MapObject target) (at <4b449f2841f84227adfaad3149c8fdba>:0) EventData`1[T].Fire (T data) (at <4b449f2841f84227adfaad3149c8fdba>:0) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) EventData`1:Fire(MapObject) PlanetariumCamera:SetTarget(MapObject) PlanetariumCamera:OnVesselDestroy(Vessel) EventData`1:Fire(Vessel) Vessel:OnDestroy() Might no longer be relevant, the vessel destroyed stuff was just flights being unloaded ---------------------------------------------------------------------------------------------------------- About reproduction, I have genuinely no idea when or how these crashes happen (screen freezes or turns into a blank color, but the game still runs in the background until it crashes), it's entirely unpredictable, but once one crash happens then there will be more coming after much frequently, sometimes after something like 5 minutes. Most of the times it happens in flight (had 5 consecutive crashes in a span of 20-30 minutes when I was testing a rocket, and 5 more in orbit around the mun), sometimes in the VAB (happened twice yesterday after some hours of playing ksp). I also noticed that when I played ksp with an empty mod folder I was no longer stuck facing crashes minutes after minutes (been testing for 1-2 hours). When I added back all the mods I have, except for the visual mods, no crashes happened until at some point, much later, the screen turned into a blank color (matching the color of the texture I was facing, for example if I was looking at the mun, I'd see a grey screen of death). When this happened I did have DynamicBatteryStorage installed. I thought I could work with this, so I went back to playing ksp regulary. I was testing a lander for a minmus probe, and instead of teleporting to minmus I decided to lower the gravity down to 0.05 to simulate it. When I opened the cheat console, I saw this exception being spammed like 3 or 5 times a second, over and over, without stopping: Exception: NullReferenceException: Object reference not set to an instance of an object Turns out it's caused by DynamicBatteryStorage. When I removed the mod, the console looked clean, the exception was no longer being spammed. I don't think that DynamicBatteryStorage causes the crash, since I had similar ones in a game called From the depths and in War thunder (sometimes rarely, sometimes would suddenly crash over and over), but the spam of exceptions I saw in the console doesn't seem right. Right now I am playing without DynamicBatteryStorage and will all the mods I had previously installed just to make sure that I've checked out everything I could. One more thing, I changed drivers and all of my hardware except for the hard drive I have the OS installed on. Unless this somehow causes issues (although I highly doubt that), then I really can't guess why this would still persist with new components for so many years. ***EDIT: Crash happened again without dynamic battery storage, I guess all the crashing stuff above is pointless to address in this forum. The only thing that remains is the exception spam in the console.. Also updated the log file, there are some freaky parallax exceptions happening at 23:01 and 23:30 ish seen on both crash logs I linked. Edited October 15 by omegalex Change in situation, crash happened without dbs Quote Link to comment Share on other sites More sharing options...
Nertea Posted October 15 Author Share Posted October 15 @omegalex Cool - but to dig into when this NRE happens I need a log of the event itself. Both logs in your zip have a ton of exceptions from Parallax and some other mods, but unless my search-fu fails miserably there's nothing from DBS in them. Quote Link to comment Share on other sites More sharing options...
omegalex Posted October 15 Share Posted October 15 (edited) 4 hours ago, Nertea said: @omegalex Cool - but to dig into when this NRE happens I need a log of the event itself. Both logs in your zip have a ton of exceptions from Parallax and some other mods, but unless my search-fu fails miserably there's nothing from DBS in them. Found a lot of weird new things, posted the new log in the google drive link. -KSPCF wrote 39 memory leak logs (from 20:46:42.169, might be the same stuff at LOG 20:46:17.339) -Dynamic battery storage exception related to the error code I saw in the console (at EXC 20:45:30.987) and a dozen more being spammed one after another (from EXC 20:45:31.810) -Argument null exception related to parallax (from EXC 20:46:32.999) -other KSPCF logs (also 39) about memory leaks (from LOG 20:46:17.339) that involve system heat, kerbal actuators, dynamic battery storage, kopernicus solar panels, space dust, hullcamvds, near future electrical and something related to EVAConstructionMode (no clue what it is) 373 memory leaks, and there might be more details that I missed Jesus H. Christ Edit: I updated kopernicus and now the console is no longer being spammed with exceptions. Uploaded the new log after updating kopernicus, the dynamic battery storage exceptions are gone, but there are still some nasty memory leaks. I noticed the following things: LOG 21:41:27.740 (19 memory leaks this time) EXC 21:41:34.009 (tufx? object reference not set to an instance of an object) WRN 21:41:36.720 (something about kopernicus solar panel and changed configurations, has appeared multiple times after the logs listed below) LOG 21:45:13.249 (241 memory leaks, apparently right after I unloaded a probe in polar orbit around minmus) LOG 21:46:23.863 (changed from space center to trackstation, 14 memory leaks) LOG 21:49:08.965 (tracking station to space center, 28 memory leaks) LOG 21:49:27.405 (same as LOG 21:46:23.863) LOG 21:49:55.040 (tracking station to flight, this has to be a minmus mission I launched for a surface base, 17 memory leaks) LOG 21:52:05.383 (flight to space center, 370 memory leaks) LOG 21:53:51.871 (flight to space center, 656 memory leaks) LOG 21:54:15.369 (space center to editor, 14 memory leaks) LOG 21:54:36.000 (editor to flight, 112 leaks) LOG 21:55:12.510 (flight to editor, 624 leaks) All of the memory leaks that I mentioned above had an exception "NullReferenceException: Object reference not set to an instance of an object" related to KSPShaderTools right after the leaks. The number of leaks also seems to grow in number. LOG 21:56:14.559 (editor to space center, 120 leaks, different save file) LOG 21:56:39.427 (space center to main menu, 14 leaks) LOG 21:58:23.606 (flight to main menu, 509 leaks) All of the memory leaks logged by KSPCF had the same mods I listed previously. @Nertea DynamicBatteryStorage is no longer an issue (I don't think it ever was tbh) , so therefore I don't think these issues I'm listing are relevant anymore. I'll continue on a separate forum. But who knows, maybe you'll catch something important in the logs, since most of the mods that were listed in the leaks involved some of yours. Sorry for wasting your time, if that was the case. Sigh, crashed again... 5630 memory leaks and 700 moments before the crash.... fun Edited October 15 by omegalex Quote Link to comment Share on other sites More sharing options...
Fizzlebop Smith Posted October 30 Share Posted October 30 (edited) I am by no means amazing at this, but I have a feeling you are having conflicts with other mods. Remove Visual mods (Does problem persist?) *If Yes* - Remove More Mods - Repeat *If No* Slowly Add A few mods in at a time then check stability. Now start back at the top. When you are running so many error and NRE and whatever else is occuring.. no one can put their finger on a single solution bc there likely isn't one. It could be a result of version / mod conflicts and may be as simple as DLing a new patch or as complex as spending days parsing mods a few at a time and checking for stability. The speed this is done depends on the power of your box (LOTS of Load Time) Sorry Forgot to Tag you On 10/15/2024 at 11:05 AM, omegalex said: Found a lot of weird new things, posted the new log in the google drive link. -KSPCF wrote 39 memory leak logs (from 20:46:42.169, might be the same stuff at LOG 20:46:17.339) -Dynamic battery storage exception related to the error code I saw in the console (at EXC 20:45:30.987) and a dozen more being spammed one after another (from EXC 20:45:31.810) -Argument null exception related to parallax (from EXC 20:46:32.999) -other KSPCF logs (also 39) about memory leaks (from LOG 20:46:17.339) that involve system heat, kerbal actuators, dynamic battery storage, kopernicus solar panels, space dust, hullcamvds, near future electrical and something related to EVAConstructionMode (no clue what it is) 373 memory leaks, and there might be more details that I missed Jesus H. Christ Edit: I updated kopernicus and now the console is no longer being spammed with exceptions. Uploaded the new log after updating kopernicus, the dynamic battery storage exceptions are gone, but there are still some nasty memory leaks. I noticed the following things: LOG 21:41:27.740 (19 memory leaks this time) EXC 21:41:34.009 (tufx? object reference not set to an instance of an object) WRN 21:41:36.720 (something about kopernicus solar panel and changed configurations, has appeared multiple times after the logs listed below) LOG 21:45:13.249 (241 memory leaks, apparently right after I unloaded a probe in polar orbit around minmus) LOG 21:46:23.863 (changed from space center to trackstation, 14 memory leaks) LOG 21:49:08.965 (tracking station to space center, 28 memory leaks) LOG 21:49:27.405 (same as LOG 21:46:23.863) LOG 21:49:55.040 (tracking station to flight, this has to be a minmus mission I launched for a surface base, 17 memory leaks) LOG 21:52:05.383 (flight to space center, 370 memory leaks) LOG 21:53:51.871 (flight to space center, 656 memory leaks) LOG 21:54:15.369 (space center to editor, 14 memory leaks) LOG 21:54:36.000 (editor to flight, 112 leaks) LOG 21:55:12.510 (flight to editor, 624 leaks) All of the memory leaks that I mentioned above had an exception "NullReferenceException: Object reference not set to an instance of an object" related to KSPShaderTools right after the leaks. The number of leaks also seems to grow in number. LOG 21:56:14.559 (editor to space center, 120 leaks, different save file) LOG 21:56:39.427 (space center to main menu, 14 leaks) LOG 21:58:23.606 (flight to main menu, 509 leaks) All of the memory leaks logged by KSPCF had the same mods I listed previously. @Nertea DynamicBatteryStorage is no longer an issue (I don't think it ever was tbh) , so therefore I don't think these issues I'm listing are relevant anymore. I'll continue on a separate forum. But who knows, maybe you'll catch something important in the logs, since most of the mods that were listed in the leaks involved some of yours. Sorry for wasting your time, if that was the case. Sigh, crashed again... 5630 memory leaks and 700 moments before the crash.... fun Edited October 30 by Fizzlebop Smith Quote Link to comment Share on other sites More sharing options...
omegalex Posted October 31 Share Posted October 31 On 10/30/2024 at 4:14 AM, Fizzlebop Smith said: I am by no means amazing at this, but I have a feeling you are having conflicts with other mods. Remove Visual mods (Does problem persist?) *If Yes* - Remove More Mods - Repeat *If No* Slowly Add A few mods in at a time then check stability. Now start back at the top. When you are running so many error and NRE and whatever else is occuring.. no one can put their finger on a single solution bc there likely isn't one. It could be a result of version / mod conflicts and may be as simple as DLing a new patch or as complex as spending days parsing mods a few at a time and checking for stability. The speed this is done depends on the power of your box (LOTS of Load Time) Sorry Forgot to Tag you Now that the servers are back up I can finally say that I found the source of crashes. It is the god damn anti-aliasing. I have removed every mod and the issue persisted without them. Turns out it has something to do with my pc, not the game. What a goose chase... Quote Link to comment Share on other sites More sharing options...
Fizzlebop Smith Posted October 31 Share Posted October 31 2 hours ago, omegalex said: Now that the servers are back up I can finally say that I found the source of crashes. It is the god damn anti-aliasing. I have removed every mod and the issue persisted without them. Turns out it has something to do with my pc, not the game. What a goose chase... That really sucks. I had similiar issue but it was with newer visuals that conflicted with TUFX. So was it a config line that you had to edit? I have personally been near tears after days of failed diagnoses and understand. I'm glad ypu discovered then source of the issue. Quote Link to comment Share on other sites More sharing options...
omegalex Posted November 1 Share Posted November 1 On 10/31/2024 at 6:36 PM, Fizzlebop Smith said: That really sucks. I had similiar issue but it was with newer visuals that conflicted with TUFX. So was it a config line that you had to edit? I genuinely have no idea where I went wrong or if this issue is ksp or hardware related. The only thing I did was turn off anti-aliasing in the settings and bam, problem gone (although it has been sneaking by from time to time, with AA at 2x and Highlight FX off) On 10/31/2024 at 6:36 PM, Fizzlebop Smith said: I have personally been near tears after days of failed diagnoses and understand. I'm glad ypu discovered then source of the issue. Yeah, it's very exhausting. And thanks man! Quote Link to comment Share on other sites More sharing options...
KspNoobUsernameTaken Posted November 7 Share Posted November 7 12 hours ago, Bidding Estimate said: This mod sounds like a great solution for managing electrical and thermal properties in complex vessels. If you’re integrating it into your project, consulting electrical estimating services can help you ensure the right components are selected to match your power requirements and avoid inefficiencies. Are we about to get an electric consultation company bot-ad on the KSP forum? Quote Link to comment Share on other sites More sharing options...
Deddly Posted November 7 Share Posted November 7 LOL. Obvious bot is obvious. Correction: was Quote Link to comment Share on other sites More sharing options...
Rakete Posted November 7 Share Posted November 7 I guess this is a dynamic battery storage issue @Nertea Quote Link to comment Share on other sites More sharing options...
Rjoande Posted November 14 Share Posted November 14 Hi @Nertea I'm encountering an issue with the Manager in the VAB. It shows correctly the energy consumption, but gives 0 ec/s for any power sources, no matter if solar, RTG etc. (although they are correctly listed in the UI). Is there a known possibile reason for this? Otherwise I can provide log and screenshot later today Quote Link to comment Share on other sites More sharing options...
Nertea Posted November 14 Author Share Posted November 14 5 hours ago, Rjoande said: Hi @Nertea I'm encountering an issue with the Manager in the VAB. It shows correctly the energy consumption, but gives 0 ec/s for any power sources, no matter if solar, RTG etc. (although they are correctly listed in the UI). Is there a known possibile reason for this? Otherwise I can provide log and screenshot later today Always need logs and screenshots. On 11/7/2024 at 2:30 PM, Rakete said: I guess this is a dynamic battery storage issue @Nertea Can't reproduce with a basic install of NFS, DBS. Need reproduction steps. Quote Link to comment Share on other sites More sharing options...
Rjoande Posted November 15 Share Posted November 15 On 7/9/2019 at 11:06 PM, Nertea said: It is essential that I get screenshots of the craft in question, screenshots of the UI, and an output_log.txt file (not KSP.log). I have player.log file, hope it's correct. Quote In addition, please go to the DynamicBatteryStorageSettings.cfg file in your GameData/DynamicBatteryStorage directory and change DebugMode to true Didn't find a DebugMode line, but tried to set to "true" all the debug lines at the very top of the cfg file. Here is the log and two screenshots of a complex vessel and a simple one (the issue persists): https://www.dropbox.com/scl/fo/tm2h2tpxk3mlnasllgczu/AGMfz37dwfUaIOy_IkxRc1E?rlkey=r5whnbx7337x48aotkoddnwr1&st=z6t4dh5v&dl=0 Thanks ahead for the help. Quote Link to comment Share on other sites More sharing options...
Nertea Posted November 15 Author Share Posted November 15 7 hours ago, Rjoande said: I have player.log file, hope it's correct. Didn't find a DebugMode line, but tried to set to "true" all the debug lines at the very top of the cfg file. Here is the log and two screenshots of a complex vessel and a simple one (the issue persists): https://www.dropbox.com/scl/fo/tm2h2tpxk3mlnasllgczu/AGMfz37dwfUaIOy_IkxRc1E?rlkey=r5whnbx7337x48aotkoddnwr1&st=z6t4dh5v&dl=0 Thanks ahead for the help. Weather Dependent Solar Panel is not supported right now, which is the cause of your issue. Quote Link to comment Share on other sites More sharing options...
Rjoande Posted November 15 Share Posted November 15 48 minutes ago, Nertea said: Weather Dependent Solar Panel is not supported right now, which is the cause of your issue. Wait, so why it also affects (Re)stock solar panels? Also, I don't remember installing such feature (Weather Dependent Solar Panel), maybe is this part of another mod? Quote Link to comment Share on other sites More sharing options...
Nertea Posted November 15 Author Share Posted November 15 29 minutes ago, Rjoande said: Wait, so why it also affects (Re)stock solar panels? Also, I don't remember installing such feature (Weather Dependent Solar Panel), maybe is this part of another mod? Ok this is slightly embarrasing but I was looking at a different logfile haha. Back to investigating. Quick check - are you using the newest Kopernicus and the newest version of this mod? Quote Link to comment Share on other sites More sharing options...
Rjoande Posted November 15 Share Posted November 15 23 minutes ago, Nertea said: Quick check - are you using the newest Kopernicus and the newest version of this mod? Ops, missed the last version of Kopernicus. Updated just now, and now EC shows correctly! Thank you Quote Link to comment Share on other sites More sharing options...
Nertea Posted Thursday at 06:17 AM Author Share Posted Thursday at 06:17 AM Systems Monitor 2.3.4 Stability updates: breaking the mod will now break it less Performance updates: cut frame time cost of DBS on a 200 part vessel by something like 75% Fixed issues with edtor reverts and reloads failing to reset the UI until you made a change to the vessel Code cleanup Reworking of layout of handler code for ease of use Remove old thermal handling code now that nobody has missed it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.