View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0025640 | AI War 2 | Crash/Exception | Oct 15, 2021 7:07 am | Oct 15, 2021 9:57 am | |
Reporter | Daniexpert | Assigned To | Chris_McElligottPark | ||
Status | resolved | Resolution | fixed | ||
Product Version | Beta 3.709 Upgrades And Serialization Fix | ||||
Fixed in Version | Beta 3.710 Hotfixes Serialization and Performance | ||||
Summary | 0025640: Invalid Cast Exception | ||||
Description | I found this repeating thread error due to an exception during a combat while hacking an ARS (1st txt). Saving didn't work because it triggered also this (2nd txt). | ||||
Tags | No tags attached. | ||||
|
InvalidCastException.txt (6,241 bytes)
10/15/2021 1:00:41 PM 3.709 SINGLEP CalculateCurrentSpeedLimit_SimpleNPCAIStyle exception at debugStage 20, exception: System.InvalidCastException: Specified cast is not valid. at Arcen.AIW2.Core.SpeedGroup.CalculateCurrentSpeedLimit_SimpleNPCAIStyle () [0x0004c] in <81e7d88b38724d858317997ef6dc3cc8>:0 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 <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.AIW2.Core.SpeedGroup.CalculateCurrentSpeedLimit_SimpleNPCAIStyle () [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.Core.SpeedGroup.CalculateUnitSpeedLimits_HostOnly () [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.External.GameCommand_CreateSpeedGroup.Execute (Arcen.AIW2.Core.GameCommand command, Arcen.AIW2.Core.ArcenClientOrHostSimContextCore context) [0x00000] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.Core.GameCommand.Execute (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.Core.World_AIW2.OnClient_ExecuteGameCommandsReceivedFromServer (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.External.SimPlannerImplementation.ProcessCoreLogicForArbitraryFrameOnMainThread (System.Boolean& stalledWaitingOnConnections, System.Boolean& mayUpdateVisuals, System.String& reasonForNoVisualUpdates) [0x00000] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.Core.Engine_AIW2.ProcessArbitraryFrameOnMainThread (System.Boolean& stalledWaitingOnConnections, System.String& reasonForNoVisualUpdates) [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x00000] in <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.AIW2.Core.ArcenGameControllerBase.BaseUpdate () [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at ArcenGameController.Update () [0x00000] in <a6cba12c7f0b4f47a1ff69cb43a03552>:0 10/15/2021 1:00:42 PM 3.709 SINGLEP DELAYED5: Error in thread for execution context 'executionContext' InvalidCastException Specified cast is not valid. ===STACK FRAMES (with file info)=== FILE METHOD IL_OFFSET NATIVE_OFFSET LINE_NUMBER COLUMN_NUMBER CheckForDestruction_HostOnly 70 242 0 0 DoSpeedGroupLogic_HostOnly 48 154 0 0 <DoWorldSecondLogic_FromSimBGThread>b__3 58 194 0 0 DoForFactions 18 83 0 0 DoWorldSecondLogic_FromSimBGThread 178 1114 0 0 DoWorld_Second_PerSecondLogic 101 386 0 0 DoWorldStepLogic_ClientOrHost_FromSimBGThread 169 466 0 0 Execute 230 650 0 0 ===RAW STACK TRACE=== at Arcen.AIW2.Core.SpeedGroup.CheckForDestruction_HostOnly () [0x00046] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.Core.Faction.DoSpeedGroupLogic_HostOnly () [0x00030] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo+<>c__DisplayClass67_0.<DoWorldSecondLogic_FromSimBGThread>b__3 (Arcen.AIW2.Core.Faction faction) [0x0003a] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.Core.World_AIW2.DoForFactions (Arcen.AIW2.Core.Faction+ProcessorDelegate Processor) [0x00012] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoWorldSecondLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x000b2] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoWorld_Second_PerSecondLogic (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00065] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoWorldStepLogic_ClientOrHost_FromSimBGThread (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x000a9] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.External.SimExecution.Execute () [0x000e6] in <cc586a47a9404ef6a72c230e971f279f>:0 at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.Universal.ArcenDebugging.LogException (System.Exception e, System.String message, Arcen.Universal.Verbosity verbosity) [0x00000] in <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.AIW2.External.SimExecution.Execute () [0x00000] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext.InnerRun () [0x00000] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.External.ArcenExecutionContext.InnerRun () [0x00000] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <cc586a47a9404ef6a72c230e971f279f>:0 at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 InvalidCastException_inSaveGame.txt (3,327 bytes)
10/15/2021 1:03:26 PM 3.709 SINGLEP Execute error in 'SaveGame': System.InvalidCastException: Specified cast is not valid. at Arcen.AIW2.Core.SpeedGroup.CheckForDestruction_HostOnly () [0x00046] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.Core.SpeedGroup.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer) [0x00014] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.Core.Faction.SerializeFactionTo (Arcen.Universal.ArcenSerializationBuffer Buffer, Arcen.Universal.SerializationCommandType SerializationCmdType) [0x00536] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.Core.World_AIW2.SerializeWorldTo (Arcen.Universal.ArcenSerializationBuffer Buffer, Arcen.Universal.SpecialSerializationType SpecialSerialization, Arcen.Universal.SerializationCommandType SerializationType) [0x004b1] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.Universal.World.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, Arcen.Universal.SpecialSerializationType SpecialSerialization, Arcen.Universal.SerializationCommandType SerializationType) [0x003be] in <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.Universal.World.SaveWorldToDisk (System.String SaveName, Arcen.Universal.List`1[T] SavegameMetadata) [0x000f9] in <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.AIW2.External.GameCommand_SaveGame.Execute (Arcen.AIW2.Core.GameCommand command, Arcen.AIW2.Core.ArcenClientOrHostSimContextCore context) [0x0002e] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.Core.GameCommand.Execute (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00058] in <81e7d88b38724d858317997ef6dc3cc8>:0 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 <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.AIW2.Core.GameCommand.Execute (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.Core.World_AIW2.OnClient_ExecuteGameCommandsReceivedFromServer (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.AIW2.External.SimPlannerImplementation.ProcessCoreLogicForArbitraryFrameOnMainThread (System.Boolean& stalledWaitingOnConnections, System.Boolean& mayUpdateVisuals, System.String& reasonForNoVisualUpdates) [0x00000] in <cc586a47a9404ef6a72c230e971f279f>:0 at Arcen.AIW2.Core.Engine_AIW2.ProcessArbitraryFrameOnMainThread (System.Boolean& stalledWaitingOnConnections, System.String& reasonForNoVisualUpdates) [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x00000] in <e06e57cb32c54499a0e637a756a639a7>:0 at Arcen.AIW2.Core.ArcenGameControllerBase.BaseUpdate () [0x00000] in <81e7d88b38724d858317997ef6dc3cc8>:0 at ArcenGameController.Update () [0x00000] in <a6cba12c7f0b4f47a1ff69cb43a03552>:0 |
|
Also, after reloading an earlier autosave, the threads didn't run anymore, so I had to reboot the game. |
|
Thanks! * Fixed a number of invalid cast exceptions and similar relating to the changes to SpeedGroup in the prior game. Essentially this made it so that you could not save, or really play all that long. Facepalm. |
Date Modified | Username | Field | Change |
---|---|---|---|
Oct 15, 2021 7:07 am | Daniexpert | New Issue | |
Oct 15, 2021 7:07 am | Daniexpert | File Added: InvalidCastException.txt | |
Oct 15, 2021 7:07 am | Daniexpert | File Added: InvalidCastException_inSaveGame.txt | |
Oct 15, 2021 7:11 am | Daniexpert | Note Added: 0062941 | |
Oct 15, 2021 7:11 am | Daniexpert | File Added: 2021-10-15 13_09_15-AIWar2.png | |
Oct 15, 2021 7:11 am | Daniexpert | File Added: 2021-10-15 13_09_25-AIWar2.png | |
Oct 15, 2021 9:57 am | Chris_McElligottPark | Assigned To | => Chris_McElligottPark |
Oct 15, 2021 9:57 am | Chris_McElligottPark | Status | new => resolved |
Oct 15, 2021 9:57 am | Chris_McElligottPark | Resolution | open => fixed |
Oct 15, 2021 9:57 am | Chris_McElligottPark | Fixed in Version | => Beta 3.710 Hotfixes Serialization and Performance |
Oct 15, 2021 9:57 am | Chris_McElligottPark | Note Added: 0062942 |