Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUGMA] crash on tdm respawn related to parallel tasks #1554

Open
InvalidArgument3 opened this issue Aug 20, 2024 · 0 comments
Open

[SUGMA] crash on tdm respawn related to parallel tasks #1554

InvalidArgument3 opened this issue Aug 20, 2024 · 0 comments
Labels
Bug-Report Something isn't working

Comments

@InvalidArgument3
Copy link
Contributor

19:21:05.5419 [INFO]   Chat: [Global:0] Good.bot: Autobalance completed.
19:22:53.5840 [INFO]   Torch.Commands.CommandManager: Server ran command '!restart cancel'
19:23:05.6286 [INFO]   Essentials: Cleanup deleted 0 grids matching conditions nopower, playerdistancegreaterthan, 150
19:23:05.6286 [INFO]   Torch.Commands.CommandManager: Server ran command '!cleanup delete nopower playerdistancegreaterthan 150'
19:26:16.8180 [FATAL]  Initializer: ParallelTasks.TaskException: An exception(s) was thrown while executing a task.
   at ParallelTasks.WorkItem.ThrowExceptionsInternal(Int32 runId)
   at ParallelTasks.Task.WaitOrExecute(Boolean blocking)
   at ParallelTasks.Parallel.ForEach[T](IEnumerable`1 collection, Action`1 action, WorkPriority priority, Nullable`1 options, Boolean blocking)
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.PerformParallelUpdate(Action`1 updateFunction)
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchAfterSimulation()
   at Sandbox.Game.Entities.MyEntities.UpdateAfterSimulation()
   at Sandbox.Game.World.MySector.UpdateAfterSimulation()
   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__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 Torch.VRageGame.DoStart() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 326
   at Torch.VRageGame.Run() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 126
   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()
Task exception, inner exception 0:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Sandbox.Game.Entities.Cube.MyCubeBlockCollector.CollectBlock(MySlimBlock block, MyPhysicsOption physicsOption, IDictionary`2 massResults, Boolean allowSegmentation)
   at Sandbox.Game.Entities.Cube.MyCubeBlockCollector.CollectArea(MyCubeGrid grid, HashSet`1 dirtyBlocks, MyVoxelSegmentation segmenter, MyVoxelSegmentationType segmentationType, IDictionary`2 massResults)
   at Sandbox.Game.Entities.Cube.MyGridShape.UpdateDirtyBlocks(HashSet`1 dirtyCubes, Boolean recreateShape)
   at Sandbox.Game.Entities.Cube.MyGridShape.RefreshBlocks(HkRigidBody rigidBody, HashSet`1 dirtyBlocks)
   at Sandbox.Game.Entities.Cube.MyGridPhysics.UpdateShape()
   at Sandbox.Game.Entities.MyCubeGrid.Dispatch(UpdateQueue queue, Boolean parallel)
   at Sandbox.Game.Entities.MyCubeGrid.UpdateAfterSimulationParallel()
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.ParallelUpdateHandlerAfterSimulation(IMyParallelUpdateable entity)
   at ParallelTasks.ForEachLoopWork`1.DoWork(WorkData workData)
   at ParallelTasks.WorkItem.DoWork(Int32 expectedID)

ParallelTasks.TaskException: An exception(s) was thrown while executing a task.
   at ParallelTasks.WorkItem.ThrowExceptionsInternal(Int32 runId)
   at ParallelTasks.Task.WaitOrExecute(Boolean blocking)
   at ParallelTasks.Parallel.ForEach[T](IEnumerable`1 collection, Action`1 action, WorkPriority priority, Nullable`1 options, Boolean blocking)
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.PerformParallelUpdate(Action`1 updateFunction)
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchAfterSimulation()
   at Sandbox.Game.Entities.MyEntities.UpdateAfterSimulation()
   at Sandbox.Game.World.MySector.UpdateAfterSimulation()
   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__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 Torch.VRageGame.DoStart() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 326
   at Torch.VRageGame.Run() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 126
   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()
Task exception, inner exception 0:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Sandbox.Game.Entities.Cube.MyCubeBlockCollector.CollectBlock(MySlimBlock block, MyPhysicsOption physicsOption, IDictionary`2 massResults, Boolean allowSegmentation)
   at Sandbox.Game.Entities.Cube.MyCubeBlockCollector.CollectArea(MyCubeGrid grid, HashSet`1 dirtyBlocks, MyVoxelSegmentation segmenter, MyVoxelSegmentationType segmentationType, IDictionary`2 massResults)
   at Sandbox.Game.Entities.Cube.MyGridShape.UpdateDirtyBlocks(HashSet`1 dirtyCubes, Boolean recreateShape)
   at Sandbox.Game.Entities.Cube.MyGridShape.RefreshBlocks(HkRigidBody rigidBody, HashSet`1 dirtyBlocks)
   at Sandbox.Game.Entities.Cube.MyGridPhysics.UpdateShape()
   at Sandbox.Game.Entities.MyCubeGrid.Dispatch(UpdateQueue queue, Boolean parallel)
   at Sandbox.Game.Entities.MyCubeGrid.UpdateAfterSimulationParallel()
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.ParallelUpdateHandlerAfterSimulation(IMyParallelUpdateable entity)
   at ParallelTasks.ForEachLoopWork`1.DoWork(WorkData workData)
   at ParallelTasks.WorkItem.DoWork(Int32 expectedID)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug-Report Something isn't working
Projects
Status: Backlog
Status: Backlog
Development

No branches or pull requests

1 participant