viktor-ferenczi / multigrid-projector

Multigrid Projector plugin for the Space Engineers game.
MIT License
24 stars 6 forks source link

Intermittend crash in Assemble Projection #64

Closed mkaito closed 5 months ago

mkaito commented 5 months ago

Sometimes, when computing the list of components for certain blueprints, it will crash the game:

2024-03-19 13:44:11.176 - thread:   1 ->  exception occurred: system.nullreferenceexception: object reference not set to an instance of an object.
   at multigridprojectorclient.extra.craftprojection.makedialog(myspaceprojector projector)
   at sandbox.game.gui.myterminalcontrolbutton`1.onbuttonclicked(myguicontrolbutton obj)
   at system.delegateextensions.invokeifnotnull[t1](action`1 handler, t1 arg1)
   at sandbox.graphics.gui.myguicontrolbutton.handleinput()
   at sandbox.graphics.gui.myguicontrolparent.handleinput()
   at sandbox.graphics.gui.myguicontrollist.handleinput()
   at sandbox.graphics.gui.myguicontrolbase.handleinputelements()
   at sandbox.graphics.gui.myguicontrolparent.handleinput()
   at sandbox.graphics.gui.myguicontrolparent.handleinput()
   at sandbox.graphics.gui.myguiscreenbase.handlecontrolsinput(boolean receivedfocusinthisupdate)
   at sandbox.graphics.gui.myguiscreenbase.handleinput(boolean receivedfocusinthisupdate)
   at sandbox.game.gui.myguiscreenterminal.handleinput(boolean receivedfocusinthisupdate)
   at sandbox.graphics.gui.myscreenmanager.handleinput()
   at sandbox.graphics.gui.mydx9gui.handleinput()
   at sandbox.mysandboxgame.update()
   at sandbox.engine.platform.game.updateinternal()
   at sandbox.engine.platform.game.runsingleframe()
   at sandbox.engine.platform.fixedloop.<>c__displayclass11_0.<run>b__0()
   at sandbox.engine.platform.genericloop.run(voidaction tickcallback)
   at sandbox.engine.platform.game.runloop()
   at sandbox.mysandboxgame.run(boolean customrenderloop, action disposesplashscreen)
   at spaceengineers.myprogram.main(string[] args)
   at avaness.spaceengineerslauncher.program.startspaceengineers(string[] args)
   at avaness.spaceengineerslauncher.program.main(string[] args)