View Issue Details

IDProjectCategoryLast Update
0025788AI War 2Crash/ExceptionNov 8, 2021 4:31 pm
Reportercml Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 3.746 Phantom Ship Syndrome 
Fixed in VersionBeta 3.750 Smooth Simulator 
Summary0025788: Receiving errors not long after the game starts
DescriptionA few seconds after starting a new game, I am receiving the following error:
DELAYED38: Error occurred in c-o-h sim planning context perSecondNonSimPlan_LT_Cont

This is on a clean install with no mods enabled, and happens with multiple AI types.
TagsNo tags attached.

Activities

cml

Nov 6, 2021 7:07 am

reporter  

ArcenDebugLog.txt (5,813 bytes)   
11/6/2021 11:01:21 AM	3.746	SINGLEP	Start load save: D:/Games/Steam/steamapps/common/AI War 2/PlayerData/Save/_Internal/LastLobbySettings.save Source1: StartingTheLobbyFromPrior Source3: LoadingLastLobbySettings
11/6/2021 11:01:21 AM	3.746	SINGLEP	loading as template
11/6/2021 11:01:21 AM	3.746	SINGLEP	Fix Missing Faction: Added the faction AIReserves because every game should have exactly one of these.
11/6/2021 11:01:21 AM	3.746	SINGLEP	Fix Missing Faction: Added the faction AntiAIZombie because every game should have exactly one of these.
11/6/2021 11:01:21 AM	3.746	SINGLEP	Fix Missing Faction: Added the faction AntiEveryoneZombie because every game should have exactly one of these.
11/6/2021 11:01:21 AM	3.746	SINGLEP	Fix Missing Faction: Added the faction AntiPlayerZombie because every game should have exactly one of these.
11/6/2021 11:01:21 AM	3.746	SINGLEP	Fix Missing Faction: Added the faction Instigators because every game should have exactly one of these.
11/6/2021 11:01:21 AM	3.746	SINGLEP	Fix Missing Faction: Added the faction NaturalObject because every game should have exactly one of these.
11/6/2021 11:01:21 AM	3.746	SINGLEP	Fix Missing Faction: Added the faction Outguard because every game should have exactly one of these.
11/6/2021 11:01:21 AM	3.746	SINGLEP	Fix Missing Faction: Added the faction WormholeInvasion because every game should have exactly one of these.
11/6/2021 11:01:21 AM	3.746	SINGLEP	Finish load save in 80.4ms
11/6/2021 11:01:21 AM	3.746	SINGLEP	Start Generate Partial Map with Classic and seed 765934028 and planet count 80 and 10 factions (StartingTheLobbyFromPrior LoadingLastLobbySettings)
11/6/2021 11:01:22 AM	3.746	SINGLEP	PlayerAccount cml has now been put in control of faction 1 - Human Remnant.
11/6/2021 11:01:22 AM	3.746	SINGLEP	Generate Partial Map Complete  257ms Seed: 765934028
11/6/2021 11:01:36 AM	3.746	SINGLEP	Start Generate FULL Map with Classic and seed 765934028 and planet count 80 and 16 factions (StartingMainGameAfterLobby NotLoadingAnything)
11/6/2021 11:01:37 AM	3.746	SINGLEP	Calculated Initial Strengths For New Full Galaxy Map in 9ms
11/6/2021 11:01:37 AM	3.746	SINGLEP	Generate FULL Map Complete  528ms Seed: 765934028
11/6/2021 11:01:37 AM	3.746	SINGLEP	DELAYED37: Fixed incorrect count of ships to be granted.  Was 4, now 10 Corruption Minefield from Other Defensive Schematic Server
11/6/2021 11:01:40 AM	3.746	SINGLEP	DELAYED38: Error occurred in c-o-h sim planning context perSecondNonSimPlan_LT_Cont
InvalidOperationException
Failed to compare two elements in an array.
===STACK FRAMES (with file info)===
FILE	METHOD	IL_OFFSET	NATIVE_OFFSET	LINE_NUMBER	COLUMN_NUMBER
	Sort	42	322	0	0
	Sort	211	738	0	0
	Sort	56	290	0	0
	SwapObjectivesFromBuildingToDisplay	64	482	0	0
	RegenerateAllObjectives_ClientOrHost	205	546	0	0
	DoCentralLoop_ClientAndHost	179	1058	0	0
	Execute	24	122	0	0
	InnerRun	69	178	0	0
===RAW STACK TRACE===
  at Arcen.Universal.Collections.GenericArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, Arcen.Universal.Collections.IComparer`1[T] comparer) [0x0002a] in <fe9392eecbc842ffa78fdafff13118c1>:0 
  at Arcen.Universal.Collections.ArraySort`1[T].Sort (T[] array, System.Int32 index, System.Int32 length, Arcen.Universal.Collections.IComparer`1[T] comparer) [0x000d3] in <fe9392eecbc842ffa78fdafff13118c1>:0 
  at Arcen.Universal.List`1[T].Sort (System.Comparison`1[T] comparison) [0x00038] in <fe9392eecbc842ffa78fdafff13118c1>:0 
  at Arcen.AIW2.Core.ObjectiveCategory.SwapObjectivesFromBuildingToDisplay () [0x00040] in <ce4249eb374f4381b8b635dd7051de4b>:0 
  at Arcen.AIW2.Core.ObjectiveGeneratorTable.RegenerateAllObjectives_ClientOrHost (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x000cd] in <ce4249eb374f4381b8b635dd7051de4b>:0 
  at Arcen.AIW2.External.PerSecondNonSimPlanning.DoCentralLoop_ClientAndHost () [0x000b3] in <1d02151d521d48758bd63a7914b5383f>:0 
  at Arcen.AIW2.External.PerSecondNonSimPlanning.Execute () [0x00018] in <1d02151d521d48758bd63a7914b5383f>:0 
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext.InnerRun () [0x00045] in <1d02151d521d48758bd63a7914b5383f>:0 
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <fe9392eecbc842ffa78fdafff13118c1>:0 
  at Arcen.Universal.ArcenDebugging.LogException (System.Exception e, System.String message, Arcen.Universal.Verbosity verbosity) [0x00000] in <fe9392eecbc842ffa78fdafff13118c1>:0 
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext.InnerRun () [0x00000] in <1d02151d521d48758bd63a7914b5383f>:0 
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <1d02151d521d48758bd63a7914b5383f>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [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.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 

ArcenDebugLog.txt (5,813 bytes)   

Chris_McElligottPark

Nov 8, 2021 4:27 pm

administrator   ~0063253

First one:

* Ugh! There's an error "Error occurred in c-o-h sim planning context", but I can't fix it just yet because I forgot to have it actually include any details about the error it experienced. Sigh. So the new version reports those details. I should then be able to fix it next build, if it's not accidentally fixed by the other fixes in this new build.

Chris_McElligottPark

Nov 8, 2021 4:31 pm

administrator   ~0063254

And the second part, thanks!

* Silenced an error that could happen in trying to sort objectives in "ObjectiveCategory.SwapObjectivesFromBuildingToDisplay."
** Almost certainly this was happening because of the bug that tom.prince fixed with this code being kicked off twice instead of once when the game was running twice, but it's good to make sure it's not interrupting game flow either way.

Issue History

Date Modified Username Field Change
Nov 6, 2021 7:07 am cml New Issue
Nov 6, 2021 7:07 am cml File Added: ArcenDebugLog.txt
Nov 8, 2021 4:27 pm Chris_McElligottPark Note Added: 0063253
Nov 8, 2021 4:31 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Nov 8, 2021 4:31 pm Chris_McElligottPark Status new => resolved
Nov 8, 2021 4:31 pm Chris_McElligottPark Resolution open => fixed
Nov 8, 2021 4:31 pm Chris_McElligottPark Fixed in Version => Beta 3.750 Smooth Simulator
Nov 8, 2021 4:31 pm Chris_McElligottPark Note Added: 0063254