Space Engineers

Space Engineers

Helmet - 3D HUD and reflective glass
[BUG] CTD after Memory Access Violation (due to NullRef Exception)
So I lately got a lot of CTDs, when I had a look into the log file I noticed some NullReferenceExceptions probably related to the helmet mod.

I think you can ignore this for now, until I collected further evidence that this is related to the Helmet Mod (probably in a few hours). I'll update the post accordingly.

The following is the relevant part of the log file:

2016-10-11 10:12:20.864 - Thread: 1 -> Loading voxel storage from file 'C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\VoxelMaps\MediumStoneIronCoreStoneCoverage.vx2' 2016-10-11 10:12:21.796 - Thread: 8 -> Exception occured: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at hkpConvexVerticesConnectivityUtil.findConnectivity(hkpConvexVerticesShape* ) at Havok.HkConvexVerticesShape.GetGeometry(HkGeometry geometry, Vector3& center) at Sandbox.Game.AI.Pathfinding.MyNavigationInputMesh.AddPhysicalShape(HkShape shape, Matrix rdWorldMatrix) at Sandbox.Game.AI.Pathfinding.MyNavigationInputMesh.AddGridVerticesInsideOBB(MyCubeGrid grid, MyOrientedBoundingBoxD obb) at Sandbox.Game.AI.Pathfinding.MyNavigationInputMesh.AddEntities(Single border, Vector3D originPosition, MyOrientedBoundingBoxD obb, List`1 boundingBoxes, List`1 trackedEntities) at Sandbox.Game.AI.Pathfinding.MyNavmeshManager.GenerateTile(OBBCoords obbCoord) at Sandbox.Game.AI.Pathfinding.MyNavmeshManager.<>c__DisplayClass1.<GenerateNextQueuedTile>b__0() at ParallelTasks.DelegateWork.DoWork(WorkData workData) at ParallelTasks.WorkItem.DoWork(Int32 expectedID) at ParallelTasks.PrioritizedScheduler.Worker.WorkerLoop(Object o) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj) 2016-10-11 10:12:21.797 - Thread: 8 -> Hiding window 2016-10-11 10:12:21.799 - Thread: 12 -> External debugger: interrupted. 2016-10-11 10:12:21.806 - Thread: 8 -> Network readers disposed 2016-10-11 10:12:32.087 - Thread: 8 -> Hiding window done 2016-10-11 10:12:32.087 - Thread: 8 -> Showing message 2016-10-11 10:12:32.341 - Thread: 8 -> ERROR: branch name cannot be resolved, services= 2016-10-11 10:12:32.341 - Thread: 8 -> ERROR: branch name cannot be resolved, services= 2016-10-11 10:12:32.341 - Thread: 8 -> ERROR: branch name cannot be resolved, services= 2016-10-11 10:12:32.356 - Thread: 1 -> Helmet error/exception: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Character.MyCharacter.GetObjectBuilder(Boolean copy) at Digi.Helmet.Helmet.UpdateCharacterReference(IMyCharacter ent) at Digi.Helmet.Helmet.UpdateHelmetLogic() at Digi.Helmet.Helmet.UpdateAfterSimulation() 2016-10-11 10:12:32.365 - Thread: 1 -> Helmet error/exception: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Character.MyCharacter.GetObjectBuilder(Boolean copy) at Digi.Helmet.Helmet.UpdateCharacterReference(IMyCharacter ent) at Digi.Helmet.Helmet.UpdateHelmetLogic() at Digi.Helmet.Helmet.UpdateAfterSimulation() 2016-10-11 10:12:32.382 - Thread: 1 -> Helmet error/exception: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Character.MyCharacter.GetObjectBuilder(Boolean copy) at Digi.Helmet.Helmet.UpdateCharacterReference(IMyCharacter ent) at Digi.Helmet.Helmet.UpdateHelmetLogic() at Digi.Helmet.Helmet.UpdateAfterSimulation() 2016-10-11 10:12:32.398 - Thread: 1 -> Helmet error/exception: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Character.MyCharacter.GetObjectBuilder(Boolean copy) at Digi.Helmet.Helmet.UpdateCharacterReference(IMyCharacter ent) at Digi.Helmet.Helmet.UpdateHelmetLogic() at Digi.Helmet.Helmet.UpdateAfterSimulation() 2016-10-11 10:12:32.415 - Thread: 1 -> Helmet error/exception: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Character.MyCharacter.GetObjectBuilder(Boolean copy) at Digi.Helmet.Helmet.UpdateCharacterReference(IMyCharacter ent) at Digi.Helmet.Helmet.UpdateHelmetLogic() at Digi.Helmet.Helmet.UpdateAfterSimulation() 2016-10-11 10:12:32.432 - Thread: 1 -> Helmet error/exception: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Character.MyCharacter.GetObjectBuilder(Boolean copy) at Digi.Helmet.Helmet.UpdateCharacterReference(IMyCharacter ent) at Digi.Helmet.Helmet.UpdateHelmetLogic() at Digi.Helmet.Helmet.UpdateAfterSimulation() 2016-10-11 10:12:32.450 - Thread: 1 -> Helmet error/exception: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Character.MyCharacter.GetObjectBuilder(Boolean copy) at Digi.Helmet.Helmet.UpdateCharacterReference(IMyCharacter ent) at Digi.Helmet.Helmet.UpdateHelmetLogic() at Digi.Helmet.Helmet.UpdateAfterSimulation() 2016-10-11 10:12:32.465 - Thread: 1 -> Helmet error/exception: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Character.MyCharacter.GetObjectBuilder(Boolean copy) at Digi.Helmet.Helmet.UpdateCharacterReference(IMyCharacter ent) at Digi.Helmet.Helmet.UpdateHelmetLogic() at Digi.Helmet.Helmet.UpdateAfterSimulation() 2016-10-11 10:12:32.482 - Thread: 1 -> Exception occured: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Entities.Cube.MyRefinery.ChangeRequirementsToResults(MyBlueprintDefinitionBase queueItem, MyFixedPoint blueprintAmount) at Sandbox.Game.Entities.Cube.MyRefinery.ProcessQueueItems(Int32 timeDelta) at Sandbox.Game.Entities.Cube.MyRefinery.UpdateProduction(Int32 timeDelta) at Sandbox.Game.Entities.Cube.MyProductionBlock.UpdateProduction() at Sandbox.Game.Entities.MyEntities.UpdateBeforeSimulation() at Sandbox.Game.World.MySector.UpdateBeforeSimulation() at Sandbox.Game.World.MySession.UpdateComponents() at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime) 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)
Last edited by Significant Otter; 11 Oct, 2016 @ 1:21am
< >
Showing 1-2 of 2 comments
Digi  [developer] 11 Oct, 2016 @ 3:34am 
The refinery part caused the crash which most likely was caused by the first error with havok.

The errors from my mod are also most likely caused by the first error with havok, but why that first one happened I can't really say if it's due to my mod or not, it seems to be related to bot pathfinding across geometry, which most likely means physical geometry which my mod doesn't have any.

I suggest to also report the issue on the keen forums as they have more of an idea what could be the issue.
Last edited by Digi; 11 Oct, 2016 @ 3:34am
Significant Otter 11 Oct, 2016 @ 11:39am 
Thank you for your opinion on this. After further testing I'm also convinced that this is not related to your mod, because I experienced crashes with similar stack traces while it was disabled.

Sorry for consuming your time.
< >
Showing 1-2 of 2 comments
Per page: 1530 50