jpcsupplies / Economy_mod

Basic Economy System for Space Engineers
13 stars 12 forks source link

Rare crash when closing world. #92

Closed midspace closed 8 years ago

midspace commented 8 years ago

Seems to be a timing issue when closing the world. The Timer for Updating the LCDs is supposed to be stopped as soon as the user wants to leave the world, which is supposed to prevent further calls to UpdateLcds().

2015-12-05 20:44:13.810 - Thread:   1 ->  Exception occured: System.NullReferenceException: Object reference not set to an instance of an object.
   at Economy.scripts.Management.LcdManager.UpdateLcds()
   at Sandbox.MySandboxGame.ProcessInvoke()
   at Sandbox.MySandboxGame.Update()
   at Sandbox.Engine.Platform.Game.UpdateInternal()
   at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass2.<Run>b__1()
   at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
   at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
   at SpaceEngineers.MyProgram.RunInternal(String[] args)
   at SpaceEngineers.MyProgram.Main(String[] args)
2015-12-05 20:44:13.811 - Thread:   1 ->  Hiding window