View Issue Details

IDProjectCategoryLast Update
0001007AI War 1 / ClassicCrash/ExceptionNov 1, 2010 10:23 pm
ReporterNickAragua Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version4.022 
Fixed in Version4.023 
Summary0001007: AI Failed Assertions showing up in the log
DescriptionI re-loaded a game several times due to the AI squashing my forces with a 2000 armor ship wave (24x wave multiplier from a system I captured), but the third time I reloaded, the wave didn't come - instead I get AI Failed Assertions.

Attached are the error log files and before/after saves.
TagsNo tags attached.
Internal Weight

Activities

NickAragua

Nov 1, 2010 9:06 pm

reporter  

AIErrors.txt (590 bytes)   
11/1/2010 8:53:34 PM (4.022)
-----------------------------------
Command Error-----------------------------------
System.NullReferenceException: Object reference not set to an instance of an object
  at AIRouting.CreateStandardWaves (Int32 PlayerNumber, Int32 WaveArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, FInt WaveSize, ForegroundObjectType ForcedType, System.Collections.Generic.Dictionary`2 AiMods) [0x00000] in <filename unknown>:0 
  at AICommand.ParseDataIntoAILoop () [0x00000] in <filename unknown>:0 
  at AILoop.RunAILoop () [0x00000] in <filename unknown>:0 

AIErrors.txt (590 bytes)   

NickAragua

Nov 1, 2010 9:07 pm

reporter  

AIFailedAssertions.txt (3,622 bytes)   
11/1/2010 8:51:17 PM (4.022)
-----------------------------------
FailedAssertions - AILoop-----------------------------------
AICommand.ParseDataIntoLoop:ParanoiaAssert1
-----------------------------------Stack Trace:    at System.Environment.get_StackTrace()
   at AILoop.AIThreadOnly_DebugLogParanoiaAssertFailed(System.String Message)
   at AICommand.ParseDataIntoAILoop()
   at AILoop.RunAILoop()


11/1/2010 8:51:17 PM (4.022)
-----------------------------------
FailedAssertions - AILoop-----------------------------------
AICommand.ParseDataIntoLoop:ParanoiaAssert1
-----------------------------------Stack Trace:    at System.Environment.get_StackTrace()
   at AILoop.AIThreadOnly_DebugLogParanoiaAssertFailed(System.String Message)
   at AICommand.ParseDataIntoAILoop()
   at AILoop.RunAILoop()


11/1/2010 8:51:17 PM (4.022)
-----------------------------------
FailedAssertions - AILoop-----------------------------------
AICommand.ParseDataIntoLoop:ParanoiaAssert1
-----------------------------------Stack Trace:    at System.Environment.get_StackTrace()
   at AILoop.AIThreadOnly_DebugLogParanoiaAssertFailed(System.String Message)
   at AICommand.ParseDataIntoAILoop()
   at AILoop.RunAILoop()


11/1/2010 8:53:32 PM (4.022)
-----------------------------------
FailedAssertions - AILoop-----------------------------------
AIRouting.SendReinforcements:ParanoiaAssert5
-----------------------------------Stack Trace:    at System.Environment.get_StackTrace()
   at AILoop.AIThreadOnly_DebugLogParanoiaAssertFailed(System.String Message)
   at AIRouting.SendReinforcements(Int32 PlayerNumber, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Int32 NumberOfReinforcements, Boolean HasAlreadySentToWave)
   at AICommand.ParseDataIntoAILoop()
   at AILoop.RunAILoop()


11/1/2010 8:53:33 PM (4.022)
-----------------------------------
FailedAssertions - AILoop-----------------------------------
AIRouting.SendReinforcements:ParanoiaAssert5
-----------------------------------Stack Trace:    at System.Environment.get_StackTrace()
   at AILoop.AIThreadOnly_DebugLogParanoiaAssertFailed(System.String Message)
   at AIRouting.SendReinforcements(Int32 PlayerNumber, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Int32 NumberOfReinforcements, Boolean HasAlreadySentToWave)
   at AICommand.ParseDataIntoAILoop()
   at AILoop.RunAILoop()


11/1/2010 8:58:54 PM (4.022)
-----------------------------------
FailedAssertions - AILoop-----------------------------------
AIRouting.SendReinforcements:ParanoiaAssert5
-----------------------------------Stack Trace:    at System.Environment.get_StackTrace()
   at AILoop.AIThreadOnly_DebugLogParanoiaAssertFailed(System.String Message)
   at AIRouting.SendReinforcements(Int32 PlayerNumber, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Int32 NumberOfReinforcements, Boolean HasAlreadySentToWave)
   at AICommand.ParseDataIntoAILoop()
   at AILoop.RunAILoop()


11/1/2010 8:58:54 PM (4.022)
-----------------------------------
FailedAssertions - AILoop-----------------------------------
AIRouting.SendReinforcements:ParanoiaAssert5
-----------------------------------Stack Trace:    at System.Environment.get_StackTrace()
   at AILoop.AIThreadOnly_DebugLogParanoiaAssertFailed(System.String Message)
   at AIRouting.SendReinforcements(Int32 PlayerNumber, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Int32 NumberOfReinforcements, Boolean HasAlreadySentToWave)
   at AICommand.ParseDataIntoAILoop()
   at AILoop.RunAILoop()


AIFailedAssertions.txt (3,622 bytes)   

keith.lamothe

Nov 1, 2010 9:07 pm

administrator   ~0002493

Thanks for posting that log, but do you have an actual AIFailedAssertions.txt file? That's really important.

NickAragua

Nov 1, 2010 9:08 pm

reporter  

keith.lamothe

Nov 1, 2010 9:08 pm

administrator   ~0002494

Oh, there it is, thanks :)

NickAragua

Nov 1, 2010 9:08 pm

reporter  

hoo boy.sav (455,399 bytes)

NickAragua

Nov 1, 2010 9:08 pm

reporter   ~0002495

Last edited: Nov 1, 2010 9:09 pm

Sorry, I hit upload before finishing uploads of all the files. Doh!

Also, "hoo boy" is the before save, "failed assertions" is the after save.

keith.lamothe

Nov 1, 2010 9:09 pm

administrator   ~0002496

Chris, this is the same thing I mentioned before, but a different place:

AILoop.Instance.players[PlayerNumber]

is evaluating to null.

Chris_McElligottPark

Nov 1, 2010 9:11 pm

administrator   ~0002497

Okay. It sounds like the AI Loop is running before the actual AI Player objects have a chance to get created. That's the only thing I can think of.

Chris_McElligottPark

Nov 1, 2010 10:23 pm

administrator   ~0002506

* Hopefully fixed a rare AI Assertions bug that could be caused by a "race condition" of sorts when starting a new game or restarting the AI thread.

Issue History

Date Modified Username Field Change
Nov 1, 2010 9:06 pm NickAragua New Issue
Nov 1, 2010 9:06 pm NickAragua File Added: AIErrors.txt
Nov 1, 2010 9:07 pm NickAragua File Added: AIFailedAssertions.txt
Nov 1, 2010 9:07 pm keith.lamothe Note Added: 0002493
Nov 1, 2010 9:08 pm NickAragua File Added: failed assertions ai loop save.sav
Nov 1, 2010 9:08 pm keith.lamothe Note Added: 0002494
Nov 1, 2010 9:08 pm NickAragua File Added: hoo boy.sav
Nov 1, 2010 9:08 pm NickAragua Note Added: 0002495
Nov 1, 2010 9:09 pm keith.lamothe Note Added: 0002496
Nov 1, 2010 9:09 pm NickAragua Note Edited: 0002495
Nov 1, 2010 9:11 pm Chris_McElligottPark Note Added: 0002497
Nov 1, 2010 10:23 pm Chris_McElligottPark Note Added: 0002506
Nov 1, 2010 10:23 pm Chris_McElligottPark Status new => resolved
Nov 1, 2010 10:23 pm Chris_McElligottPark Fixed in Version => 4.023
Nov 1, 2010 10:23 pm Chris_McElligottPark Resolution open => fixed
Nov 1, 2010 10:23 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Apr 14, 2014 9:27 am Chris_McElligottPark Category Bug - Crash or Exception => Crash/Exception