View Issue Details

IDProjectCategoryLast Update
0020379AI War 2Crash/ExceptionSep 30, 2018 12:35 am
ReporterColonelBlimp Assigned ToChris_McElligottPark  
Severitytrivial 
Status resolvedResolutionfixed 
Product Version0.775 Unit Stacking 
Fixed in Version0.776 A Legible Galaxy Map 
Summary0020379: Exception Thrown
Description9/27/2018 6:07:36 AM LongTermContinuousError: System.Exception: Error: tried to start thread 'targetListLongRangeContext' but it appears to not have responded to the last start request
  at Arcen.AIW2.External.ArcenThread.Start (System.Boolean FailSilentlyIfNotFinishedYet) [0x00032] in <6945e9a7ac6749a4ba5b31995e0c8fc1>:0
  at Arcen.AIW2.External.ArcenThreadManager.StartThread (System.String ThreadName, System.Int32 SecondsToLive, System.Boolean DieOnWorldClear, System.Threading.ThreadStart MethodToRun, System.Action MethodToCallIfThreadAborted, System.Boolean FailSilentlyIfNotFinishedYet) [0x0000f] in <6945e9a7ac6749a4ba5b31995e0c8fc1>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.RunOnBackgroundThread (System.Boolean FailSilentlyIfNotFinishedYet) [0x0003a] in <6945e9a7ac6749a4ba5b31995e0c8fc1>:0
  at Arcen.AIW2.External.ArcenLongTermContinuousPlanningContext.Helper_CheckForRunningNonFactionThread (Arcen.AIW2.External.ArcenLongTermContinuousPlanningContext context) [0x00017] in <6945e9a7ac6749a4ba5b31995e0c8fc1>:0
  at Arcen.AIW2.External.ArcenLongTermContinuousPlanningContext.DoLongTermPlanning () [0x00042] in <6945e9a7ac6749a4ba5b31995e0c8fc1>:0
TagsNo tags attached.

Activities

BadgerBadger

Sep 28, 2018 12:11 am

manager   ~0049579

Can you upload the full ArcenDebugLog.txt?

ColonelBlimp

Sep 28, 2018 11:19 am

reporter   ~0049582

Please find attached :-)
ArcenDebugLog.txt (542,137 bytes)

BadgerBadger

Sep 28, 2018 11:22 am

manager   ~0049583

The text ColonelBlimp posted in the defect body is the only relevant text. Note that the game does not actually seem to have started.

From the text:
GameEntityTypeDataTable.InitVisualBits (13.3s)
SurrogateTableTable (1.1s)
9/27/2018 6:06:45 AM
Couldn't init Steam - is Steam running? Do you own AI War 2 2? Is steam_appid.txt in your project folder?

  at System.Environment.get_StackTrace () [0x00000] in <f826c2584fc94ec19a48a6576640bdc5>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <0227ff9a39a2428c8255adeec8e40bcf>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <0227ff9a39a2428c8255adeec8e40bcf>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <0227ff9a39a2428c8255adeec8e40bcf>:0
  at ArcenGameController.Update () [0x00000] in <842479ce6add45908b4aec5159717064>:0

9/27/2018 6:06:53 AM Successfully opened host socket
9/27/2018 6:07:36 AM LongTermContinuousError: System.Exception: Error: tried to start thread 'targetListLongRangeContext' but it appears to not have responded to the last start request
  at Arcen.AIW2.External.ArcenThread.Start (System.Boolean FailSilentlyIfNotFinishedYet) [0x00032] in <6945e9a7ac6749a4ba5b31995e0c8fc1>:0

Chris_McElligottPark

Sep 28, 2018 12:16 pm

administrator   ~0049588

Thanks!

* Commented out an exception that was probably harmless ("Error: tried to start thread [threadname] but it appears to not have responded to the last start request"), but that could come up in some rare cases.
** Basically this is probably a timing issue that isn't really an issue; the exception was originally there to detect threads that didn't start for whatever reason, but based on the occasional latency in starting a thread that can naturally happen, this was likely getting triggered spuriously. Basically it should just fail silently, then check again a few milliseconds later and everything will be fine.
** Put another way, this logic was put in originally to catch threads that fail to start at all for whatever reason. That has never happened, though. What actually happens is that sometimes threads are a little slow to start, on a millisecond scale, and this would get tripped by that case instead. So our threading manager needs to basically just be quiet and trust that the OS will spin up the thread quite soon. ;)

ColonelBlimp

Sep 30, 2018 12:35 am

reporter   ~0049632

The exception is thrown quite some period into game play, but did not 'seem' to effect anything.

Issue History

Date Modified Username Field Change
Sep 28, 2018 12:08 am ColonelBlimp New Issue
Sep 28, 2018 12:11 am BadgerBadger Note Added: 0049579
Sep 28, 2018 12:11 am BadgerBadger Assigned To => Chris_McElligottPark
Sep 28, 2018 12:11 am BadgerBadger Status new => assigned
Sep 28, 2018 11:19 am ColonelBlimp File Added: ArcenDebugLog.txt
Sep 28, 2018 11:19 am ColonelBlimp Note Added: 0049582
Sep 28, 2018 11:22 am BadgerBadger Note Added: 0049583
Sep 28, 2018 12:16 pm Chris_McElligottPark Status assigned => resolved
Sep 28, 2018 12:16 pm Chris_McElligottPark Resolution open => fixed
Sep 28, 2018 12:16 pm Chris_McElligottPark Fixed in Version => 0.776 A Legible Galaxy Map
Sep 28, 2018 12:16 pm Chris_McElligottPark Note Added: 0049588
Sep 30, 2018 12:35 am ColonelBlimp Note Added: 0049632