View Issue Details

IDProjectCategoryLast Update
0024712AI War 2Crash/ExceptionApr 20, 2021 10:34 am
ReporterWaladil Assigned ToChris_McElligottPark  
Severitycrash 
Status resolvedResolutionfixed 
Product Version2.803 Multiplayer Option Overload 
Fixed in Version2.805 Relentless On Several Levels 
Summary0024712: Game crashed when jumping loaded transport into praetorian guard system
DescriptionI'm sincerely not sure exactly what combination of factors caused this, but while pursuing an astro train with a loaded transport, they entered the system and I zoomed into said system, noted the praetorian guard presence, but not the astro train I was looking for, and then realized the game had frozen. After waiting a couple minutes, I let Windows force-close it.

My initial hypothesis would be either targeting priority being called in some way, or a timing aspect of exactly when I zoomed into the system relative to my transport's jump. It could also have been right as an autosave occurred. It'll be hard to try to reproduce since the last autosave was several minutes earlier, but I've attached the most recent autosave as well as the debug log. The system in question (in case it's actually relevant) is Danvers, to the right of my fleet hotkeyed to 1.
TagsNo tags attached.

Activities

BadgerBadger

Apr 20, 2021 3:08 am

manager   ~0061151

Anything in the Arcen Debug Log or the unity Player.log?

Waladil

Apr 20, 2021 4:10 am

reporter   ~0061152

Log and save should have been attached but I think I missed a step since I don't see it. Gonna try to re-upload on this note, but if it doesn't work the last lines of it are:

4/19/2021 11:14:56 PM 2.803 SINGLEP Could not find faction for WardenFleet
4/19/2021 11:14:57 PM 2.803 SINGLEP PerFrame_CheckForPlayerFleetLoading exception at stage 900: System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at (wrapper stelemref) System.Object.virt_stelemref_class_small_idepth(intptr,object)
  at System.Collections.Generic.List`1[T].Add (T item) [0x0001e] in <9577ac7a62ef43179789031239ba8798>:0
  at Arcen.AIW2.Core.EntityOrderCollection.QueueOrder (Arcen.AIW2.Core.GameEntity_Squad ForEntity, Arcen.AIW2.Core.EntityOrder order) [0x0000b] in <1f50711f1c004d99af815a25f7649175>:0
  at Arcen.AIW2.Core.Fleet+Membership+<>c__DisplayClass75_0.<PerFrame_CheckForPlayerFleetLoading>b__0 (Arcen.AIW2.Core.GameEntity_Squad ship) [0x00281] in <1f50711f1c004d99af815a25f7649175>:0

The warden line repeats about once per second for appr. 7 minutes before the exception (starting at 11:07:30), but I don't think it's relevant.
ArcenDebugLogupload.txt (2,090,647 bytes)

Chris_McElligottPark

Apr 20, 2021 10:34 am

administrator   ~0061154

That final issue is solved, so hopefully this is a solution to the actual problem:

* Put in some new cross-threading protections for when entity order collections are altered in any way.
** Rather than using a concurrent queue or something of that nature, we are using an old fashioned style of thread lock on the lists in question.
** There is the very rare risk that this could cause a deadlock, but most likely this would be detected and it will kill the background thread. In the event that happens, we can adjust further. It's also possible that this was the cause of the freezing up that Strategic Sage saw over the weekend, although we're probably not that lucky.

Thank you!

Issue History

Date Modified Username Field Change
Apr 20, 2021 1:31 am Waladil New Issue
Apr 20, 2021 3:08 am BadgerBadger Note Added: 0061151
Apr 20, 2021 4:10 am Waladil File Added: ArcenDebugLogupload.txt
Apr 20, 2021 4:10 am Waladil Note Added: 0061152
Apr 20, 2021 10:34 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Apr 20, 2021 10:34 am Chris_McElligottPark Status new => resolved
Apr 20, 2021 10:34 am Chris_McElligottPark Resolution open => fixed
Apr 20, 2021 10:34 am Chris_McElligottPark Fixed in Version => 2.805 Relentless On Several Levels
Apr 20, 2021 10:34 am Chris_McElligottPark Note Added: 0061154