View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0001470 | AI War 1 / Classic | Crash/Exception | Nov 18, 2010 10:19 pm | Nov 20, 2010 2:21 pm | |
Reporter | Invelios | Assigned To | keith.lamothe | ||
Status | resolved | Resolution | fixed | ||
Product Version | 4.037 | ||||
Summary | 0001470: Unhandled Errors : "Waiting for players" | ||||
Description | I was playing a solo game of AI War, had just rescued the first shard. The AI was beating up one of the planets I took (cause I didn't know the Anti Shard Event ships could spawn on a planet other than the one I got the shard from, didn't have enough defenses.) All of a sudden during the fight on that planet, A small pop-up above the planet summery on the right appeared and said "Unhandled Errors" and then the words "Waiting for players" appeared, even though I'm playing solo! The game pretty much is in an indefinite pause state then, I can look around and stuff, but nothing ever moves. I saved and tried loading it again, and a few seconds after loading it does the same thing again. The UnhandledErrors.txt log says: UnhandledErrors----------------------------------- 11/18/2010 9:14:32 PM (4.037) -----------------------------------Error-----------------------------------Log String: FixedUpdate: System.Exception: Game Command Text:28;359;7911#1#0#0 System.NullReferenceException: Object reference not set to an instance of an object at ForegroundObject.GetWormholeToPlanet (.Planet TargetPlanet) [0x00000] in <filename unknown>:0 at GameCommand.Execute () [0x00000] in <filename unknown>:0 at Game.RunOneCycleOfSimulation () [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 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 Save attached | ||||
Tags | No tags attached. | ||||
Internal Weight | |||||
|
|
|
Tried another game, got the same error, but this time it happened during the 2nd LotS event counter-wave. |
|
I also got the exact same error playing by myself this morning: I had just grabbed my first shard and got it all the way home when the event-wave arrived on my home planet and I got the error. Saving and reloading fixed the error and I was able to continue playing. |
|
Thanks for confirming that it's happening to multiple people. Will be working on this one quite shortly. |
|
|
|
No problem, I'm just glad its an easy one to get around in the meantime. |
|
That's weird, cause saving and reloading definitely does NOT fix it for me. I've tried multiple times. |
|
'Game Command Text:28;5241;8349#1#0#0' is the only difference between the error reports. So I agree, that is most unusual that yours is acting differently. |
|
I got it to happen again this time it involved following freed defenders back to home world. I think the bug has something to do with traversing wormholes somehow. (perhaps AI and Human ships at the same time.) Reloading didn't work this time til I resaved after the error had happened and then reloaded. I think my save was able to reproduce the bug but I accidentally saved over it. |
|
Ok, Chris, this was due to ForegroundObject.GetWormholeToPlanet being called on an instance where CurrentPlanet == null. The call was being made by a SetWaitPoint GameCommand issued from the AI thread. My guess is that with stuff getting sucked into a Maw there's a lot more of this CurrentPlanet == null business going on, and it just hasn't been encountered before because the AI doesn't generally (ever?) directly control any units actually loaded into a transport. Anyway, I fixed it by changing GetWormholeToPlanet to return null when CurrentPlanet == null, and there should be no problems since all calls to that method were already handling the null case (since it just returned null before when not on a neighboring planet to the target). But if I'm correct about the diagnosis here, we should expect to run into more of these cases where code is not tolerant of null CurrentPlanet and just hasn't been hit before. |
|
Keith, I think it might be something relating to a ship being not on a planet directly -- either in cold storage, or in a transport, or something. I put in a safety check for that, maybe that will solve it. |
|
Oh, haha -- yeah, I just came to the same conclusion, but not with figuring out it was the maw. Good catch! |
|
lol, I wonder why I didn't think to mention I had two maws with my forces. Did Invelios have maws as well? |
|
Yeah, I did. I wanted to try out either the Maw or the Blade Spawner, because they both sounded interesting (I usually like units that are "interesting" or "different", even if they aren't really that effective), and the Maw was the first one to come up. For some reason though there are times when the Maw just doesn't was to "eat" any enemy ships and just sits there and fires at them, I hope this gets fixed as well. But yeah, I had 2 Maws with my forces as well. |
|
I tried leaving my maws at home but it doesn't seem to make a difference since the bug still happens now and then. I can still get around it by saving after the error and reloading. |
Date Modified | Username | Field | Change |
---|---|---|---|
Nov 18, 2010 10:19 pm | Invelios | New Issue | |
Nov 18, 2010 10:19 pm | Invelios | File Added: Inveli - Solo AI 5 5 Game 003.sav | |
Nov 19, 2010 4:05 pm | keith.lamothe | Assigned To | => keith.lamothe |
Nov 19, 2010 4:05 pm | keith.lamothe | Status | new => assigned |
Nov 19, 2010 11:58 pm | Invelios | Note Added: 0004043 | |
Nov 20, 2010 11:32 am | wyvern83 | Note Added: 0004068 | |
Nov 20, 2010 11:32 am | wyvern83 | Note Edited: 0004068 | |
Nov 20, 2010 11:33 am | keith.lamothe | Note Added: 0004069 | |
Nov 20, 2010 11:33 am | wyvern83 | File Added: wyvern83 - waiting for palyers error.sav | |
Nov 20, 2010 11:35 am | wyvern83 | Note Added: 0004070 | |
Nov 20, 2010 11:57 am | Invelios | Note Added: 0004071 | |
Nov 20, 2010 12:19 pm | wyvern83 | Note Added: 0004072 | |
Nov 20, 2010 1:21 pm | wyvern83 | Note Added: 0004075 | |
Nov 20, 2010 1:22 pm | keith.lamothe | Note Added: 0004076 | |
Nov 20, 2010 1:22 pm | keith.lamothe | Status | assigned => resolved |
Nov 20, 2010 1:22 pm | keith.lamothe | Resolution | open => fixed |
Nov 20, 2010 1:22 pm | Chris_McElligottPark | Note Added: 0004077 | |
Nov 20, 2010 1:23 pm | Chris_McElligottPark | Note Added: 0004078 | |
Nov 20, 2010 1:24 pm | wyvern83 | Note Edited: 0004075 | |
Nov 20, 2010 1:26 pm | wyvern83 | Note Added: 0004082 | |
Nov 20, 2010 1:42 pm | Invelios | Note Added: 0004084 | |
Nov 20, 2010 2:21 pm | wyvern83 | Note Added: 0004094 | |
Apr 14, 2014 9:27 am | Chris_McElligottPark | Category | Bug - Crash or Exception => Crash/Exception |