Jump to content

CTD: During meteor storm, Meteor Blaster causes client crash if there are obstructions within firing range (NullReferenceException)


thaipo
  • Branch: Live Branch Version: Windows Fixed

Obstructions within the firing range of Meteor Blasters has a chance to cause a crash.

The likely cause is if a meteor is targeted and fired at, but hits an obstruction before the missile can land, a null reference occurs.

This has been tested with Bunker Doors (save file bug2) and Bunker Tiles (save file bug3)


Game setup example:

image.thumb.png.67fad2037ee863cc85e5904302993a20.png

 

Full exception:

Exception in: (MissileLauncher).MissileLauncher.root.Launch.pst. 
System.NullReferenceException: Object reference not set to an instance of an object
  at MissileLauncher+Instance.SetOreChunk () [0x0000b] in <1f4c5a7d658c4522888fade7e74323ad>:0 
  at MissileLauncher+<>c.<InitializeStates>b__21_14 (MissileLauncher+Instance smi) [0x00000] in <1f4c5a7d658c4522888fade7e74323ad>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00048] in <1f4c5a7d658c4522888fade7e74323ad>:0 

  at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00000] in <1f4c5a7d658c4522888fade7e74323ad>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PushState (StateMachine+BaseState state) [0x00000] in <1f4c5a7d658c4522888fade7e74323ad>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <1f4c5a7d658c4522888fade7e74323ad>:0 
  at StateMachine+Instance.<ScheduleGoTo>b__43_0 (System.Object d) [0x00000] in <1f4c5a7d658c4522888fade7e74323ad>:0 
  at Scheduler.Update () [0x00000] in <1f4c5a7d658c4522888fade7e74323ad>:0 
  at GameScheduler.Update () [0x00000] in <1f4c5a7d658c4522888fade7e74323ad>:0 
Build: U46-552078-V

 


Steps to Reproduce

The AutoImmune Acropolis - bug2.sav The AutoImmune Acropolis - bug3.sav

(fresh save)

  1. Create Meteor Blaster(s), filled with blaster shot, within range of the skylimit
  2. Place tiles / bunker doors above, but within firing range, of meteor blaster(s)
  3. Trigger/wait for a meteor shower.
  4. Crash is more likely to occur with more meteor blasters/blocking tiles

(bug2 & bug3 saves)

  1. Load save file
  2. Wait for a meteor shower to start (notification automation set up already)
  3. Wait for meteor shower to complete; CTD is likely to happen before completion
    • CTD may not happen on the first meteor shower
    • Reload or wait for another meteor shower if CTD does not occur

DxDiag.txt




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Changed Status to Fixed

This should be fixed in the next update. Thanks for the report.

  • Like 3
  • Thanks 1

Share this comment


Link to comment
Share on other sites

@k_nicole : Didn't want to make a new topic, but wanted to ask if it's by design that Meteor Blasters don't start targeting or firing until they're within the build limit. This greatly decreases their usefulness unless rockets are buried much deeper, but I understand if this is a larger simulation problem (ignoring objects outside of the build limit for performance reasons)

image.thumb.png.a3b0e6e033afb085aa81d5f2c5df730e.pngimage.thumb.png.96275e0adebb678792106fe7c0b17a59.png

Share this comment


Link to comment
Share on other sites

@thaipo at the moment it is by design that blasters don't target meteors outside the build limits. The range visualization has been updated to reflect this limitation.

  • Thanks 1

Share this comment


Link to comment
Share on other sites

On 4/17/2023 at 8:19 PM, k_nicole said:

Changed Status to Fixed

This should be fixed in the next update. Thanks for the report.

When is this update supposed to be released? I just had to edit a save game to deactivate the meteor showers from doomsday difficulty because I wouldn't make it through a meteor shower without crash anymore. It was around cycle 1100. 

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...