View Issue Details

IDProjectCategoryLast Update
0021372AI War 2Crash/ExceptionJul 10, 2019 10:29 am
ReporterAnnoyingOrange Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.874 Basic Fleet Management 
Fixed in Version0.875 Counterattacks You Can Taste 
Summary0021372: Null reference exception in decollision planning
DescriptionFrom the log:
----------------------------------------------------------------
7/10/2019 2:22:19 PM
Exception in DecollisionPlanning.Inner_CheckForCollisionOrMakeEntityMove. debug num 10. error:
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.DecollisionPlanning.Inner_CheckForCollisionOrMakeEntityMove (Arcen.AIW2.Core.GameEntity_Squad otherEntity) [0x00032] in <1ec9ee1a1e38422e8e573d4d480c54e1>:0

  at System.Environment.get_StackTrace () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <f9c194a9ba4d43bf98f4d25b0881e946>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <f9c194a9ba4d43bf98f4d25b0881e946>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <f9c194a9ba4d43bf98f4d25b0881e946>:0
  at Arcen.AIW2.External.DecollisionPlanning.Inner_CheckForCollisionOrMakeEntityMove (Arcen.AIW2.Core.GameEntity_Squad otherEntity) [0x00000] in <1ec9ee1a1e38422e8e573d4d480c54e1>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00000] in <71fbf255a76b43d58867b50b3e96388d>:0
  at Arcen.AIW2.Core.Planet.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00000] in <71fbf255a76b43d58867b50b3e96388d>:0
  at Arcen.AIW2.External.DecollisionPlanning.CalculateDoIHaveACollisionAtCurrentLocationWithShipsHeadingToTargetLocation (Arcen.AIW2.Core.GameEntity_Squad entity, Arcen.Universal.ArcenPoint worldLocationToCheck, System.Int32 collisionRadius, Arcen.Universal.ArcenPoint targetLocationMustMatch, System.Int32 targetDistanceMustBeAtMost) [0x00000] in <1ec9ee1a1e38422e8e573d4d480c54e1>:0
  at Arcen.AIW2.External.DecollisionPlanning.DoEntityFramePlanningLogic_CollisionBasedOnEndLocation (Arcen.AIW2.Core.GameEntity_Squad entity) [0x00000] in <1ec9ee1a1e38422e8e573d4d480c54e1>:0
  at Arcen.AIW2.External.DecollisionPlanning.DoEntityFramePlanningLogic_Collision (Arcen.AIW2.Core.GameEntity_Squad entity) [0x00000] in <1ec9ee1a1e38422e8e573d4d480c54e1>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00000] in <71fbf255a76b43d58867b50b3e96388d>:0
  at Arcen.AIW2.Core.Planet.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00000] in <71fbf255a76b43d58867b50b3e96388d>:0
  at Arcen.AIW2.External.DecollisionPlanning.Execute () [0x00000] in <1ec9ee1a1e38422e8e573d4d480c54e1>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.InnerRun () [0x00000] in <1ec9ee1a1e38422e8e573d4d480c54e1>:0
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <1ec9ee1a1e38422e8e573d4d480c54e1>:0
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
----------------------------------------------------------------

Error does not appear to impace the game significantly.
TagsNo tags attached.

Activities

Chris_McElligottPark

Jul 10, 2019 10:29 am

administrator   ~0052145

Thanks!

* Fix for a nullref exception in Inner_CheckForCollisionOrMakeEntityMove that probably was just happening when checking against a ship that is being disassembled.
** This shouldn't actually have been causing any problems in the gameplay, other than the annoying popup, but the popup is probably now fixed. In general if entities were being torn down on one thread (after dying), then there was a rare chance of them having this issue in the decollision checking, but now it just accepts the incongruity and moves on.

Issue History

Date Modified Username Field Change
Jul 10, 2019 8:26 am AnnoyingOrange New Issue
Jul 10, 2019 10:29 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Jul 10, 2019 10:29 am Chris_McElligottPark Status new => resolved
Jul 10, 2019 10:29 am Chris_McElligottPark Resolution open => fixed
Jul 10, 2019 10:29 am Chris_McElligottPark Fixed in Version => 0.875 Counterattacks You Can Taste
Jul 10, 2019 10:29 am Chris_McElligottPark Note Added: 0052145