View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0000919 | AI War 1 / Classic | Crash/Exception | Oct 26, 2010 10:06 pm | Nov 1, 2010 2:24 pm | |
Reporter | Sherlock | Assigned To | keith.lamothe | ||
Status | resolved | Resolution | fixed | ||
Product Version | 4.000 | ||||
Summary | 0000919: AIErrors.txt: System.NullReferenceException | ||||
Description | Many many reports of the following. Yesterday (pre 4.0) my AIErrors.txt bloated to 62 megs. This was playing the regular game, not the tutorials. As a side note, my OSX version still crashes every 1/2 hr or so. I'm unsure if this is related. -----------------------------------Command Error: System.NullReferenceException: Object reference not set to an instance of an object at AIRouting.SendReinforcements (Int32 PlayerNumber, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Int32 NumberOfReinforcements, Boolean HasAlreadySentToWave) [0x00000] in <filename unknown>:0 at AICommand.ParseDataIntoAILoop () [0x00000] in <filename unknown>:0 at AILoop.RunAILoop () [0x00000] in <filename unknown>:0 10/26/2010 19:52:50 | ||||
Tags | No tags attached. | ||||
Internal Weight | |||||
|
Ok, I've gone through AIRouting.SendReinforcements and put if(whatever == null)return; checks on _everything_ that could possibly be null (and most of what could not possibly be null). That will be in the next prerelease, so if you get a chance to retest then that would be great. Thanks for all the help with this; we'll get this thing :) |
|
I was playing for a while on 4.000 and didn't get any more of these in AIErrors.txt. |
|
Thanks, that's good to hear. Is that when running the OSX version? |
|
Oh, I think I may have been misunderstanding the original bug report, is that for OSX or Windows? |
|
Yes, I was running on OSX. |
|
Sorry for the ambiguity. It was the OSX version, and I haven't seen an AIError since. Thanks! |
|
Ok, thanks :) Basically just keep sending in any distinct errors you get, and I'll try to nail the methods down flat so at least they won't crash (I'll probably get it to debug.log some stuff on the paranoia-inspired null-checks, so some logs will be generated, etc). |
|
Ok, for 4.020 (or whatever number Chris wants to use) those paranoia checks are in; if they actually fire they'll log a bunch of details (including a unique identifier of exactly WHERE in the code it happened, and which EXACT reference was null) to FailedAssertions.txt. It will also try to continue the game, though it may not be able to depending on the nature of the error. Should help a bit, at least. |
|
This specific bug is dealt with, best I can tell; if you see any entries in AIFailedAssertions.txt or any other error log, please let us know. |
Date Modified | Username | Field | Change |
---|---|---|---|
Oct 26, 2010 10:06 pm | Sherlock | New Issue | |
Oct 27, 2010 9:35 am | keith.lamothe | Note Added: 0002205 | |
Oct 27, 2010 9:35 am | keith.lamothe | Assigned To | => keith.lamothe |
Oct 27, 2010 9:35 am | keith.lamothe | Status | new => feedback |
Oct 27, 2010 10:05 am | vonkolberg | Note Added: 0002207 | |
Oct 27, 2010 10:09 am | keith.lamothe | Note Added: 0002209 | |
Oct 27, 2010 10:10 am | keith.lamothe | Note Added: 0002210 | |
Oct 27, 2010 10:25 am | vonkolberg | Note Added: 0002212 | |
Oct 27, 2010 1:02 pm | Sherlock | Note Added: 0002232 | |
Oct 27, 2010 1:02 pm | Sherlock | Status | feedback => assigned |
Oct 27, 2010 1:13 pm | keith.lamothe | Note Added: 0002233 | |
Oct 27, 2010 5:04 pm | keith.lamothe | Note Added: 0002241 | |
Nov 1, 2010 2:24 pm | keith.lamothe | Note Added: 0002472 | |
Nov 1, 2010 2:24 pm | keith.lamothe | Status | assigned => resolved |
Nov 1, 2010 2:24 pm | keith.lamothe | Resolution | open => fixed |
Apr 14, 2014 9:27 am | Chris_McElligottPark | Category | Bug - Crash or Exception => Crash/Exception |