View Issue Details

IDProjectCategoryLast Update
0025989AI War 2Crash/ExceptionDec 20, 2021 4:51 pm
ReporterUFO Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 3.768 Ironman And Doomsday 
Fixed in VersionBeta 3.770 Bug Roasting 
Summary0025989: Exception during the game
Description
12/19/2021 3:11:24 PM 3.768 SINGLEP DELAYED36 TID48 Hit exception System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.AISentinelsFactionBaseInfo.PlanWave_OrGetNull (Arcen.AIW2.Core.ArcenHostOnlySimContext Context, System.Int32 budget, Arcen.AIW2.External.PlannedWaveOptions Options) [0x0041f] in <2df6b9a3e2c1430896138ebb2ce15954>:0 in PlanWave. DebugCode 415
12/19/2021 3:11:34 PM 3.768 SINGLEP DELAYED37 TID33 Memory leak detected at RapidAntiLeakPoolable 'AISentinelsFactionBaseInfoWavePlanning-possibleSpawnPoints' of type Arcen.Universal.ProtectedKeyValuePairList`2[Arcen.AIW2.External.PlanetWaveComposition,Arcen.AIW2.Core.Planet]
TagsNo tags attached.

Relationships

child of 0025884 resolvedChris_McElligottPark Parent: Todo prior to beta exit 

Activities

UFO

Dec 19, 2021 6:22 am

reporter  

1.save (221,775 bytes)

Chris_McElligottPark

Dec 19, 2021 11:39 am

administrator   ~0063523

Thanks!

* Hardened some of the wave launch code against a couple of types of exceptions that were possible.

tom.prince

Dec 20, 2021 1:16 am

developer   ~0063527

This is actually a real issue with wave planning.

AISentinelsFactionBaseInfo_WavePlanning.ChooseWaveTarget is currently broken, since you are using a ProtectedList<PlanetWaveComposition> in it, but trying to return a value from that list, so it gets cleared before the caller can look at it.

This appears to have been introduced in r15284. The code in r15309 papers over the error reported in the UI, but the non-cleanup bits of it should probably be reverted, since the errors reported were a real bug.

Chris_McElligottPark

Dec 20, 2021 4:51 pm

administrator   ~0063530

Thanks!

* Fixed several errors that could happen during wave generation, which were also causing waves to either not be launched or to be launched with zero strength.

Issue History

Date Modified Username Field Change
Dec 19, 2021 6:22 am UFO New Issue
Dec 19, 2021 6:22 am UFO File Added: 1.save
Dec 19, 2021 11:39 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Dec 19, 2021 11:39 am Chris_McElligottPark Status new => resolved
Dec 19, 2021 11:39 am Chris_McElligottPark Resolution open => fixed
Dec 19, 2021 11:39 am Chris_McElligottPark Fixed in Version => Beta 3.769 Neinzul Custodians And Total Conversions
Dec 19, 2021 11:39 am Chris_McElligottPark Note Added: 0063523
Dec 20, 2021 1:16 am tom.prince Status resolved => confirmed
Dec 20, 2021 1:16 am tom.prince Note Added: 0063527
Dec 20, 2021 1:24 am tom.prince Relationship added child of 0025884
Dec 20, 2021 1:25 am tom.prince Resolution fixed => open
Dec 20, 2021 4:51 pm Chris_McElligottPark Status confirmed => resolved
Dec 20, 2021 4:51 pm Chris_McElligottPark Resolution open => fixed
Dec 20, 2021 4:51 pm Chris_McElligottPark Fixed in Version Beta 3.769 Neinzul Custodians And Total Conversions => Beta 3.770 Bug Roasting
Dec 20, 2021 4:51 pm Chris_McElligottPark Note Added: 0063530