Space Engineers

Space Engineers

Pocket Shield v3
 This topic has been pinned, so it's probably important
SK  [developer] 28 Dec, 2021 @ 3:20pm
Bug Report
On World Crash
If your game crash and you are sure this mod caused the crash:
  1. Open config files ServerConfig.xml or ClientConfig.xml in [World save location]\Storage\2739353433.sbm_Pocket Shield Core\ and increase <LogLevel> (max 5, and preferable 5)
    <LogLevel>5</LogLevel>
  2. If the crash is reproduce-able, try reproducing the crash only to reduce log file size. If not, play normally unit game crash again.
  3. Throw log files debug_server.log, debug_client.log (in same folder) somewhere so I can see it, and put the link here. If the crash is reproduceable, put the reproduce step here as well.
Which log files to send depends on which side the crash occured (server or client).
Note that the log file is huuuuge on LogLevel 5 and time taken to reproduce the crash is long.

On Incorrect shield value or Incorrect damage taken
If you found incorrect value display on HUD, or you think your character took more damage than they should:
  1. End your session and reload to clear your log file (optional)
  2. Try repeating the situation (take damage)
  3. Locate your shield log file in [World save location]\Storage\2739353433.sbm_Pocket Shield Core\. It is named as debug_shield_[Some number].log. Each character have one or more of this file, just find one that have your name in it.
  4. Throw that log file somewhere so I can see it. Having extra information on involved weapons will be great.

On Possible Issue (no crash)
If you found strange or undocumented behavior that you think may be a bug:
  1. Just put here the issue, along with steps to reproduce that behavior. Log is not required, but having log may help me fix it quicker.


Remember: This mod NEVER crash on my environment, so log is the only way to prove that it crashed on your end.
Last edited by SK; 13 Feb, 2022 @ 11:35pm
< >
Showing 1-5 of 5 comments
Casimir 13 Feb, 2022 @ 2:08pm 
2022-02-13 16:05:33.865 - Thread: 1 -> at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Sandbox.Game.World.MySessionLoader.Unload()
at Sandbox.Game.World.MySessionLoader.UnloadAndExitToMenu()
at Sandbox.Engine.Multiplayer.MyMultiplayerClient.MyMultiplayerClient_HostLeft()
at Sandbox.Engine.Multiplayer.MyMultiplayerBase.RaiseHostLeft()
at Sandbox.Engine.Multiplayer.MyMultiplayerClient.MyMultiplayerClient_ClientLeft(UInt64 user, MyChatMemberStateChangeEnum stateChange)
at System.Action`2.Invoke(T1 arg1, T2 arg2)
at Sandbox.Engine.Multiplayer.MyMultiplayerBase.RaiseClientLeft(UInt64 changedUser, MyChatMemberStateChangeEnum stateChange)
at Sandbox.Engine.Multiplayer.MyMultiplayerBase.OnDisconnectedClient(MyControlDisconnectedMsg& data, UInt64 sender)
at Sandbox.Engine.Multiplayer.MyControlMessageCallback`1.Sandbox.Engine.Multiplayer.ITransportCallback.Receive(ByteStream source, UInt64 sender)
at Sandbox.Engine.Multiplayer.MyMultiplayerBase.ControlMessageReceived(MyPacket p)
at Sandbox.Engine.Networking.MyReceiveQueue.Process(NetworkMessageDelegate handler)
at Sandbox.Engine.Networking.MyNetworkReader.Process()
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)
2022-02-13 16:05:33.865 - Thread: 1 -> Exception occurred: VRage.Game.ModAPI.ModCrashedException: Mod crashed! ---> System.NullReferenceException: Object reference not set to an instance of an object.
at PocketShieldCore.Session_PocketShieldCoreServer.UnloadData()
at Sandbox.Game.World.MySession.UnloadDataComponents(Boolean beforeLoadWorld)
--- End of inner exception stack trace ---
at Sandbox.Game.World.MySession.UnloadDataComponents(Boolean beforeLoadWorld)
at Sandbox.Game.World.MySession.Unload()
at Sandbox.Game.World.MySessionLoader.Unload()
2022-02-13 16:05:33.865 - Thread: 1 -> InnerException:
2022-02-13 16:05:33.865 - Thread: 1 -> Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.
at PocketShieldCore.Session_PocketShieldCoreServer.UnloadData()
at Sandbox.Game.World.MySession.UnloadDataComponents(Boolean beforeLoadWorld)
2022-02-13 16:05:33.866 - Thread: 1 -> Disconnected: [009...880]

