TexturesUnlimited icon indicating copy to clipboard operation
TexturesUnlimited copied to clipboard

Debug Exception

Open Electrocutor opened this issue 4 years ago • 6 comments

I still get this frequently:

[LOG 14:17:09.060] [AddonLoader]: Instantiating addon 'TexturesUnlimitedDebug' from assembly 'TexturesUnlimited' [EXC 14:17:09.060] NullReferenceException: Object reference not set to an instance of an object KSP.UI.Screens.ApplicationLauncher.RemoveModApplication (KSP.UI.Screens.ApplicationLauncherButton button) (at <55ba45dc3a43403382024deac8dcd0be>:0) KSPShaderTools.Addon.TexturesUnlimitedDebug.Awake () (at :0)

Electrocutor avatar Apr 20 '20 19:04 Electrocutor

I'm getting this too.

[LOG 21:52:18.601] [AddonLoader]: Instantiating addon 'TexturesUnlimitedDebug' from assembly 'TexturesUnlimited'
[EXC 21:52:18.602] NullReferenceException: Object reference not set to an instance of an object
	KSP.UI.Screens.ApplicationLauncher.RemoveModApplication (KSP.UI.Screens.ApplicationLauncherButton button) (at <9d71e4043e394d78a6cf9193ad011698>:0)
	KSPShaderTools.Addon.TexturesUnlimitedDebug.Awake () (at <d05d146f0f32458d9a30cf17e61f35a8>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.GameObject:AddComponent(Type)
	AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
	AddonLoader:StartAddons(Startup)
	AddonLoader:OnLevelLoaded(GameScenes)
	AddonLoader:OnSceneLoaded(Scene, LoadSceneMode)
	UnityEngine.SceneManagement.SceneManager:Internal_SceneLoaded(Scene, LoadSceneMode)

simonmeulenbeek avatar Apr 23 '20 20:04 simonmeulenbeek

I've proposed a patch.

simonmeulenbeek avatar Apr 23 '20 20:04 simonmeulenbeek

I think this might happen after adjusting something in SSTUDebugPanel, and then changing scenes to VAB or SPH. @Electrocutor I've created a release of my fix. This way you can test it before it gets intergrated, you can find it here: github.com/simonmeulenbeek/TexturesUnlimited/releases . Can you try and tell if this fixes your problem?

simonmeulenbeek avatar Apr 27 '20 10:04 simonmeulenbeek

Getting this same error in my log at start-up, unfortunately, @simonmeulenbeek fix is no longer available.

[LOG 17:47:37.841] [AddonLoader]: Instantiating addon 'TexturesUnlimitedDebug' from assembly 'TexturesUnlimited'
[EXC 17:47:37.843] NullReferenceException: Object reference not set to an instance of an object
	KSP.UI.Screens.ApplicationLauncher.RemoveModApplication (KSP.UI.Screens.ApplicationLauncherButton button) (at <39c0323fb6b449a4aaf3465c00ed3c8d>:0)
	KSPShaderTools.Addon.TexturesUnlimitedDebug.Awake () (at <d05d146f0f32458d9a30cf17e61f35a8>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.GameObject:AddComponent(Type)
	AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
	AddonLoader:StartAddons(Startup)
	AddonLoader:OnLevelLoaded(GameScenes)
	AddonLoader:OnSceneLoaded(Scene, LoadSceneMode)
	UnityEngine.SceneManagement.SceneManager:Internal_SceneLoaded(Scene, LoadSceneMode)

Glitched-Fox-Studios avatar May 25 '22 16:05 Glitched-Fox-Studios

I'm sorry, I've recently cleaned up my github account... Didn't realize people were still using it!

I don't have the KSP debug environment setup anymore, so I can't create a new release... maybe you can get @shadowmage45 to accept this PR ?

simonmeulenbeek avatar Jun 05 '22 12:06 simonmeulenbeek

Sorry for resurrecting an old thread, but I am getting this exception now and was wondering if anything had been done for the fix? @shadowmage45

gregspruce avatar Apr 09 '23 15:04 gregspruce