View Issue Details

IDProjectCategoryLast Update
0029042Heart Of The MachineCrash/ExceptionJul 4, 2024 4:22 pm
Reportermblazewicz Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.564 Finishing The Localization Framework 
Fixed in Version0.565 Preparing And Stunning 
Summary0029042: Exception - Null reference exception encountered when fighting next to repair spiders
DescriptionDescription:
An exception has been encountered when fighting against angered Mechs and several deterrence squads next to the repair spiders.

JobsBasic HandleJob error: ExecuteLogic RepairSpiders' error at DebugStage 0
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.HotM.External.NPCUnit.SetActualContainerLocation (Arcen.HotM.Core.ISimUnitLocation CLoc) [0x00038] in <25f83e0d4a0f448d8338517c6f8a4195>:0
  at Arcen.HotM.External.SimBuilding.SetStatus (Arcen.HotM.Core.BuildingStatus NewStatus) [0x0002a] in <25f83e0d4a0f448d8338517c6f8a4195>:0
  at Arcen.HotM.ExternalVis.JobHelper.HandleStructureAfterRepair (Arcen.HotM.Core.MachineStructure repairedStructure) [0x0007e] in <68cee98f9b62461da9155f5307aef756>:0
  at Arcen.HotM.ExternalVis.JobsBasic.TryHandleJob (Arcen.HotM.Core.MachineStructure Structure, Arcen.HotM.Core.MachineJob Job, Arcen.Universal.ArcenCharacterBufferBase BufferOrNull, Arcen.HotM.Core.JobLogic Logic, Arcen.Universal.MersenneTwister RandOrNull) [0x004fa] in <68cee98f9b62461da9155f5307aef756>:0

Steps to Reproduce:
1. Build repair spiders next to an outpost
2. Build a building requiring deterrence
3. Once a squad of enemies spawned through deterrence appears anger the nearby outpost
4. Fight with the enemies until exception is encountered
TagsNo tags attached.

Activities

mblazewicz

Jul 4, 2024 3:39 pm

manager   ~0069626

Adding attachments:
29042_Logs.txt (1,963,490 bytes)
29042_Save.save (3,800,858 bytes)
29042_Video.mp4 (7,582,740 bytes)   

mblazewicz

Jul 4, 2024 3:47 pm

manager   ~0069627

Last edited: Jul 4, 2024 3:48 pm

This exception can lead to another exception with callstack:

SINGLEP 'BuildModeHandler.HandleDeleteStructureMode Error' error at DebugStage 44300
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.HotM.External.NPCUnit.SetActualContainerLocation (Arcen.HotM.Core.ISimUnitLocation CLoc) [0x00038] in <25f83e0d4a0f448d8338517c6f8a4195>:0
  at Arcen.HotM.External.SimBuilding.SetStatus (Arcen.HotM.Core.BuildingStatus NewStatus) [0x0002a] in <25f83e0d4a0f448d8338517c6f8a4195>:0
  at Arcen.HotM.Core.MachineStructure.ScrapStructureNow (Arcen.HotM.Core.ScrapReason Reason, Arcen.Universal.MersenneTwister Rand) [0x004d0] in <f7a6f46e965943c7ad1dcfc815a72c30>:0
  at Arcen.HotM.ExternalVis.BuildModeHandler.HandleDeleteStructureMode (System.Boolean OnlyDoUIHover) [0x0033c] in <68cee98f9b62461da9155f5307aef756>:0

If player deletes one of the buildings that are being repaired
29042_Logs_B.txt (1,967,308 bytes)

Chris_McElligottPark

Jul 4, 2024 4:22 pm

administrator   ~0069629

This should be fixed, but in the event that it is is not, please reopen this ticket. Thanks!

* Fixed an exception that could happen if a machine structure was rebuilt underneath an npc unit that was standing on it at the exact same instant that the npc unit died.

Issue History

Date Modified Username Field Change
Jul 4, 2024 3:34 pm mblazewicz New Issue
Jul 4, 2024 3:34 pm mblazewicz Status new => assigned
Jul 4, 2024 3:34 pm mblazewicz Assigned To => mblazewicz
Jul 4, 2024 3:39 pm mblazewicz Note Added: 0069626
Jul 4, 2024 3:39 pm mblazewicz File Added: 29042_Logs.txt
Jul 4, 2024 3:39 pm mblazewicz File Added: 29042_Save.save
Jul 4, 2024 3:39 pm mblazewicz File Added: 29042_Video.mp4
Jul 4, 2024 3:39 pm mblazewicz Assigned To mblazewicz => Jan Kuzior
Jul 4, 2024 3:39 pm mblazewicz Description Updated
Jul 4, 2024 3:47 pm mblazewicz Note Added: 0069627
Jul 4, 2024 3:47 pm mblazewicz File Added: 29042_Logs_B.txt
Jul 4, 2024 3:48 pm mblazewicz Note Edited: 0069627
Jul 4, 2024 3:52 pm Jan Kuzior Assigned To Jan Kuzior => Chris_McElligottPark
Jul 4, 2024 4:22 pm Chris_McElligottPark Status assigned => resolved
Jul 4, 2024 4:22 pm Chris_McElligottPark Resolution open => fixed
Jul 4, 2024 4:22 pm Chris_McElligottPark Fixed in Version => 0.565 Preparing And Stunning
Jul 4, 2024 4:22 pm Chris_McElligottPark Note Added: 0069629