Happens every time a player leaves the game to the main menu on a dedicated server. Would be great if this could be fixed!
Last edited by Casimir; 13 Feb, 2022 @ 2:09pm
SK  [developer] 14 Feb, 2022 @ 11:01am 
Originally posted by Casimir:
Happens every time a player leaves the game to the main menu on a dedicated server. Would be great if this could be fixed!

I've just pushed an attempt fix. Please give it a try and don't forget to tell me if it's fixed or not :P
Shado 19 Feb, 2022 @ 6:09am 
Crash on client connecting to DS, I have tried swapping load order of the core / shield mod.

2022-02-19 08:04:53.753 - Thread: 1 -> at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Sandbox.Game.World.MySessionLoader.Unload()
at Sandbox.Game.World.MySessionLoader.UnloadAndExitToMenu()
at Sandbox.Game.Gui.MyGuiScreenLoading.OnLoadException(Exception e, StringBuilder errorText, Single heightMultiplier)
at Sandbox.Game.Gui.MyGuiScreenLoading.RunLoad()
at Sandbox.Game.Gui.MyGuiScreenLoading.Update(Boolean hasFocus)
at Sandbox.Graphics.GUI.MyScreenManager.Update(Int32 totalTimeInMS)
at Sandbox.Graphics.GUI.MyDX9Gui.Update(Int32 totalTimeInMS)
at Sandbox.Graphics.GUI.MyGuiSandbox.Update(Int32 totalTimeInMS)
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)
2022-02-19 08:04:53.753 - Thread: 1 -> Exception occurred: VRage.Game.ModAPI.ModCrashedException: Mod crashed! ---> System.NullReferenceException: Object reference not set to an instance of an object.
at PocketShieldCore.PocketShieldAPI.Close()
at PocketShield.Session_PocketShield.UnloadData()
at Sandbox.Game.World.MySession.UnloadDataComponents(Boolean beforeLoadWorld)
--- End of inner exception stack trace ---
at Sandbox.Game.World.MySession.UnloadDataComponents(Boolean beforeLoadWorld)
at Sandbox.Game.World.MySession.Unload_Patch0(MySession this)
at Sandbox.Game.World.MySessionLoader.Unload()
2022-02-19 08:04:53.753 - Thread: 1 -> InnerException:
2022-02-19 08:04:53.753 - Thread: 1 -> Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.
at PocketShieldCore.PocketShieldAPI.Close()
at PocketShield.Session_PocketShield.UnloadData()
at Sandbox.Game.World.MySession.UnloadDataComponents(Boolean beforeLoadWorld)
SK  [developer] 19 Feb, 2022 @ 6:52am 
Originally posted by Shado:
Crash on client connecting to DS, I have tried swapping load order of the core / shield mod.

Pushed an attempt fix. Please tell me if this fixes the crash or not.
(By the way, can I have the full log? PS mod crashed on UnloadData on client connecting to DS, which should not happen)
Shado 19 Feb, 2022 @ 8:23am 
Originally posted by SK:
Originally posted by Shado:
Crash on client connecting to DS, I have tried swapping load order of the core / shield mod.

Pushed an attempt fix. Please tell me if this fixes the crash or not.
(By the way, can I have the full log? PS mod crashed on UnloadData on client connecting to DS, which should not happen)
It seemed to have fixed the crash.
< >
Showing 1-5 of 5 comments
Per page: 1530 50