Skip to content
This repository was archived by the owner on Oct 26, 2020. It is now read-only.
This repository was archived by the owner on Oct 26, 2020. It is now read-only.

NRE when jettisoned stage gets unloaded #44

Description

@Li0n-0

A null reference exception is thrown when a stage is unloaded :

NullReferenceException at (wrapper managed-to-native) UnityEngine.Transform:INTERNAL_CALL_InverseTransformDirection (UnityEngine.Transform,UnityEngine.Vector3&,UnityEngine.Vector3&) at UnityEngine.Transform.InverseTransformDirection (Vector3 direction) [0x00000] in <filename unknown>:0 at StageRecovery.RecoveryItem.DetermineTerminalVelocity () [0x00000] in <filename unknown>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) StageRecovery.RecoveryItem:DetermineTerminalVelocity() StageRecovery.RecoveryItem:Process() StageRecovery.StageRecovery:VesselDestroyEvent(Vessel) EventData``1:Fire(Vessel) Vessel:Die() Vessel:CheckKill() VesselPrecalculate:MainPhysics(Boolean) VesselPrecalculate:FixedUpdate()

It seems to happen every time, don't matter if the stage is recoverable or not. Happen with stock chute and the one from RealChute.

More info on the KSP forum here and there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions