View Issue Details

IDProjectCategoryLast Update
0021537AI War 2Crash/ExceptionSep 3, 2019 7:37 pm
ReporterNRSirLimbo Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product Version0.884 The Helping Hat 
Fixed in Version0.886 Zombie Homebodies 
Summary0021537: Exception Popup
DescriptionHad another exception popup while playing. DebugLog appended.

Doesn't seem to have any gameplay influence.
TagsNo tags attached.

Relationships

related to 0021556 resolvedChris_McElligottPark ShortTermPlanningError 

Activities

NRSirLimbo

Aug 28, 2019 3:01 am

developer  

ArcenDebugLog.txt (1,653,583 bytes)

NRSirLimbo

Aug 28, 2019 7:29 am

developer   ~0052650

Got another popup
ArcenDebugLog-2.txt (1,674,449 bytes)

NRSirLimbo

Aug 28, 2019 7:31 am

developer   ~0052651

Aaand another. That was fast
ArcenDebugLog-3.txt (1,677,897 bytes)

BadgerBadger

Aug 28, 2019 9:30 am

manager   ~0052652

There are two errors i see.


8/28/2019 12:53:31 PM
ErrorsReportedByEngine: -----------
ArgumentException: An item with the same key has already been added. Key: 276633935
Stack Trace: System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
TMPro.MaterialReferenceManager.AddFontAssetInternal (TMPro.TMP_FontAsset fontAsset) (at <5ee3123a5dc94e13b1890207bc794592>:0)
TMPro.MaterialReferenceManager.AddFontAsset (TMPro.TMP_FontAsset fontAsset) (at <5ee3123a5dc94e13b1890207bc794592>:0)
TMPro.TMP_Text.ValidateHtmlTag (TMPro.TMP_Text+UnicodeChar[] chars, System.Int32 startIndex, System.Int32& endIndex) (at <5ee3123a5dc94e13b1890207bc794592>:0)
TMPro.TextMeshProUGUI.GenerateTextMesh () (at <5ee3123a5dc94e13b1890207bc794592>:0)
TMPro.TextMeshProUGUI.OnPreRenderCanvas () (at <5ee3123a5dc94e13b1890207bc794592>:0)
TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) (at <5ee3123a5dc94e13b1890207bc794592>:0)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at <9bb8f6e40006490da4518a3cf5afe42e>:0)
UnityEngine.Canvas:SendWillRenderCanvases()

and

8/28/2019 1:27:37 PM ShortTermPlanningError: System.Exception: Error: tried to start thread 'tachyonContext' but it appears to still be running
  at Arcen.AIW2.External.ArcenThread.Start (System.Boolean FailSilentlyIfNotFinishedYet) [0x0003e] in <2e630022da8042a2b5af6e9f8332fea5>: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 <2e630022da8042a2b5af6e9f8332fea5>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.RunOnBackgroundThread (System.Boolean FailSilentlyIfNotFinishedYet) [0x0003f] in <2e630022da8042a2b5af6e9f8332fea5>:0
  at Arcen.AIW2.External.ArcenShortTermPlanningContext.DoShortTermPlanning () [0x000c9] in <2e630022da8042a2b5af6e9f8332fea5>:0
8/28/2019 1:31:11 PM
Error in targeting logic System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.TargetListPlanning.PreFillFactionBasedData (Arcen.AIW2.Core.PlanetFaction PFaction) [0x00051] in <2e630022da8042a2b5af6e9f8332fea5>:0
  at Arcen.AIW2.External.TargetListPlanning.FindTopEntriesForSystem (Arcen.AIW2.Core.GameEntity_Squad AttackerEntity, Arcen.AIW2.Core.EntitySystem AttackerSystem, System.Int32 SystemIndex) [0x0000c] in <2e630022da8042a2b5af6e9f8332fea5>:0
  at Arcen.AIW2.External.TargetListPlanning.DoEntityFramePlanningLogic_TargetPrioritizing_SpecificSystem (Arcen.AIW2.Core.GameEntity_Squad AttackerEntity, Arcen.AIW2.Core.EntitySystem AttackerSystem, System.Int32 SystemIndex) [0x00009] in <2e630022da8042a2b5af6e9f8332fea5>:0

Chris_McElligottPark

Aug 28, 2019 10:55 am

administrator   ~0052656

The one with TMPro.MaterialReferenceManager is something that always happens on starting any game, and is invisible (no popup) as well as harmless.

The one with ShortTermPlanningError is a legitimate bug, because for some reason it apparently took more than 30 seconds to run that thread, or that thread didn't shut down properly when exiting. It's possible that there was an error on the tachyon planning thread that was not properly reported into the log.

Is there a savegame that can reproduce this? And if not, can you screenshot the error as if you see it again, just to be on the safe side? Something is a little fishy with the tachyon thread still being alive; that's a very lightweight thread in general, so I suspect an exception on it.

BadgerBadger

Aug 28, 2019 12:20 pm

manager   ~0052657

any chance we could suppress the TMPPro error? Or put a log message saying "The following error is harmless" in?

NRSirLimbo

Aug 28, 2019 12:32 pm

developer   ~0052658

I don't have a screenshot or encountered the bug again so far, but I do remember 100% that there was an error with "tachyon planning" in there. I'll try to load the game again in hopes of finding it again.

Chris_McElligottPark

Aug 29, 2019 9:08 pm

administrator   ~0052674

On the TMPPro error, I reported it to the devs of that. I can't elegantly catch that error and block it without forking their code yet more, and I'd rather not do that, so I'm avoiding that unless it becomes unavoidable. My hope was that they'd have a simple fix put in (I sent them the code a few months ago, it's one line), but I haven't checked their more recent versions because there's been so much else going on.

Chris_McElligottPark

Sep 3, 2019 7:37 pm

administrator   ~0052789

These should all be fixed now!

Issue History

Date Modified Username Field Change
Aug 28, 2019 3:01 am NRSirLimbo New Issue
Aug 28, 2019 3:01 am NRSirLimbo File Added: ArcenDebugLog.txt
Aug 28, 2019 7:29 am NRSirLimbo File Added: ArcenDebugLog-2.txt
Aug 28, 2019 7:29 am NRSirLimbo Note Added: 0052650
Aug 28, 2019 7:31 am NRSirLimbo File Added: ArcenDebugLog-3.txt
Aug 28, 2019 7:31 am NRSirLimbo Note Added: 0052651
Aug 28, 2019 9:30 am BadgerBadger Note Added: 0052652
Aug 28, 2019 10:55 am Chris_McElligottPark Note Added: 0052656
Aug 28, 2019 10:55 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Aug 28, 2019 10:55 am Chris_McElligottPark Status new => feedback
Aug 28, 2019 12:20 pm BadgerBadger Note Added: 0052657
Aug 28, 2019 12:32 pm NRSirLimbo Note Added: 0052658
Aug 28, 2019 12:32 pm NRSirLimbo Status feedback => assigned
Aug 29, 2019 9:08 pm Chris_McElligottPark Note Added: 0052674
Sep 1, 2019 10:36 pm BadgerBadger Relationship added related to 0021556
Sep 3, 2019 7:37 pm Chris_McElligottPark Status assigned => resolved
Sep 3, 2019 7:37 pm Chris_McElligottPark Resolution open => fixed
Sep 3, 2019 7:37 pm Chris_McElligottPark Fixed in Version => 0.886 Zombie Homebodies
Sep 3, 2019 7:37 pm Chris_McElligottPark Note Added: 0052789