View Issue Details

IDProjectCategoryLast Update
0025480AI War 2Crash/ExceptionAug 5, 2021 5:05 pm
ReporterZweihand Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product VersionBeta 3.503 Multiplayer Sound 
Fixed in VersionBeta 3.504 Multiplayer Achievements 
Summary0025480: Ship counts go up whenever an Int32 negative out of bounds exception hits.
DescriptionWhenever this exception hits, ship counts goes up. Might be leading to save data corruption.

8/5/2021 1:52:04 PM 3.503 SINGLEP Tried to write Int32 PosExceptNeg1, but passed value was: -17, which is out of range! Value set to -1 so your save would work. FieldNameForErrors: RelatedEntityID
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at Arcen.Universal.ArcenDebugging.ArcenLog_InnerOnMainThreadOnly (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity, System.DateTime Timestamp) [0x00000] in <e6c263c3478540379b40cbd8b3af8103>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e6c263c3478540379b40cbd8b3af8103>:0
  at Arcen.Universal.ArcenSerializationBuffer.AddInt32 (Arcen.Universal.ReadStyle RStyle, System.Int32 Item, System.String FieldNameForErrors) [0x00000] in <e6c263c3478540379b40cbd8b3af8103>:0
  at Arcen.AIW2.Core.GameCommand.SerializeTo_AlwaysForNetworkNeverDisk (Arcen.Universal.ArcenSerializationBuffer Buffer) [0x00000] in <da12c8ad86e4427c9c029187bdba6942>:0
  at Arcen.AIW2.Core.AIWar2Networking.OnClient_SendClientCommandsToServer () [0x00000] in <da12c8ad86e4427c9c029187bdba6942>:0
  at Arcen.AIW2.Core.World_AIW2.OnClient_SendClientCommandsAndSuchToServer () [0x00000] in <da12c8ad86e4427c9c029187bdba6942>:0
  at Arcen.AIW2.External.SimPlannerImplementation.DoActualSimStep (System.Boolean& stalledWaitingOnConnections, System.Boolean& mayUpdateVisuals, System.String& reasonForNoVisualUpdates) [0x00000] in <fbc92d115f3d40dc9fcb12b8381cd65c>:0
  at Arcen.AIW2.Core.Engine_AIW2.ProcessSimStep (System.Boolean& stalledWaitingOnConnections, System.String& reasonForNoVisualUpdates) [0x00000] in <da12c8ad86e4427c9c029187bdba6942>:0
  at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x00000] in <e6c263c3478540379b40cbd8b3af8103>:0
  at Arcen.AIW2.Core.ArcenGameControllerBase.BaseUpdate () [0x00000] in <da12c8ad86e4427c9c029187bdba6942>:0
  at ArcenGameController.Update () [0x00000] in <a6cba12c7f0b4f47a1ff69cb43a03552>:0
TagsNo tags attached.

Activities

Zweihand

Aug 5, 2021 4:56 pm

reporter  

Chris_McElligottPark

Aug 5, 2021 5:05 pm

administrator   ~0062623

Using that save, I could not duplicate the problem. So I moved this to a new way to find the problem in the future if it strikes again.

Thanks!

* Somehow it is still possible to get references to the FakeEntity added into commands. Really not sure how yet!
** The most obvious theory is "a savegame that was loaded in versions 3.500 through 3.502," but potentially stuff started fresh on 3.503 still has this error somehow.
** Since we have very little information at the moment right now, we have it give a better that starts out "Oi! Tried to serialize a reference to the FakeEntity! How did this even get into the GameCommand queue?" and then gives the full details of the GameCommand. So that way we can at least figure out where those are coming from.
** Experiencing this exception should have no negative consequences other than the error log spam. If something else happens (spiraling ship counts, whatever), then that might actually be a separate bug, or it might be related to "what the heck is the FakeEntity doing over there in the first place?" We'll find out as folks duplicate this in the next version.

Issue History

Date Modified Username Field Change
Aug 5, 2021 4:56 pm Zweihand New Issue
Aug 5, 2021 4:56 pm Zweihand File Added: Ship counts going up .save
Aug 5, 2021 5:05 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Aug 5, 2021 5:05 pm Chris_McElligottPark Status new => resolved
Aug 5, 2021 5:05 pm Chris_McElligottPark Resolution open => fixed
Aug 5, 2021 5:05 pm Chris_McElligottPark Fixed in Version => Beta 3.504 Multiplayer Achievements
Aug 5, 2021 5:05 pm Chris_McElligottPark Note Added: 0062623