Jump to content

24.6 - CTD when equipping soldiers


Solver

Recommended Posts

This save has a repeatable CTD for me. Open the armory screen and try changing the armour of any soldier - it crashes. There's also other weird behaviour in the same screen, for example try to select the MARS and change its equipment. Soldier equipment cannot be changed though it doesn't CTD except for armour. An error flashes by when opening the armory screen so something's weird in the game state.

Possibly related to jetpacks, I constructed the jetpack upgrade and that might be causing the crashes.

equipcrash.json

Relevant stack trace:

System.NullReferenceException: A fatal error occurred during Update[] - Object reference not set to an instance of an object
	 Context: 
	 - Process:global::Artitas.Events.DeltaTimeEvent - DeltaTime Event[dT: 0.0162106]
	 - Process:global::Artitas.Events.DeltaTimeEvent - DeltaTime Event[dT: 0.0164624]
	 - Log:string - Exception in Unity lifecycle, marked as handled: ArgumentException: ItemRequest for: FileSystem::assets/assets/xenonauts/template/strategy/item/aircraft_equipment/torpedo_tier3.json failed because it wasn't attached to an actor or an aircraft.
Parameter name: request 
 Xenonauts.Common.Components.Item.GeoBaseItemRequestStrategy.RequestItem [Artitas.Entity request] [at F:/Jenkins/workspace/X2 [Build]/support-0.74.x/Assets/Code/Screens/Common/Components/Item/ItemRequestComponent.cs:186]
Xenonauts
	 - Request:global::Artitas.GlobalEntity - GlobalEntity 12390
	 - Process:global::Strategy.Systems.ProcessItemRequestsCommand - Strategy.Systems.ProcessItemRequestsCommand 
 - Object reference not set to an instance of an object
  at Code.Screens.Strategy.UI.Components.Armory.ArmoryInventoryController+<IsTileVisible>c__AnonStorey2.<>m__0 (Artitas.Entity otherItem) [0x00011] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Components\Armory\ArmoryInventoryController.cs:238 
  at System.Linq.Enumerable.Any[Entity] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0 
  at Code.Screens.Strategy.UI.Components.Armory.ArmoryInventoryController.IsTileVisible (Optional`1 availableActors, Artitas.Entity item) [0x00064] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Components\Armory\ArmoryInventoryController.cs:238 
  at Code.Screens.Strategy.UI.Components.Armory.ArmoryInventoryController.IsItemControllerVisible (Xenonauts.Strategy.UI.Components.Inventory.ArmoryItemController controller) [0x00096] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Components\Armory\ArmoryInventoryController.cs:213 
  at Common.UI.DataStructures.AUILayoutController`2[Xenonauts.Strategy.UI.Components.Inventory.ArmoryItemController,Artitas.Entity].Filter (Boolean animate) [0x0002e] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Libraries\Common\Code\UI\UIController\AUILayoutController.cs:408 
  at Code.Screens.Strategy.UI.Components.Armory.ArmoryInventoryController.Refresh (Boolean resetScroll) [0x00008] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Components\Armory\ArmoryInventoryController.cs:201 
  at Xenonauts.Strategy.UI.SoldierEditorElement.ProcessDeltaTimeReport (Artitas.Events.DeltaTimeEvent report) [0x00084] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Elements\SoldierEditorElement.cs:310 
  at (wrapper delegate-invoke) System.Func`3<Xenonauts.Strategy.UI.SoldierEditorElement, Artitas.Events.DeltaTimeEvent, UniversalTweenEngine.Timeline>:invoke_Timeline__this___SoldierEditorElement_DeltaTimeEvent (Xenonauts.Strategy.UI.SoldierEditorElement,Artitas.Events.DeltaTimeEvent)

 

Link to comment
Share on other sites

On 10/30/2022 at 10:52 PM, Solver said:

This save has a repeatable CTD for me. Open the armory screen and try changing the armour of any soldier - it crashes. There's also other weird behaviour in the same screen, for example try to select the MARS and change its equipment. Soldier equipment cannot be changed though it doesn't CTD except for armour. An error flashes by when opening the armory screen so something's weird in the game state.

Possibly related to jetpacks, I constructed the jetpack upgrade and that might be causing the crashes.

equipcrash.json 982.34 kB · 0 downloads

Relevant stack trace:

System.NullReferenceException: A fatal error occurred during Update[] - Object reference not set to an instance of an object
	 Context: 
	 - Process:global::Artitas.Events.DeltaTimeEvent - DeltaTime Event[dT: 0.0162106]
	 - Process:global::Artitas.Events.DeltaTimeEvent - DeltaTime Event[dT: 0.0164624]
	 - Log:string - Exception in Unity lifecycle, marked as handled: ArgumentException: ItemRequest for: FileSystem::assets/assets/xenonauts/template/strategy/item/aircraft_equipment/torpedo_tier3.json failed because it wasn't attached to an actor or an aircraft.
Parameter name: request 
 Xenonauts.Common.Components.Item.GeoBaseItemRequestStrategy.RequestItem [Artitas.Entity request] [at F:/Jenkins/workspace/X2 [Build]/support-0.74.x/Assets/Code/Screens/Common/Components/Item/ItemRequestComponent.cs:186]
Xenonauts
	 - Request:global::Artitas.GlobalEntity - GlobalEntity 12390
	 - Process:global::Strategy.Systems.ProcessItemRequestsCommand - Strategy.Systems.ProcessItemRequestsCommand 
 - Object reference not set to an instance of an object
  at Code.Screens.Strategy.UI.Components.Armory.ArmoryInventoryController+<IsTileVisible>c__AnonStorey2.<>m__0 (Artitas.Entity otherItem) [0x00011] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Components\Armory\ArmoryInventoryController.cs:238 
  at System.Linq.Enumerable.Any[Entity] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0 
  at Code.Screens.Strategy.UI.Components.Armory.ArmoryInventoryController.IsTileVisible (Optional`1 availableActors, Artitas.Entity item) [0x00064] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Components\Armory\ArmoryInventoryController.cs:238 
  at Code.Screens.Strategy.UI.Components.Armory.ArmoryInventoryController.IsItemControllerVisible (Xenonauts.Strategy.UI.Components.Inventory.ArmoryItemController controller) [0x00096] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Components\Armory\ArmoryInventoryController.cs:213 
  at Common.UI.DataStructures.AUILayoutController`2[Xenonauts.Strategy.UI.Components.Inventory.ArmoryItemController,Artitas.Entity].Filter (Boolean animate) [0x0002e] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Libraries\Common\Code\UI\UIController\AUILayoutController.cs:408 
  at Code.Screens.Strategy.UI.Components.Armory.ArmoryInventoryController.Refresh (Boolean resetScroll) [0x00008] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Components\Armory\ArmoryInventoryController.cs:201 
  at Xenonauts.Strategy.UI.SoldierEditorElement.ProcessDeltaTimeReport (Artitas.Events.DeltaTimeEvent report) [0x00084] in F:\Jenkins\workspace\X2 (Build)\support-0.74.x\Assets\Code\Screens\Strategy\UI\Elements\SoldierEditorElement.cs:310 
  at (wrapper delegate-invoke) System.Func`3<Xenonauts.Strategy.UI.SoldierEditorElement, Artitas.Events.DeltaTimeEvent, UniversalTweenEngine.Timeline>:invoke_Timeline__this___SoldierEditorElement_DeltaTimeEvent (Xenonauts.Strategy.UI.SoldierEditorElement,Artitas.Events.DeltaTimeEvent)

 

Thanks. We'll take a look.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...