View Issue Details

IDProjectCategoryLast Update
0023593AI War 2Crash/ExceptionAug 29, 2020 5:01 pm
ReporterTechSY730 Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.127 Cranky AI Exceptions 
Fixed in Version2.130 Civilian Industries 
Summary0023593: Occasional Exception
DescriptionPlatform: Ubuntu Linux 20.04

Appears many, many times in the log

8/27/2020 10:55:25 AM
Tried to write Int16 PosExceptNeg1, but passed value was: -29503, which is out of range! Value set to -1 so your save would work. (Unknown field being saved)

  at System.Environment.get_StackTrace () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <5bec0e9589b746bd9ad57010329c8909>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <5bec0e9589b746bd9ad57010329c8909>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <5bec0e9589b746bd9ad57010329c8909>:0
  at Arcen.Universal.ArcenSerializationBuffer.AddInt16 (Arcen.Universal.ReadStyle RStyle, System.Int16 Item, System.String FieldNameForErrors) [0x00000] in <5bec0e9589b746bd9ad57010329c8909>:0
#... see attached log for full stack trace
TagsNo tags attached.

Relationships

related to 0023610 resolvedChris_McElligottPark Error message on saving. (Save still works fine.) 
related to 0023493 resolvedChris_McElligottPark Tried to write Int16 PosExceptNeg1, but passed value was: -31018 
related to 0023472 resolvedChris_McElligottPark Error overwriting a save - "Tried to write Int16 PosExceptNeg1..." 
related to 0023466 resolvedChris_McElligottPark Error upon saving 

Activities

TechSY730

Aug 27, 2020 11:59 am

reporter  

ArcenDebugLog.txt (1,408,060 bytes)

Chris_McElligottPark

Aug 27, 2020 12:14 pm

administrator   ~0058199

Thanks! 2.128 will have better logging for this, but not fix it.

* Put in extra logging for the SpeedGroup serialization and deserialization, to figure out where there are occasional exceptions being logged.

Chris_McElligottPark

Aug 29, 2020 4:11 pm

administrator   ~0058262

Sweet! Someone else hit this in 0023610, and now I can tell that it was the OverrideSpeedLimit field since we have the extra logging in there.

Chris_McElligottPark

Aug 29, 2020 5:01 pm

administrator   ~0058277

Thanks!

* It is now possible that your logs will wind up having the message "BUG: overriding speed limit for group X to [a negative number below -1]. Overflow? Setting to -1 instead."
** If this is frequent, it may slow down your game, but the stack traces will let us know where we are going wrong and causing this to happen.
** We fixed one area where MAYBE this could be caused, but probably that was not possible in the place we fixed it. Most likely the problem is in something that is calling GameCommand_CreateSpeedGroup with a command.RelatedIntegers[0] that is greater than the 32767.
*** With that in mind, anything that is larger than that being passed into that method is now automatically corrected down to 32766. This may lead to some turbo speed groups, not sure, but at least they won't be erroring... and that IS what the calling code is asking for, so maybe it's intentional?
** At the same time, in some other places in the code where it was checking to apply the speed only if it was "not -1", it is now checking to apply the speed limit if it is "greater than 0." This seems more like the correct intent, and hopefully won't break anything.
** And beyond that, prior to serialization, any speed groups with an OverrideSpeedLimit less than -1 will automatically just set their value to -1 silently and thus avoid popup errors that could be really annoying in savegames for folks. This has been an issue on and off since July 24th, apparently.

Issue History

Date Modified Username Field Change
Aug 27, 2020 11:59 am TechSY730 New Issue
Aug 27, 2020 11:59 am TechSY730 File Added: ArcenDebugLog.txt
Aug 27, 2020 12:14 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Aug 27, 2020 12:14 pm Chris_McElligottPark Status new => feedback
Aug 27, 2020 12:14 pm Chris_McElligottPark Note Added: 0058199
Aug 29, 2020 4:10 pm Chris_McElligottPark Relationship added related to 0023610
Aug 29, 2020 4:11 pm Chris_McElligottPark Note Added: 0058262
Aug 29, 2020 4:11 pm Chris_McElligottPark Relationship added related to 0023493
Aug 29, 2020 4:13 pm Chris_McElligottPark Relationship added related to 0023472
Aug 29, 2020 4:15 pm Chris_McElligottPark Relationship added related to 0023466
Aug 29, 2020 5:01 pm Chris_McElligottPark Status feedback => resolved
Aug 29, 2020 5:01 pm Chris_McElligottPark Resolution open => fixed
Aug 29, 2020 5:01 pm Chris_McElligottPark Fixed in Version => 2.130 Civilian Industries
Aug 29, 2020 5:01 pm Chris_McElligottPark Note Added: 0058277