View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0001007 | AI War 1 / Classic | Crash/Exception | Nov 1, 2010 9:06 pm | Nov 1, 2010 10:23 pm | |
Reporter | NickAragua | Assigned To | Chris_McElligottPark | ||
Status | resolved | Resolution | fixed | ||
Product Version | 4.022 | ||||
Fixed in Version | 4.023 | ||||
Summary | 0001007: AI Failed Assertions showing up in the log | ||||
Description | I 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. | ||||
Tags | No tags attached. | ||||
Internal Weight | |||||
|
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 |
|
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() |
|
Thanks for posting that log, but do you have an actual AIFailedAssertions.txt file? That's really important. |
|
|
|
Oh, there it is, thanks :) |
|
|
|
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. |
|
Chris, this is the same thing I mentioned before, but a different place: AILoop.Instance.players[PlayerNumber] is evaluating to null. |
|
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. |
|
* 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. |
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 |