View Issue Details

IDProjectCategoryLast Update
0001656AI War 1 / ClassicCrash/ExceptionNov 29, 2010 1:56 pm
ReporterRadlith Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version4.041 
Summary0001656: Unhandled exception kills multiplayer session
DescriptionWhile playing a 2 player game over the internet, the game stops and disconnects the other player. This has happened three times now, twice yesterday and once today, which corresponds to the three entries in the unhandled errors file.
TagsNo tags attached.
Internal Weight

Activities

Radlith

Nov 28, 2010 10:55 pm

reporter  

UnhandledErrors.txt (4,887 bytes)   
11/27/2010 7:50:48 PM (4.041)
-----------------------------------
UnhandledErrors-----------------------------------
11/27/2010 7:50:48 PM (4.041)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper stelemref) object:stelemref (object,intptr,object)
  at System.Collections.Generic.List`1[ForegroundObject].Add (.ForegroundObject item) [0x00000] in <filename unknown>:0 
  at ForegroundObject.RunCollisionDetection (Boolean IsForRedirection, Boolean CollidesWithWormholes, Boolean UseCollisionPriorities) [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 (wrapper stelemref) object:stelemref (object,intptr,object)
  at System.Collections.Generic.List`1[ForegroundObject].Add (.ForegroundObject item) [0x00000] in <filename unknown>:0 
  at ForegroundObject.RunCollisionDetection (Boolean IsForRedirection, Boolean CollidesWithWormholes, Boolean UseCollisionPriorities) [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 


11/27/2010 8:27:37 PM (4.041)
-----------------------------------
UnhandledErrors-----------------------------------
11/27/2010 8:27:37 PM (4.041)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper stelemref) object:stelemref (object,intptr,object)
  at System.Collections.Generic.List`1[ForegroundObject].Add (.ForegroundObject item) [0x00000] in <filename unknown>:0 
  at ForegroundObject.RunCollisionDetection (Boolean IsForRedirection, Boolean CollidesWithWormholes, Boolean UseCollisionPriorities) [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 (wrapper stelemref) object:stelemref (object,intptr,object)
  at System.Collections.Generic.List`1[ForegroundObject].Add (.ForegroundObject item) [0x00000] in <filename unknown>:0 
  at ForegroundObject.RunCollisionDetection (Boolean IsForRedirection, Boolean CollidesWithWormholes, Boolean UseCollisionPriorities) [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 


11/28/2010 9:45:24 PM (4.041)
-----------------------------------
UnhandledErrors-----------------------------------
11/28/2010 9:45:24 PM (4.041)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper stelemref) object:stelemref (object,intptr,object)
  at System.Collections.Generic.List`1[ForegroundObject].Add (.ForegroundObject item) [0x00000] in <filename unknown>:0 
  at ForegroundObject.RunCollisionDetection (Boolean IsForRedirection, Boolean CollidesWithWormholes, Boolean UseCollisionPriorities) [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 (wrapper stelemref) object:stelemref (object,intptr,object)
  at System.Collections.Generic.List`1[ForegroundObject].Add (.ForegroundObject item) [0x00000] in <filename unknown>:0 
  at ForegroundObject.RunCollisionDetection (Boolean IsForRedirection, Boolean CollidesWithWormholes, Boolean UseCollisionPriorities) [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 (4,887 bytes)   

keith.lamothe

Nov 29, 2010 11:52 am

administrator   ~0004623

Can you post the save where this is happening? I'll take a look to see if I can find the Add call in question but without line numbers that can be tricky. If I can reproduce it with your save on my own machine I can get a lot more info.

keith.lamothe

Nov 29, 2010 12:38 pm

administrator   ~0004625

Ok, I looked at the two Add calls in that method and neither can be dealing with a null parameter (in both cases the parameter is a local variable that is dereferenced in each possible preceding branch and is not used as an lvalue between those dereferences and the Add call).

Googling turned up some mono bug reports though they looked a bit different and had no resolution (one guy had to update his video card drivers when hitting this in another unity game, but the code being hit here has nothing to do with graphics).

Anyway, there isn't really anything I else I can do with this one without a save, but if you can get that to me I can try to reproduce the problem and dig more.

Radlith

Nov 29, 2010 1:30 pm

reporter  

MP crash.sav (211,087 bytes)

Radlith

Nov 29, 2010 1:33 pm

reporter   ~0004632

I've uploaded the save. Not sure if it'll help any, I suspect it's something really bizarre on my computer; we switched who was hosting and it went on fine. This save was about 9 minutes in, the other two times it happened, it happened right as an attack wave was about to come through, but it was able to load the save and continue with no problem... until the next attack wave came through. I'll try updating drivers and all of that, maybe something will help.

keith.lamothe

Nov 29, 2010 1:43 pm

administrator   ~0004633

That's really bizarre that it would be machine-dependent. List<T>.Add is a _very_ commonly used method and the idea that it would be behaving differently on a different machine in even the slightest way is... well, surprising is a nice way to put it :)

I suppose it's theoretically possible that you've got a different version of mono installed on your machine and the game is somehow using that external version of the System.Collections.Generic namespace. But that's really grasping at straws.

Another remote possibility is that some other application on your computer is writing to memory that doesn't belong to it and nulling out a pointer somewhere in our app's memory. But that would be beyond bizarre for it to happen the same way three times.

Anyway, I'm glad y'all were able to play by changing who was hosting.

keith.lamothe

Nov 29, 2010 1:56 pm

administrator   ~0004635

Marking as resolved due to the extreme unlikelihood that I can even get the bug to happen for me, let alone fix it. Please do bug us again if you find it's actually preventing you from enjoying the game in some way (currently it sounds like you have a good workaround by having the other guy host).

Issue History

Date Modified Username Field Change
Nov 28, 2010 10:55 pm Radlith New Issue
Nov 28, 2010 10:55 pm Radlith File Added: UnhandledErrors.txt
Nov 29, 2010 11:52 am keith.lamothe Note Added: 0004623
Nov 29, 2010 12:38 pm keith.lamothe Note Added: 0004625
Nov 29, 2010 12:38 pm keith.lamothe Assigned To => keith.lamothe
Nov 29, 2010 12:38 pm keith.lamothe Status new => feedback
Nov 29, 2010 1:30 pm Radlith File Added: MP crash.sav
Nov 29, 2010 1:33 pm Radlith Note Added: 0004632
Nov 29, 2010 1:33 pm Radlith Status feedback => assigned
Nov 29, 2010 1:43 pm keith.lamothe Note Added: 0004633
Nov 29, 2010 1:56 pm keith.lamothe Note Added: 0004635
Nov 29, 2010 1:56 pm keith.lamothe Status assigned => resolved
Nov 29, 2010 1:56 pm keith.lamothe Resolution open => fixed
Apr 14, 2014 9:27 am Chris_McElligottPark Category Bug - Crash or Exception => Crash/Exception