View Issue Details

IDProjectCategoryLast Update
0016957Stars Beyond ReachCrash/ExceptionMay 30, 2015 4:12 pm
ReporterCinth Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.854 
Fixed in Version0.870 (Yellowshirts and the Giant Revision) 
Summary0016957: Show Stopper
DescriptionAnd burrrnnnnnnn
TagsNo tags attached.

Relationships

related to 0016958 resolvedChris_McElligottPark Event logs from 5/29 crash 
parent of 0016959 resolvedChris_McElligottPark Crash on saving 
related to 0016951 resolvedChris_McElligottPark Extreme slowdown, save attempt, crash. 
related to 0016950 resolvedChris_McElligottPark Audio FX intermittently go silent when attacking units/buildings. 

Activities

Cinth

May 30, 2015 12:21 pm

manager  

ArcenDebugLog.txt (2,002 bytes)   
5/30/2015 9:20:34 AM
ProcessAssertionFailure while IsInAbilityDeserializationOrProcessing, Message:   Couldn't create thread

  at (wrapper managed-to-native) object:__icall_wrapper_mono_delegate_begin_invoke (object,intptr)
  at (wrapper delegate-begin-invoke) System.Threading.WaitCallback:begin_invoke_IAsyncResult__this___object_AsyncCallback_object (object,System.AsyncCallback,object)
  at System.Threading.ThreadPool.QueueUserWorkItem (System.Threading.WaitCallback callBack, System.Object state) [0x00000] in <filename unknown>:0 
  at System.Threading.ThreadPool.QueueUserWorkItem (System.Threading.WaitCallback callBack) [0x00000] in <filename unknown>:0 
  at Game.<StartAIThreads>b__104 (.RaceState race) [0x00000] in <filename unknown>:0 
  at World.DoForRaces (.ProcessorDelegate Processor) [0x00000] in <filename unknown>:0 
  at Game.StartAIThreads () [0x00000] in <filename unknown>:0 
  at Ability.TryExecuteInner (.QueuedAbilityUse Message, .AbilityUseResult Result) [0x00000] in <filename unknown>:0 
QueuedAbilityUse.AbilityType:HumanPlayerSignalingReadyForNextTurn
QueuedAbilityUse.MessageID:750
Game.Instance.NumberOfQueuedAbilityUsesProcessedThisStep:1

   at System.Environment.get_StackTrace()
   at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity)
   at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity)
   at ArcenDebugging.ArcenDebugLog(System.String Message, Verbosity Verbosity)
   at ArcenDebugging.ProcessAssertionFailure(System.String Message)
   at Ability.TryExecuteInner(.QueuedAbilityUse Message, .AbilityUseResult Result)
   at Ability.TryExecute(.QueuedAbilityUse QueuedAbilityUse, .AbilityUseResult Result)
   at QueuedAbilityUse.TryExecute()
   at Game.HandleQueuedAbilityUses()
   at Game.ProcessSimStep()
   at ArcenMainCameraImplementations.MainUpdateLogic()
   at MainCameraLogic.Update()

ArcenDebugLog.txt (2,002 bytes)   

Chris_McElligottPark

May 30, 2015 4:08 pm

administrator   ~0041473

There is a very high likelihood that this is a high-RAM-usage issue. That said, it's possible there is also some sort of thread pooling issue, so if you see this again in the next version, that will be a separate issue from the RAM problems. Fingers crossed that's not actually an issue.

Thanks!

* Fixed a very substantial memory allocation issue where sprite batches could be up to 4000 large, but this was causing too many intermediate-sized batches and other complicated issues there. After some experimentation, reducing the maximum batch size to 250 sprites per batch leads to actually a slight performance gain in high-load cases (less CPU work), at the cost of only a few more draw calls (40-something added in Chris's test case were it had 80 prior to that, and was batching 24,000, so that's hardly anything).
** This was actually responsible for some really incredible amounts of RAM usage that would spike the game up to the point it would eventually crash. In particular during mapgen this was the issue, but also during extended play sessions your RAM would likely creep up over time and kill your machine.

Issue History

Date Modified Username Field Change
May 30, 2015 12:21 pm Cinth New Issue
May 30, 2015 12:21 pm Cinth File Added: ArcenDebugLog.txt
May 30, 2015 4:08 pm Chris_McElligottPark Note Added: 0041473
May 30, 2015 4:08 pm Chris_McElligottPark Status new => resolved
May 30, 2015 4:08 pm Chris_McElligottPark Fixed in Version => 0.870 (Yellowshirts and the Giant Revision)
May 30, 2015 4:08 pm Chris_McElligottPark Resolution open => fixed
May 30, 2015 4:08 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
May 30, 2015 4:08 pm Chris_McElligottPark Relationship added related to 0016958
May 30, 2015 4:09 pm Chris_McElligottPark Relationship added parent of 0016959
May 30, 2015 4:11 pm Chris_McElligottPark Relationship added related to 0016951
May 30, 2015 4:12 pm Chris_McElligottPark Relationship added related to 0016950