View Issue Details

IDProjectCategoryLast Update
0026170AI War 2Bug - OtherJan 26, 2022 9:12 am
ReporterRocketAssistedPuffin Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 3.785 Just Bugfixes 
Fixed in VersionBeta 3.787 Yet More Performance 
Summary0026170: Exception in NonClosure_PerGravitySource at stage 6100:System.NullReferenceException: Object reference not set to an instance of
DescriptionOn most up to date SVN build. CF GravityPlanning file is updated to match the normal one.

3.786 SINGLEP DELAYED8674 TID33 Exception in NonClosure_PerGravitySource at stage 6100:System.NullReferenceException: Object reference not set to an instance of an object
  at CFMod.ClassicFusionGravityPlanning.NonClosure_PerGravitySource (Arcen.AIW2.Core.GameEntity_Squad entity) [0x00130] in <76a96ce68e4c4f8eb6d500f535fe1c83>:0
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <4f7ccfbe5f0548c39ce18580e6d66bf9>:0
  at CFMod.ClassicFusionGravityPlanning.NonClosure_PerGravitySource (Arcen.AIW2.Core.GameEntity_Squad entity) [0x00000] in <76a96ce68e4c4f8eb6d500f535fe1c83>:0
  at CFMod.ClassicFusionGravityPlanning.UnrolledDoFor_PerGravitySource (Arcen.AIW2.Core.PlanetFaction faction) [0x00000] in <76a96ce68e4c4f8eb6d500f535fe1c83>:0
  at CFMod.ClassicFusionGravityPlanning.<Execute>b__8_0 (Arcen.AIW2.Core.Planet planet) [0x00000] in <76a96ce68e4c4f8eb6d500f535fe1c83>:0
  at Arcen.AIW2.Core.Galaxy.DoForPlanetsSingleThread (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00000] in <d5b3ca66307b4021b8dd87c268bc6e47>:0
  at Arcen.AIW2.Core.World_AIW2.DoForPlanetsSingleThread (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00000] in <d5b3ca66307b4021b8dd87c268bc6e47>:0
  at CFMod.ClassicFusionGravityPlanning.Execute () [0x00000] in <76a96ce68e4c4f8eb6d500f535fe1c83>:0
  at Arcen.AIW2.External.ArcenShortTermPlanningManager.RunAnExecutionPair_AsABackgroundTask (Arcen.AIW2.External.ArcenShortTermPlanningContext context, System.Boolean shortTermPlanningDebugLog) [0x00000] in <60360373b4d54c269e1bfeaa53d43e45>:0
  at Arcen.AIW2.External.ArcenShortTermPlanningManager+<>c__DisplayClass13_1.<RunAllContextsOnBackgroundThreadsFromMainSimThread>b__0 () [0x00000] in <60360373b4d54c269e1bfeaa53d43e45>:0
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.Execute () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
TagsNo tags attached.

Activities

Chris_McElligottPark

Jan 25, 2022 7:26 pm

administrator   ~0063888

This one is in your custom copy of the gravity logic. See the change that I checked in today to the main game version, and it should also work for yours. There are a couple of changes of that sort, actually.

RocketAssistedPuffin

Jan 26, 2022 7:30 am

reporter   ~0063893

Thing is, that is with the changes you did. There's only been one change in 20 days to the main game version, and I already brought it over.

RocketAssistedPuffin

Jan 26, 2022 7:39 am

reporter   ~0063894

This image is the only change I've done to it after you created the file.

I ran a diff of it and the main game version, and the changes you speak of are in there.

So...guess I missed something else, somehow. Sorry for reporting a non-thing then.
GravityPlanning.png (88,076 bytes)   
GravityPlanning.png (88,076 bytes)   

Chris_McElligottPark

Jan 26, 2022 9:12 am

administrator   ~0063895

That makes sense! Sorry about that.

* Fixed a pair of nullref exceptions that could happen in gravity planning.

Issue History

Date Modified Username Field Change
Jan 25, 2022 6:47 pm RocketAssistedPuffin New Issue
Jan 25, 2022 7:26 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Jan 25, 2022 7:26 pm Chris_McElligottPark Status new => closed
Jan 25, 2022 7:26 pm Chris_McElligottPark Resolution open => no change required
Jan 25, 2022 7:26 pm Chris_McElligottPark Note Added: 0063888
Jan 26, 2022 7:30 am RocketAssistedPuffin Note Added: 0063893
Jan 26, 2022 7:39 am RocketAssistedPuffin Note Added: 0063894
Jan 26, 2022 7:39 am RocketAssistedPuffin File Added: GravityPlanning.png
Jan 26, 2022 9:12 am Chris_McElligottPark Status closed => resolved
Jan 26, 2022 9:12 am Chris_McElligottPark Resolution no change required => fixed
Jan 26, 2022 9:12 am Chris_McElligottPark Fixed in Version => Beta 3.787 Yet More Performance
Jan 26, 2022 9:12 am Chris_McElligottPark Note Added: 0063895