View Issue Details

IDProjectCategoryLast Update
0022595AI War 2Crash/ExceptionJan 12, 2020 1:41 pm
ReporterDaniexpert Assigned ToChris_McElligottPark  
Severitymajor 
Status resolvedResolutionfixed 
Product Version1.3 The Grand New AI 
Fixed in Version1.302 Frigate Empowerment 
Summary0022595: NullReferenceException with a spam of errors in the log
DescriptionThe error in "errors_spam.txt" is spammed in the log filling it up (hundreds of lines per second), so I lost the initial logging. I retrieved the Engine Error which I assume is correlated to the spam. I got also another exception which is similar to the one above (both in the "exceptions.txt" file). All this is causing my game to run as low as 30% performance on 1x speed, like it's accumulating lag, because it doesn't immediately slow down, but as time passes.
TagsNo tags attached.

Activities

Daniexpert

Jan 12, 2020 10:41 am

manager  

lag.save (2,001,451 bytes)
errors_spam.txt (566 bytes)   
1/12/2020 4:29:12 PM	CalculateRequestedFlows exception hit. debugCode 360 exception System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.MetalFlowPlanning.CheckClaimable (Arcen.AIW2.Core.GameEntity_Squad claimable) [0x00003] in <46fa522b90e7422aad805338d8dc0dc3>:0 
  at Arcen.AIW2.External.MetalFlowPlanning.CalculateRequestedFlows (Arcen.Universal.FInt effectiveDeltaTime, Arcen.AIW2.Core.PlanetFaction pFaction, Arcen.AIW2.Core.GameEntity_Squad entity) [0x00550] in <46fa522b90e7422aad805338d8dc0dc3>:0 
errors_spam.txt (566 bytes)   
exceptions.txt (1,622 bytes)   
1/12/2020 4:25:41 PM (1.300) Mem: 511,385,600 Mode: Host Plat:WindowsPlayer
-----------------------------------ErrorsReportedByEngine-----------------------------------
-----------
NullReferenceException: Object reference not set to an instance of an object
Stack Trace: Arcen.Universal.FramePartTimings.Reset () (at <a4d5b0db11d849b18d7c944b5f8fe508>:0)
Arcen.Universal.Engine_Universal.StartNewFrameTimingsLoop () (at <a4d5b0db11d849b18d7c944b5f8fe508>:0)
Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () (at <a4d5b0db11d849b18d7c944b5f8fe508>:0)
ArcenGameController.Update () (at <e6e5a3bb9cbe4033b68586a246cf0d60>:0)



1/12/2020 4:27:36 PM (1.300) Mem: 475,512,832 Mode: Host Plat:WindowsPlayer
-----------------------------------ErrorsReportedByEngine-----------------------------------
-----------
IndexOutOfRangeException: Index was outside the bounds of the array.
Stack Trace: (wrapper stelemref) System.Object.virt_stelemref_class_small_idepth(intptr,object)
System.Collections.Generic.List`1[T].Add (T item) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Arcen.Universal.FramePartTimings.GetOrAddTiming (Arcen.Universal.FramePartTimings+TimingType Type, System.String TimingName) (at <a4d5b0db11d849b18d7c944b5f8fe508>:0)
PresentationLayer_AIW2.UpdateGameController () (at <3d51acf4fb354a45813cac5f1101f51a>:0)
Arcen.AIW2.Core.Engine_AIW2.OnUpdate_GameSpecificEngine () (at <907ba1a81c114df7917387c9b7011088>:0)
Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () (at <a4d5b0db11d849b18d7c944b5f8fe508>:0)
ArcenGameController.Update () (at <e6e5a3bb9cbe4033b68586a246cf0d60>:0)
exceptions.txt (1,622 bytes)   

Chris_McElligottPark

Jan 12, 2020 1:33 pm

administrator   ~0055539

Thanks!

* Fixed an exception in the claiming code for neutral entities that could happen and then spam the log endlessly.

Chris_McElligottPark

Jan 12, 2020 1:41 pm

administrator   ~0055540

Thanks!

* Fixed a really rare and strange error that could sometimes happen in FramePartTimings. This happened to Chris periodically for the last year, but it had never been seen "in the wild"" until Daniexpert ran into it. We thought it was just related to the dev environment somehow, but it seems to be a cross-threading thing that can rarely happen on startup if things go just wrongly. The game itself will run terribly and spam the world if this happens, so making it gracefully recover is a good thing.

Issue History

Date Modified Username Field Change
Jan 12, 2020 10:41 am Daniexpert New Issue
Jan 12, 2020 10:41 am Daniexpert File Added: lag.save
Jan 12, 2020 10:41 am Daniexpert File Added: errors_spam.txt
Jan 12, 2020 10:41 am Daniexpert File Added: exceptions.txt
Jan 12, 2020 1:33 pm Chris_McElligottPark Note Added: 0055539
Jan 12, 2020 1:41 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Jan 12, 2020 1:41 pm Chris_McElligottPark Status new => resolved
Jan 12, 2020 1:41 pm Chris_McElligottPark Resolution open => fixed
Jan 12, 2020 1:41 pm Chris_McElligottPark Fixed in Version => 1.302 Frigate Empowerment
Jan 12, 2020 1:41 pm Chris_McElligottPark Note Added: 0055540