Open Electrocutor opened 4 years ago
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)
I've proposed a patch.
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?
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)
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 ?
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
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)