View Issue Details

IDProjectCategoryLast Update
0024853AI War 2Crash/ExceptionMay 10, 2021 9:04 pm
ReporterGreatYng Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.902 Rather Refined Ghosts 
Fixed in Version2.903 Journals For Miles 
Summary0024853: Fatal faction error in Sentinels(Index 2); faction shut down
DescriptionSo that happened. Seems to be working fine on restart. Might have coincided with an autosave (that I accidentally removed). Attached a manual save from a second later.
Reloading an earlier save did not reproduce the issue.

DebugLog:
5/9/2021 7:07:05 PM 2.902 SINGLEP Hit exception in AnalyzeFriendlyToHostileBalance debugCode 200 System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.SpecialFaction_AI.AnalyzeFriendlyToHostileBalance (System.Boolean tracing, Arcen.Universal.ArcenCharacterBuffer tracingBuffer, Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.Planet targetPlanet, System.Int32& currentLevel, System.Int32& threshold) [0x00024] in <ed3cc0412c854ae5a7520acf1cdc2a4b>:0
5/9/2021 7:07:05 PM 2.902 SINGLEP Unknown Exception in DoLongRangePlanning_OnBackgroundNonSimThread for faction AI Sentinels(Index 2), so will not run any more of those until a reload of the save. Check error log to see prior recorded exception.
TagsNo tags attached.

Activities

GreatYng

May 9, 2021 1:34 pm

reporter  

BadgerBadger

May 9, 2021 2:33 pm

manager   ~0061458

I've added more defensive code

Chris_McElligottPark

May 10, 2021 9:04 pm

administrator   ~0061481

Thanks!

* Fixed several issues in AnalyzeFriendlyToHostileBalance() that could happen as cross-threading errors even in single player, causing the AI sentinels faction to shut down. This was quite rare.

(Badger, this also needed the local variable treatment.)

Issue History

Date Modified Username Field Change
May 9, 2021 1:34 pm GreatYng New Issue
May 9, 2021 1:34 pm GreatYng File Added: Error doLongRangePlanning.save
May 9, 2021 2:33 pm BadgerBadger Note Added: 0061458
May 10, 2021 9:04 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
May 10, 2021 9:04 pm Chris_McElligottPark Status new => resolved
May 10, 2021 9:04 pm Chris_McElligottPark Resolution open => fixed
May 10, 2021 9:04 pm Chris_McElligottPark Fixed in Version => 2.903 Journals For Miles
May 10, 2021 9:04 pm Chris_McElligottPark Note Added: 0061481