shadowmage45 / TexturesUnlimited

KSP Shader, Texture, and Modeling Utilities
GNU General Public License v3.0
29 stars 17 forks source link

Debug Exception #98

Open Electrocutor opened 4 years ago

Electrocutor commented 4 years ago

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)

simonmeulenbeek commented 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)
simonmeulenbeek commented 4 years ago

I've proposed a patch.

simonmeulenbeek commented 4 years ago

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?

Glitched-Fox-Studios commented 2 years ago

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)
simonmeulenbeek commented 2 years ago

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 ?

gregspruce commented 1 year ago

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