View Issue Details

IDProjectCategoryLast Update
0025876AI War 2Crash/ExceptionJan 24, 2022 12:21 pm
ReporterMac Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product VersionBeta 3.763 Necromancer Reanimation And Refinement 
Fixed in VersionBeta 3.786 A Very Intense Patch 
Summary0025876: Exception in get_PlayerTypeDataOrNull_ModeratelyExpensive
Description12/9/2021 11:00:09 PM 3.763 SINGLEP DELAYED27 TID43 AudioAndSimilarHandler Error at debug stage 5000:
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.ConfigurationForFaction.GetStringValueForCustomFieldOrDefaultValue (Arcen.AIW2.Core.DataForFaction_CustomFieldDefinition ForField) [0x001e6] in <59cc0c4303ee4f43955e09d21d3cbf3a>:0
  at Arcen.AIW2.Core.ConfigurationForFaction.GetStringValueForCustomFieldOrDefaultValue (System.String CustomFieldName, System.Boolean ErrorOnMissingField) [0x00059] in <59cc0c4303ee4f43955e09d21d3cbf3a>:0
  at Arcen.AIW2.Core.Faction.get_PlayerTypeDataOrNull_ModeratelyExpensive () [0x00022] in <59cc0c4303ee4f43955e09d21d3cbf3a>:0
  at Arcen.AIW2.External.AudioAndSimilarHandler.UpdateStrengthByTechLine (Arcen.AIW2.Core.Faction localFaction, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x0002f] in <5b80730c91f94f8ebebd6640ceb941a8>:0
  at Arcen.AIW2.External.AudioAndSimilarHandler.GeneratePersonalNotificationOnClientOrHost_BackgroundThread (Arcen.AIW2.Core.Faction focalFaction, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x0004c] in <5b80730c91f94f8ebebd6640ceb941a8>:0
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <91cd6a7e690d4745abf6d8ec9f308124>:0
  at Arcen.AIW2.External.AudioAndSimilarHandler.GeneratePersonalNotificationOnClientOrHost_BackgroundThread (Arcen.AIW2.Core.Faction focalFaction, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x00000] in <5b80730c91f94f8ebebd6640ceb941a8>:0
  at Arcen.AIW2.Core.PersonalNotificationGenerator.GenerateAllPersonalNotifications_FromBGThread (Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x00000] in <59cc0c4303ee4f43955e09d21d3cbf3a>:0
  at Arcen.AIW2.External.PerSecondNonSimPlanning.DoCentralLoop_ClientAndHost () [0x00000] in <5b80730c91f94f8ebebd6640ceb941a8>:0
  at Arcen.AIW2.External.PerSecondNonSimPlanning.Execute () [0x00000] in <5b80730c91f94f8ebebd6640ceb941a8>:0
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext.BackgroundThreadRunHandler (System.Single SuicidesAfterTime, System.Boolean FailSilentlyIfNotFinishedYet) [0x00000] in <5b80730c91f94f8ebebd6640ceb941a8>:0
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext+<>c__DisplayClass15_0.<RunOnBackgroundThread>b__0 () [0x00000] in <5b80730c91f94f8ebebd6640ceb941a8>:0
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.Execute () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [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.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0

TagsNo tags attached.

Activities

Chris_McElligottPark

Jan 24, 2022 12:21 pm

administrator   ~0063849

Thanks!

* Improved the error handling for "GetStringValueForCustomFieldOrDefaultValue", such that it should not error anymore when trying to find a playertype in invalid cases, or it should give us a better exception that is also less disruptive to program flow.

Issue History

Date Modified Username Field Change
Dec 9, 2021 11:05 pm Mac New Issue
Jan 24, 2022 1:33 am BadgerBadger Summary DELAYED27 TID43 AudioAndSimilarHandler Error at debug stage 5000: System.NullReferenceException => Exception in get_PlayerTypeDataOrNull_ModeratelyExpensive
Jan 24, 2022 12:21 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Jan 24, 2022 12:21 pm Chris_McElligottPark Status new => resolved
Jan 24, 2022 12:21 pm Chris_McElligottPark Resolution open => fixed
Jan 24, 2022 12:21 pm Chris_McElligottPark Fixed in Version => Beta 3.786 A Very Intense Patch
Jan 24, 2022 12:21 pm Chris_McElligottPark Note Added: 0063849