View Issue Details

IDProjectCategoryLast Update
0024514AI War 2Crash/ExceptionMar 9, 2021 2:17 pm
ReporterSigma7 Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 2.752 Golden Devourer 
Fixed in VersionBeta 2.754 Buffs And Bugfixes 
Summary0024514: NullReferenceException in PerFrame_CheckForPlayerFleetLoading
DescriptionThis NRE is a log spammer, thus I can't tell exactly if there was a root cause before the errors, and it also seems to occur while being paused:

3/7/2021 10:02:41 PM 2.752 SINGLEP PerFrame_CheckForPlayerFleetLoading exception at stage 700: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.EntityOrderCollection.ClearOrders (Arcen.AIW2.Core.ClearBehavior ClearType, Arcen.AIW2.Core.ClearDecollisionOnParent DecollisionClear, Arcen.AIW2.Core.ClearSource CSource, System.String DebugReason) [0x000d3] in <a8c2c1328bad490294d0ffd699bcab0a>:0
  at Arcen.AIW2.Core.Fleet+Membership+<>c__DisplayClass72_0.<PerFrame_CheckForPlayerFleetLoading>b__0 (Arcen.AIW2.Core.GameEntity_Squad ship) [0x001fb] in <a8c2c1328bad490294d0ffd699bcab0a>:0
3/7/2021 10:02:41 PM 2.752 SINGLEP PerFrame_CheckForPlayerFleetLoading exception at stage 700: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.EntityOrderCollection.ClearOrders (Arcen.AIW2.Core.ClearBehavior ClearType, Arcen.AIW2.Core.ClearDecollisionOnParent DecollisionClear, Arcen.AIW2.Core.ClearSource CSource, System.String DebugReason) [0x000d3] in <a8c2c1328bad490294d0ffd699bcab0a>:0
  at Arcen.AIW2.Core.Fleet+Membership+<>c__DisplayClass72_0.<PerFrame_CheckForPlayerFleetLoading>b__0 (Arcen.AIW2.Core.GameEntity_Squad ship) [0x001fb] in <a8c2c1328bad490294d0ffd699bcab0a>:0

I'm putting severity crash, because It also corrupts saved games. The autosave surviving because it wasn't causing problems, but unfortunatley doesn't lead to reproduction:

3/7/2021 10:04:06 PM 2.752 SINGLEP GameEntity_Base deserialization error at stage 4000 from serialized version 2.752 loading into new version 2.752, error: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.GameEntity_Base.StartDeserializeFrom (Arcen.AIW2.Core.Planet Planet, Arcen.AIW2.Core.PlanetFaction Faction, Arcen.Universal.ArcenDeserializationBuffer Buffer, System.String PlaceDeserializingFromForDebugging, System.Boolean HideErrors, System.Boolean& HadCatastrophicFail, System.Boolean IsLoadingForTemplate) [0x0009f] in <a8c2c1328bad490294d0ffd699bcab0a>:0
3/7/2021 10:04:06 PM 2.752 SINGLEP GameEntity_Squad deserialization error at stage 11000 from serialized version 2.752 loading into new version 2.752, error: System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Arcen.AIW2.Core.GameEntity_Squad.SetCurrentMarkLevel (System.Byte newValue, Arcen.AIW2.Core.ArcenSimContext Context_OrPassNullIfYouSuperDuperKnowWhatYouAreDoing) [0x0008c] in <a8c2c1328bad490294d0ffd699bcab0a>:0
  at Arcen.AIW2.Core.GameEntity_Squad.DeserializedIntoSelf (System.Int32 primaryKeyID, Arcen.AIW2.Core.GameEntityTypeData typeData, Arcen.AIW2.Core.Planet Planet, Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean HideErrors, System.Boolean IsLoadingTemplate, System.Boolean IsForNetworkSync) [0x00a05] in <a8c2c1328bad490294d0ffd699bcab0a>:0
3/7/2021 10:04:06 PM 2.752 SINGLEP The savegame you are trying to load had the following fatal error: GameEntity_Squad deserialization error at stage 11000 from serialized version 2.752 loading into new version 2.752, error: System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Arcen.AIW2.Core.GameEntity_Squad.SetCurrentMarkLevel (System.Byte newValue, Arcen.AIW2.Core.ArcenSimContext Context_OrPassNullIfYouSuperDuperKnowWhatYouAreDoing) [0x0008c] in <a8c2c1328bad490294d0ffd699bcab0a>:0
  at Arcen.AIW2.Core.GameEntity_Squad.DeserializedIntoSelf (System.Int32 primaryKeyID, Arcen.AIW2.Core.GameEntityTypeData typeData, Arcen.AIW2.Core.Planet Planet, Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean HideErrors, System.Boolean IsLoadingTemplate, System.Boolean IsForNetworkSync) [0x00a05] in <a8c2c1328bad490294d0ffd699bcab0a>:0

TagsNo tags attached.

Activities

Sigma7

Mar 7, 2021 10:35 pm

reporter  

backdoor.zip (367,559 bytes)

Chris_McElligottPark

Mar 9, 2021 2:17 pm

administrator   ~0060706

Thanks!

* Fixed a variety of potential cross-threading bugs in EntityOrderCollection, including one that had popped up in particular in ClearOrders. The one in ClearOrders should not only be fixed, but if something else happens where it does recur, it should no longer corrupt savegames, and it should also give us more information about where exactly the error was.

Issue History

Date Modified Username Field Change
Mar 7, 2021 10:35 pm Sigma7 New Issue
Mar 7, 2021 10:35 pm Sigma7 File Added: backdoor.zip
Mar 9, 2021 2:17 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Mar 9, 2021 2:17 pm Chris_McElligottPark Status new => resolved
Mar 9, 2021 2:17 pm Chris_McElligottPark Resolution open => fixed
Mar 9, 2021 2:17 pm Chris_McElligottPark Fixed in Version => Beta 2.754 Buffs And Bugfixes
Mar 9, 2021 2:17 pm Chris_McElligottPark Note Added: 0060706