View Issue Details

IDProjectCategoryLast Update
0003838AI War 1 / ClassicCrash/ExceptionSep 12, 2011 2:47 pm
ReporterTechSY730 Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version5.016 
Fixed in Version5.017 
Summary0003838: Unhandled Errors
DescriptionDespite there being unhandled errors, there doesn't seem to be anything I did before hand to trigger it.

However, I did notice it popped up a little after some neinzul ships from a neinzul nest poped into one of my systems (the planet SETTLEMENT, named because it has a captive human settlement on it)

They occurred a little before 2:27:43 in game time. Attached is the most recent auto-save from before then.
TagsNo tags attached.
Internal Weight

Activities

TechSY730

Sep 12, 2011 1:30 am

reporter  

TechSY730

Sep 12, 2011 1:30 am

reporter  

UnhandledErrors.txt (11,064 bytes)   
9/12/2011 1:23:42 AM (5.016)
-----------------------------------
UnhandledErrors-----------------------------------
9/12/2011 1:23:42 AM (5.016)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


9/12/2011 1:23:43 AM (5.016)
-----------------------------------
UnhandledErrors-----------------------------------
9/12/2011 1:23:43 AM (5.016)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


9/12/2011 1:23:44 AM (5.016)
-----------------------------------
UnhandledErrors-----------------------------------
9/12/2011 1:23:44 AM (5.016)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


9/12/2011 1:23:44 AM (5.016)
-----------------------------------
UnhandledErrors-----------------------------------
9/12/2011 1:23:44 AM (5.016)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


9/12/2011 1:23:45 AM (5.016)
-----------------------------------
UnhandledErrors-----------------------------------
9/12/2011 1:23:45 AM (5.016)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


9/12/2011 1:23:46 AM (5.016)
-----------------------------------
UnhandledErrors-----------------------------------
9/12/2011 1:23:46 AM (5.016)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


9/12/2011 1:23:46 AM (5.016)
-----------------------------------
UnhandledErrors-----------------------------------
9/12/2011 1:23:46 AM (5.016)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


9/12/2011 1:23:47 AM (5.016)
-----------------------------------
UnhandledErrors-----------------------------------
9/12/2011 1:23:47 AM (5.016)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at ForegroundObject.CalcOtherObjectToMoveTowards () [0x00000] in <filename unknown>:0 
  at ForegroundObject.DoRecalculations (Boolean RecalculateFull, Boolean AllowAddingUnitsToFgPlayerUnits) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


UnhandledErrors.txt (11,064 bytes)   

keith.lamothe

Sep 12, 2011 9:24 am

administrator   ~0013214

Wow, it's on a roll lately with the errors, 2 in a week! ;)

Thanks, I'll take a look today.

TechSY730

Sep 12, 2011 9:43 am

reporter   ~0013215

Just as a note, nothing bad seemed to happen. And after a couple times of these errors, everything seemed to work fine. I guess whatever was causing it managed to fix itself after a few game cycles. That's why its marked a minor severity, even though it is indeed an exception.

I guess it should still be looked at, because you never know that maybe next time it will cause something bad to happen.

keith.lamothe

Sep 12, 2011 10:04 am

administrator   ~0013216

Oh, any kind of error like that is going to cause problems due to the amount of processing in that cycle that doesn't happen because, well, it stopped in the middle of the cycle. Pretty much all bets are off once that happens ;)

keith.lamothe

Sep 12, 2011 2:17 pm

administrator   ~0013217

Ok, I'm not able to reproduce the errors, but CalcOtherObjectToMoveTowards is one of the places with the new "cannot go through a wormhole covered by a hostile forcefield" logic so conceivably it's not checking something for null when it should. Looking at the code I don't see it (and the release build doesn't give line number, regrettably), but conceivably.

Are you able to reproduce the error reliably? If not I'll just do some general paranoia checks in there to make sure there can't be a null reference.

keith.lamothe

Sep 12, 2011 2:22 pm

administrator   ~0013218

Nevermind, found it :)

keith.lamothe

Sep 12, 2011 2:30 pm

administrator   ~0013219

Ok, fixed for 5.017 :)

TechSY730

Sep 12, 2011 2:40 pm

reporter   ~0013220

Last edited: Sep 12, 2011 2:41 pm

Just out of curiosity, what was the issue?

keith.lamothe

Sep 12, 2011 2:47 pm

administrator   ~0013221

In a rare case the command would have what's essentially a null wormhole, and it was removing the command correctly but not actually early-out'ing of the method and was then trying to use the wormhole reference. But it was only very rarely null, and was only used for this "is it blocked by an ff" thing.

Issue History

Date Modified Username Field Change
Sep 12, 2011 1:30 am TechSY730 New Issue
Sep 12, 2011 1:30 am TechSY730 File Added: Autosave_2011_09_12_01_23_08.sav
Sep 12, 2011 1:30 am TechSY730 File Added: UnhandledErrors.txt
Sep 12, 2011 9:24 am keith.lamothe Note Added: 0013214
Sep 12, 2011 9:43 am TechSY730 Note Added: 0013215
Sep 12, 2011 10:04 am keith.lamothe Note Added: 0013216
Sep 12, 2011 2:17 pm keith.lamothe Note Added: 0013217
Sep 12, 2011 2:22 pm keith.lamothe Note Added: 0013218
Sep 12, 2011 2:30 pm keith.lamothe Note Added: 0013219
Sep 12, 2011 2:30 pm keith.lamothe Status new => resolved
Sep 12, 2011 2:30 pm keith.lamothe Fixed in Version => 5.017
Sep 12, 2011 2:30 pm keith.lamothe Resolution open => fixed
Sep 12, 2011 2:30 pm keith.lamothe Assigned To => keith.lamothe
Sep 12, 2011 2:40 pm TechSY730 Note Added: 0013220
Sep 12, 2011 2:41 pm TechSY730 Note Edited: 0013220
Sep 12, 2011 2:47 pm keith.lamothe Note Added: 0013221
Apr 14, 2014 9:27 am Chris_McElligottPark Category Bug - Crash or Exception => Crash/Exception