View Issue Details

IDProjectCategoryLast Update
0026751AI War 2Crash/ExceptionApr 4, 2022 5:30 pm
ReporterLord Of Nothing Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version4.006 Careful Of That Federation! 
Fixed in Version4.011 Multiplayer Stability 
Summary0026751: Random exception on quitting game
DescriptionThis has happened twice in the last version or two, but I only have the debug for the new one. I was starting and quitting quite a few games after using the see all debug (Trying to get a good gaemstate for another bug chase) when I quit to main menu and this popped up. Note reloading the same game and repeating that a few more times did not replicate the error for me.

3/19/2022 3:57:38 PM 4.006 SINGLEP DELAYED53 TID20 Start Generate FULL Map with D18Bubbles and seed 631927049 and planet count 80 and 18 factions (StartingMainGameAfterLobby NotLoadingAnything) Logging OFF
3/19/2022 3:57:38 PM 4.006 SINGLEP DELAYED54 TID20 Generate FULL Map Complete 223ms Seed: 631927049
3/19/2022 3:57:39 PM 4.006 SINGLEP DELAYED55 TID10 Added new fleet: countOfFleetsActuallyHere: 0 intendedNumberOfFleets: 1 PlayerCustomCityFedMobile
3/19/2022 3:58:03 PM 4.006 SINGLEP
Memory Profile Debug Data On Game Exit:
Game Version: 4006_DeadlockRemoval
Multiplayer Status: SinglePlayerOnly
==========================================
==========================================

3/19/2022 3:58:03 PM 4.006 SINGLEP Exception in AIWar2Networking.HandleMessage: messageType: FromClientToServer_SendMyNextCommandBatch IsFromSelfWithoutNetwork: True senderNetworkID: 0 CoreNetworkMessageType: GameSpecific buffer.GetLengthOfCurrentChunk(): 512000 Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.GameCommand.DeserializeFrom_AlwaysForNetworkNeverDisk (Arcen.Universal.SerMetaData MetaData, Arcen.Universal.ArcenDeserializationBuffer Buffer, Arcen.Universal.SerializationCommandType SerializationCmdType, System.Boolean HasJustRecievedThisFromAClient) [0x0003b] in <6d8e39d74ff24478bdb5c1a529f1cb19>:0
  at Arcen.AIW2.Core.AIWar2Networking.HandleMessage (System.Int64 UniqueMessageIDFromSender, System.Boolean IsFromSelfWithoutNetwork, System.UInt32 senderNetworkID, Arcen.Universal.ArcenNetworkMessageType CoreNetworkMessageType, Arcen.Universal.ArcenDeserializationBuffer buffer) [0x0012d] in <6d8e39d74ff24478bdb5c1a529f1cb19>:0
3/19/2022 3:58:03 PM 4.006 SINGLEP Clearing player accounts.

TagsNo tags attached.

Activities

Chris_McElligottPark

Apr 4, 2022 5:30 pm

administrator   ~0065740

This should also be fixed by my other changes in this build. Thanks!

* At last, seem to have fixed a general multiplayer error that was initially having clients get "corrupted seeming" game commands, but really was a matter of those having been partly put back in the pool already. Essentially this was a client-only threading issue, and related to how we used a pair of rotating queues.
** Instead of using a pair of rotating queues, it now uses a single queue, and then a feeder working list, and this dodges the timing issues entirely (and is just as efficient).
** This particular bug was what was causing the flood of errors on some MP clients some of the time recently (the flood of errors was actually good, because it meant that we were finding out about the issue rather than executing malformed gamecommands).
** Apparently this could also lead to a rare nullref in single player.

Issue History

Date Modified Username Field Change
Mar 19, 2022 12:04 pm Lord Of Nothing New Issue
Mar 19, 2022 12:05 pm Lord Of Nothing Description Updated
Mar 19, 2022 12:10 pm Lord Of Nothing Description Updated
Apr 4, 2022 5:30 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Apr 4, 2022 5:30 pm Chris_McElligottPark Status new => resolved
Apr 4, 2022 5:30 pm Chris_McElligottPark Resolution open => fixed
Apr 4, 2022 5:30 pm Chris_McElligottPark Fixed in Version => 4.011 Multiplayer Stability
Apr 4, 2022 5:30 pm Chris_McElligottPark Note Added: 0065740