This object is in archive! 

Servers Crash on Error of Collection modified.

Yuri shared this bug 13 months ago
Solved

Hi,

We are getting random crashes on 1 function since 199 update.

we have more than 20 players every day, and almost every day we get 1 crash of this type.

=====

2021/08/17 14:49:24.739 [FATAL] Initializer: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()

at Sandbox.Game.Entities.MyDataReceiver.UpdateBroadcastersInRange()

at Sandbox.Game.Entities.Character.MyCharacter.UpdateBeforeSimulation10()

at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.UpdateBeforeSimulation10()

at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchBeforeSimulation()

at Sandbox.Game.Entities.MyEntities.UpdateBeforeSimulation()

at Sandbox.Game.World.MySector.UpdateBeforeSimulation()

at Patched_Sandbox.Game.World.MySessionUpdateComponents_0(Object )

at Patched_Sandbox.Game.World.MySessionUpdate_0(Object , MyTimeSpan )

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()

=============

Function in keen code is public void UpdateBroadcastersInRange()

Crash on modified collection during read.


Please investigate.

Thanks.

Replies (2)

photo
2

Hello, Yuri!


Thank you for your report. Are you still experiencing the crash on the latest game version 199.025? The crash at UpdateBroadcastersInRange should be already fixed in a hotfix. If the crash still occurs, can you please attach here a save of your server?


Thank you!


Kind regards,

Keen Software House: QA Department

photo
1

Hi, thank you for fixing this, since last patch this crash no longer seen during 24/7 servers run. (5 servers)

This bug is fixed :)

photo
1

Hello, Yuri!


Thank you for your quick reply! :) I'm closing this ticket as Solved.


Kind regards,

Keen Software House, QA Department

Replies have been locked on this page!