Skip to content

Mod causes crash when unloading with Wrath of the Gods #5

@AwesomeSavage

Description

@AwesomeSavage

Basically the title.

The error is:
[14:51:13.285] [Main Thread/WARN] [tML]: Silently Caught Exception:
System.Collections.Generic.KeyNotFoundException: The given key 'NoxusBoss' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Terraria.ModLoader.Logging.PrettifyStackTraceSources(StackFrame[] frames) in tModLoader\Terraria\ModLoader\Logging.Utilities.cs:line 30
at Hook<System.Void Terraria.ModLoader.Engine.LoggingHooks::Hook_StackTrace_CaptureStackTrace(Terraria.ModLoader.Engine.LoggingHooks+orig_StackTrace_CaptureStackTrace,System.Diagnostics.StackTrace,System.Int32,System.Boolean,System.Exception)>(StackTrace , Int32 , Boolean , Exception )
at SyncProxy<System.Void System.Diagnostics.StackTrace:CaptureStackTrace(System.Int32, System.Boolean, System.Exception)>(StackTrace , Int32 , Boolean , Exception )
at System.Exception.get_StackTrace()
at System.Exception.ToString()
at Terraria.ModLoader.Engine.ErrorReporting.FatalExit(String message, Exception e) in tModLoader\Terraria\ModLoader\Engine\ErrorReporting.cs:line 89
at Terraria.Program.RunGame() in tModLoader\Terraria\Program.cs:line 266
at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 240
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 213
at Terraria.MonoLaunch.Main_End(String[] args) in tModLoader\Terraria\MonoLaunch.cs:line 79
at Terraria.MonoLaunch.<>c__DisplayClass1_0.

b__1() in tModLoader\Terraria\MonoLaunch.cs:line 65

resulting from
System.NullReferenceException: Object reference not set to an instance of an object.
at NoxusBoss.Content.NPCs.Bosses.NamelessDeity.SpecificEffectManagers.CodeBackgroundManager.UpdateCodeTarget() in NoxusBoss\Content\NPCs\Bosses\NamelessDeity\SpecificEffectManagers\CodeBackgroundManager.cs:line 43
at Luminance.Core.Graphics.RenderTargetManager.HandleTargetUpdateLoop(GameTime obj) in Luminance\Core\Graphics\Automators\RenderTargetManager.cs:line 77
at Terraria.Main.DoDraw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 53228
at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 53162
at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 53149
at Microsoft.Xna.Framework.Game.Tick() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 562
at Microsoft.Xna.Framework.Game.RunLoop() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 878
at Microsoft.Xna.Framework.Game.Run() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 419
at Terraria.Program.RunGame() in tModLoader\Terraria\Program.cs:line 266
at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 240
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 213
at Terraria.MonoLaunch.Main_End(String[] args) in tModLoader\Terraria\MonoLaunch.cs:line 79
at Terraria.MonoLaunch.<>c__DisplayClass1_0.

b__1() in tModLoader\Terraria\MonoLaunch.cs:line 65

when trying to unload tModLoader.

I will also get a crash rarely when trying to load mods, seemingly as a result of this incompatiblity (I think), as shown in the other log (client2) I have attached.

client1.log

client2.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions