View Issue Details

IDProjectCategoryLast Update
0025703AI War 2Crash/ExceptionNov 5, 2021 7:22 pm
ReporterDaniexpert Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 3.740 Code Panopticon 
Fixed in VersionBeta 3.746 Phantom Ship Syndrome 
Summary0025703: Thread error 'executionContext'
DescriptionTitle + attachment
TagsNo tags attached.

Activities

Daniexpert

Oct 28, 2021 2:36 pm

manager  

ThreadError.txt (3,883 bytes)   
10/28/2021 8:23:28 PM	3.740	SINGLEP	DELAYED16: Error in thread for execution context 'executionContext'
IndexOutOfRangeException
Index was outside the bounds of the array.
===STACK FRAMES (with file info)===
FILE	METHOD	IL_OFFSET	NATIVE_OFFSET	LINE_NUMBER	COLUMN_NUMBER
	ReinitializeWithSeed	51	186	0	0
	DoCombatStepForPlanet	93	441	0	0
	<DoCombatPerStepLogic>b__0	1	42	0	0
	DoForPlanetsSingleThread	59	172	0	0
	DoForPlanetsSingleThread	22	106	0	0
	DoCombatPerStepLogic	38	370	0	0
	DoWorldStepLogic_ClientOrHost_FromSimBGThread	218	618	0	0
	Execute	230	650	0	0
===RAW STACK TRACE===
  at Arcen.Universal.MersenneTwister.ReinitializeWithSeed (System.Int64 seed) [0x00033] in <0a642f86c00940f8ba60aef3f7ca1398>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoCombatStepForPlanet (Arcen.AIW2.Core.Planet planet, Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x0005d] in <90272d8deed847b19e198fb55162beef>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo+<>c__DisplayClass63_0.<DoCombatPerStepLogic>b__0 (Arcen.AIW2.Core.Planet planet) [0x00001] in <90272d8deed847b19e198fb55162beef>:0 
  at Arcen.AIW2.Core.Galaxy.DoForPlanetsSingleThread (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x0003b] in <d8af5e669509443bb6a72326711f783d>:0 
  at Arcen.AIW2.Core.World_AIW2.DoForPlanetsSingleThread (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00016] in <d8af5e669509443bb6a72326711f783d>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoCombatPerStepLogic (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00026] in <90272d8deed847b19e198fb55162beef>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoWorldStepLogic_ClientOrHost_FromSimBGThread (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x000da] in <90272d8deed847b19e198fb55162beef>:0 
  at Arcen.AIW2.External.SimExecution.Execute () [0x000e6] in <90272d8deed847b19e198fb55162beef>:0 
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <0a642f86c00940f8ba60aef3f7ca1398>:0 
  at Arcen.Universal.ArcenDebugging.LogException (System.Exception e, System.String message, Arcen.Universal.Verbosity verbosity) [0x00000] in <0a642f86c00940f8ba60aef3f7ca1398>:0 
  at Arcen.AIW2.External.SimExecution.Execute () [0x00000] in <90272d8deed847b19e198fb55162beef>:0 
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext.InnerRun () [0x00000] in <90272d8deed847b19e198fb55162beef>:0 
  at Arcen.AIW2.External.ArcenExecutionContext.InnerRun () [0x00000] in <90272d8deed847b19e198fb55162beef>:0 
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <90272d8deed847b19e198fb55162beef>: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 
ThreadError.txt (3,883 bytes)   

Chris_McElligottPark

Nov 5, 2021 7:22 pm

administrator   ~0063224

Thank you!

* Put in protection against a really rare and strange bug inside MersenneTwister (our random number generator algorithm, by Takuji Nishimura, ported to C# by Akihilo Kramot). This thing has been a gold standard in prng since 1997, but apparently I've found some multithreading edge case that can cause issues with it. That's fixed.

Issue History

Date Modified Username Field Change
Oct 28, 2021 2:36 pm Daniexpert New Issue
Oct 28, 2021 2:36 pm Daniexpert File Added: ThreadError.txt
Nov 5, 2021 7:22 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Nov 5, 2021 7:22 pm Chris_McElligottPark Status new => resolved
Nov 5, 2021 7:22 pm Chris_McElligottPark Resolution open => fixed
Nov 5, 2021 7:22 pm Chris_McElligottPark Fixed in Version => Beta 3.746 Phantom Ship Syndrome
Nov 5, 2021 7:22 pm Chris_McElligottPark Note Added: 0063224