Exception occured: System.NullReferenceException when shooting with missles and guns agains voxels

Florian Kinder shared this bug 11 months ago
Solved

2018-08-24 21:54:07.594 - Thread:   1 ->  Exception occured: System.NullReferenceException: Object reference not set to an instance of an object.
   at Sandbox.Engine.Voxels.MyStorageBase.GetChunk(Vector3I& coord, VoxelChunk& chunk, MyStorageDataTypeFlags required)
   at Sandbox.Engine.Voxels.MyStorageBase.ExecuteOperationFast[TVoxelOperator](TVoxelOperator& voxelOperator, MyStorageDataTypeFlags dataToWrite, Vector3I& voxelRangeMin, Vector3I& voxelRangeMax, Boolean notifyRangeChanged)
   at Sandbox.Engine.Voxels.MyVoxelGenerator.CutOutSphereFast(MyVoxelBase voxelMap, Vector3D& center, Single radius, Vector3I& cacheMin, Vector3I& cacheMax, Boolean notifyChanged)
   at lambda_method(Closure , MyVoxelBase , Vector3D , Single , Boolean , DBNull , DBNull , DBNull )
   at VRage.Network.CallSite`7.Invoke(BitStream stream, Object obj, Boolean validate)
   at VRage.Network.MyReplicationLayer.Invoke(CallSite callSite, BitStream stream, Object obj, EndpointId source, MyClientStateBase clientState, Boolean validate)
   at VRage.Network.MyReplicationClient.OnEvent(MyPacketDataBitStreamBase data, CallSite site, Object obj, IMyNetObject sendAs, EndpointId source)
   at VRage.Network.MyReplicationLayer.OnEvent(MyPacketDataBitStreamBase data, NetworkId networkId, NetworkId blockedNetId, UInt32 eventId, EndpointId sender)
   at VRage.Network.MyReplicationClient.OnEvent(MyPacketDataBitStreamBase data, NetworkId networkId, NetworkId blockedNetId, UInt32 eventId, EndpointId sender)
   at VRage.Network.MyReplicationLayer.ProcessEvent(MyPacketDataBitStreamBase data, EndpointId sender)
   at VRage.Network.MyReplicationLayer.OnEvent(MyPacket packet)
   at Sandbox.Engine.Multiplayer.MyTransportLayer.ProcessMessage(MyPacket p)
   at Sandbox.Engine.Multiplayer.MyTransportLayer.HandleMessage(MyPacket p)
   at Sandbox.Engine.Networking.MyReceiveQueue.Process(NetworkMessageDelegate handler)
2018-08-24 21:54:07.594 - Thread:   1 ->  Packet processing error, disconnecting 90118774076038148
2018-08-24 21:54:07.628 - Thread:   1 ->  Exception occured: System.NullReferenceException: Object reference not set to an instance of an object.
   at Sandbox.Engine.Voxels.MyStorageBase.GetChunk(Vector3I& coord, VoxelChunk& chunk, MyStorageDataTypeFlags required)
   at Sandbox.Engine.Voxels.MyStorageBase.ExecuteOperationFast[TVoxelOperator](TVoxelOperator& voxelOperator, MyStorageDataTypeFlags dataToWrite, Vector3I& voxelRangeMin, Vector3I& voxelRangeMax, Boolean notifyRangeChanged)
   at Sandbox.Engine.Voxels.MyVoxelGenerator.CutOutSphereFast(MyVoxelBase voxelMap, Vector3D& center, Single radius, Vector3I& cacheMin, Vector3I& cacheMax, Boolean notifyChanged)
   at lambda_method(Closure , MyVoxelBase , Vector3D , Single , Boolean , DBNull , DBNull , DBNull )
   at VRage.Network.CallSite`7.Invoke(BitStream stream, Object obj, Boolean validate)
   at VRage.Network.MyReplicationLayer.Invoke(CallSite callSite, BitStream stream, Object obj, EndpointId source, MyClientStateBase clientState, Boolean validate)
   at VRage.Network.MyReplicationClient.OnEvent(MyPacketDataBitStreamBase data, CallSite site, Object obj, IMyNetObject sendAs, EndpointId source)
   at VRage.Network.MyReplicationLayer.OnEvent(MyPacketDataBitStreamBase data, NetworkId networkId, NetworkId blockedNetId, UInt32 eventId, EndpointId sender)
   at VRage.Network.MyReplicationClient.OnEvent(MyPacketDataBitStreamBase data, NetworkId networkId, NetworkId blockedNetId, UInt32 eventId, EndpointId sender)
   at VRage.Network.MyReplicationLayer.ProcessEvent(MyPacketDataBitStreamBase data, EndpointId sender)
   at VRage.Network.MyReplicationLayer.OnEvent(MyPacket packet)
   at Sandbox.Engine.Multiplayer.MyTransportLayer.ProcessMessage(MyPacket p)
   at Sandbox.Engine.Multiplayer.MyTransportLayer.HandleMessage(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__DisplayClass1.<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)
2018-08-24 21:54:07.630 - Thread:   1 ->  Hiding window
2018-08-24 21:54:07.630 - Thread:   1 ->  Hiding window done
2018-08-24 21:54:07.630 - Thread:   1 ->  Showing message

Comments (4)

photo
1

A random connected to my testserver spawned a ship and shoot agains astroids, all clients crashed. Server still running.

photo
1

I was mining my gamed crashed and when i logged back in my ship was doing dubstep rodeo near the asteroid destroyed half of it in the process if you can get away form the asteroid without touching it you wont crash


crashed 5 time before i could get out

photo
1

Hello there,

we believe that we addressed this issue in today's hotfix (1.187.204).


Let us know if it fixed all cases for you.

Thanks!

photo
1

This issue has been resolved in 1.187.204.