View Issue Details

IDProjectCategoryLast Update
0000919AI War 1 / ClassicCrash/ExceptionNov 1, 2010 2:24 pm
ReporterSherlock Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version4.000 
Summary0000919: AIErrors.txt: System.NullReferenceException
DescriptionMany 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
TagsNo tags attached.
Internal Weight

Activities

keith.lamothe

Oct 27, 2010 9:35 am

administrator   ~0002205

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 :)

vonkolberg

Oct 27, 2010 10:05 am

reporter   ~0002207

I was playing for a while on 4.000 and didn't get any more of these in AIErrors.txt.

keith.lamothe

Oct 27, 2010 10:09 am

administrator   ~0002209

Thanks, that's good to hear. Is that when running the OSX version?

keith.lamothe

Oct 27, 2010 10:10 am

administrator   ~0002210

Oh, I think I may have been misunderstanding the original bug report, is that for OSX or Windows?

vonkolberg

Oct 27, 2010 10:25 am

reporter   ~0002212

Yes, I was running on OSX.

Sherlock

Oct 27, 2010 1:02 pm

reporter   ~0002232

Sorry for the ambiguity. It was the OSX version, and I haven't seen an AIError since. Thanks!

keith.lamothe

Oct 27, 2010 1:13 pm

administrator   ~0002233

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).

keith.lamothe

Oct 27, 2010 5:04 pm

administrator   ~0002241

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.

keith.lamothe

Nov 1, 2010 2:24 pm

administrator   ~0002472

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.

Issue History

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