View Issue Details

IDProjectCategoryLast Update
0019234AI War 2Crash/ExceptionNov 2, 2017 3:44 pm
ReporterBadgerBadger Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version0.521 
Fixed in Version0.601 
Summary0019234: Starting work thread that's already running
DescriptionEvery so often (say 1 out of 5 or 10 tries) when I click "Start New Game" from the Main Menu I see an error like the following in the ArcenDebugLog.txt

9/21/2017 1:33:18 PM
Warning! Tried to start work thread when it was already running

   at System.Environment.get_StackTrace() in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Environment.cs:line 227
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:line 140
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:line 109
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:line 88
   at Arcen.AIW2.Core.Engine_AIW2.StartWorkThread(System.Threading.ThreadStart methodToRun) in C:\vcprojs\arcengames_aiw_ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:line 660
   at Arcen.AIW2.Core.World_AIW2.GenerateMap(Boolean IsRegeneration) in C:\vcprojs\arcengames_aiw_ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:line 892
   at Arcen.AIW2.Core.Engine_AIW2.InnerDoStartNewWorldOKLogic() in C:\vcprojs\arcengames_aiw_ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:line 743
   at Arcen.AIW2.External.Input_MainHandler.HandleInner(Int32 Int1, System.String InputActionInternalName)
   at Arcen.AIW2.External.Window_MainMenu+bStartGame.HandleClick()
   at Arcen.Universal.ArcenUI_Button.OnClick(UnityEngine.EventSystems.PointerEventData eventData) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Button.cs:line 141
   at Arcen.Universal.ArcenUI_Button.OnPointerClick(UnityEngine.EventSystems.PointerEventData eventData) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Button.cs:line 150
   at UnityEngine.EventSystems.ExecuteEvents.Execute(IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:line 50
   at UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:line 261
   at UnityEngine.EventSystems.StandaloneInputModule.ProcessMousePress(UnityEngine.EventSystems.MouseButtonEventData data) in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:line 554
   at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent(Int32 id) in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:line 453
   at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent() in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:line 433
   at UnityEngine.EventSystems.StandaloneInputModule.Process() in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:line 212
   at UnityEngine.EventSystems.EventSystem.Update() in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\EventSystem.cs:line 285

Once I see this message I have to kill and restart the program.
TagsNo tags attached.

Relationships

related to 0019262 resolvedkeith.lamothe Hitting "Generate" sometimes makes UI tiny 

Activities

BadgerBadger

Oct 16, 2017 7:37 pm

manager   ~0046515

This seems to be happening more often now. Also it has a common side effect. The below crash in the External Visualization code repeats in a loop as soon as the first error is hit.

10/16/2017 7:35:53 PM World Created, Launching Server
10/16/2017 7:35:53 PM
Warning! Tried to start work thread when it was already running

   at System.Environment.get_StackTrace() in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Environment.cs:line 227
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibrarie\
s\ArcenDebugging.cs:line 140
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:line 10\
9
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:line 88
   at Arcen.AIW2.Core.Engine_AIW2.StartWorkThread(System.Threading.ThreadStart methodToRun) in C:\vcprojs\arcengames_aiw_ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:line 666
   at Arcen.AIW2.Core.World_AIW2.GenerateMap(Boolean IsRegeneration) in C:\vcprojs\arcengames_aiw_ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:line 902
   at Arcen.AIW2.Core.Engine_AIW2.InnerDoStartNewWorldOKLogic() in C:\vcprojs\arcengames_aiw_ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:line 749
   at Arcen.AIW2.External.Input_MainHandler.HandleInner(Int32 Int1, System.String InputActionInternalName)
   at Arcen.AIW2.External.Window_MainMenu+bStartGame.HandleClick()
   at Arcen.Universal.ArcenUI_Button.OnClick(UnityEngine.EventSystems.PointerEventData eventData) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Button.cs:line 141
   at Arcen.Universal.ArcenUI_Button.OnPointerClick(UnityEngine.EventSystems.PointerEventData eventData) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Button.cs:line 150
   at UnityEngine.EventSystems.ExecuteEvents.Execute(IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.\
cs:line 50
   at UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) in C:\buildslave\unity\build\Extensions\\
guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:line 261
   at UnityEngine.EventSystems.StandaloneInputModule.ProcessMousePress(UnityEngine.EventSystems.MouseButtonEventData data) in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneI\
nputModule.cs:line 554
   at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent(Int32 id) in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:line 453
   at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent() in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:line 433
   at UnityEngine.EventSystems.StandaloneInputModule.Process() in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:line 212
   at UnityEngine.EventSystems.EventSystem.Update() in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\EventSystem.cs:line 285

10/16/2017 7:35:53 PM World Created, Launching Server
10/16/2017 7:35:53 PM Successfully opened host socket
10/16/2017 7:35:53 PM
-----------^M
NullReferenceException: Object reference not set to an instance of an object^M
Stack Trace: Arcen.AIW2.ExternalVisualization.BaseGalaxyMapDisplayMode.GetTextAndColorForLowDownText (Arcen.AIW2.Core.Planet planet, System.String& text, UnityEngine.Color& color)
Arcen.AIW2.Core.Planet.UpdateVisualObj (Boolean IsCurrentPlanet) (at C:/vcprojs/arcengames_aiw_ultra/ArcenAIW2Core/src/Logic/GameState/Mapping/Planet.cs:655)
Arcen.AIW2.Core.Galaxy.UpdateVisuals () (at C:/vcprojs/arcengames_aiw_ultra/ArcenAIW2Core/src/Logic/GameState/Mapping/Galaxy.cs:190)
PresentationLayer_AIW2.UpdateGameController () (at C:/vcprojs/arcengames_aiw_ultra/ArcenAIW2Visualization/src/PresentationLayer_AIW2.cs:731)
Arcen.AIW2.Core.Engine_AIW2.OnUpdate () (at C:/vcprojs/arcengames_aiw_ultra/ArcenAIW2Core/src/Logic/Engine_AIW2.cs:252)
Arcen.Universal.Engine_Universal.OnUpdate () (at C:/vcprojs/arcengames_aiw_ultra/ArcenUniversal/src/Engine_Universal.cs:892)
ArcenGameController.Update () (at C:/vcprojs/arcengames_aiw_ultra/AIW2Unity/Assets/ArcenCode/ArcenGameController.cs:39)
^M


   at System.Environment.get_StackTrace() in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Environment.cs:line 227
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibrarie\
s\ArcenDebugging.cs:line 140
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:line 10\
9
   at Arcen.Universal.ArcenDebugging.ArcenDebugLog(System.String Message, Verbosity Verbosity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:line 88
   at Arcen.Universal.Engine_Universal.LogWritten(System.String LogString, System.String StackTrace, LogType Type, System.Exception Cause, Boolean CameFromUnity) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\Engine_U\
niversal.cs:line 660
   at Arcen.Universal.Engine_Universal.LogWrittenFromUnity(System.String LogString, System.String StackTrace, LogType Type) in C:\vcprojs\arcengames_aiw_ultra\ArcenUniversal\src\Engine_Universal.cs:line 613
   at UnityEngine.Application.CallLogCallback(System.String logString, System.String stackTrace, LogType type, Boolean invokedOnMainThread)

BadgerBadger

Oct 24, 2017 9:58 am

manager   ~0046526

I have only observed this issue on linux, not on OSX

keith.lamothe

Nov 2, 2017 3:44 pm

administrator   ~0046563

For 0.601:

* Fixed some race conditions that could cause an error when clicking the start-new-game button on the main menu multiple times in a short period of time (often the multiple press was unintentional).

Thanks :)

Issue History

Date Modified Username Field Change
Sep 21, 2017 1:36 pm BadgerBadger New Issue
Oct 16, 2017 7:37 pm BadgerBadger Note Added: 0046515
Oct 24, 2017 9:58 am BadgerBadger Note Added: 0046526
Nov 2, 2017 9:19 am Chris_McElligottPark Relationship added related to 0019262
Nov 2, 2017 9:20 am Chris_McElligottPark Assigned To => keith.lamothe
Nov 2, 2017 9:20 am Chris_McElligottPark Status new => assigned
Nov 2, 2017 3:44 pm keith.lamothe Status assigned => resolved
Nov 2, 2017 3:44 pm keith.lamothe Resolution open => fixed
Nov 2, 2017 3:44 pm keith.lamothe Fixed in Version => 0.601
Nov 2, 2017 3:44 pm keith.lamothe Note Added: 0046563