ferram4 / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
237 stars 131 forks source link

NRE: Wing interaction #218

Closed dhardy closed 6 years ago

dhardy commented 6 years ago

FAR's in-editor analysis won't draw plots and just shows zeros everywhere for static analysis.

Excerpt from the log:

[LOG 14:27:32.175] Set section name to: New Section 1
[LOG 14:27:32.175] 9/24/2017 2:27:32 PM,ExtensiveEngineerReport,Run Tests
[LOG 14:27:32.178] FAR Raycast mask: -2147450877 -2147450873
[LOG 14:27:32.182] Set section name to: New Section 1
[LOG 14:27:32.182] 9/24/2017 2:27:32 PM,ExtensiveEngineerReport,Run Tests
[LOG 14:27:32.184] Set section name to: New Section 1
[LOG 14:27:32.184] 9/24/2017 2:27:32 PM,ExtensiveEngineerReport,Run Tests
[EXC 14:27:32.186] NullReferenceException: Object reference not set to an instance of an object
    CompoundPart.GetPartColliders ()
    ferram4.FARPartModule.TriggerPartColliderUpdate ()
    ferram4.FARPartModule.get_PartColliders ()
    ferram4.FARWingInteraction.ExposureHitDetectionAndWingDetection (UnityEngine.RaycastHit[] hits, System.Collections.Generic.List`1 vesselPartList, System.Double& exposure, Double exposureDecreasePerHit)
    ferram4.FARWingInteraction.ExposureInChordDirection (ferram4.FARWingAerodynamicModel[]& nearbyWings, Vector3 rayDirection, System.Collections.Generic.List`1 vesselPartList, Single b_2, Single MAC, Single TaperRatio, Single MidChordSweep)
    ferram4.FARWingInteraction.UpdateWingInteraction (System.Collections.Generic.List`1 VesselPartList, Boolean isSmallSrf)
    ferram4.FARWingAerodynamicModel.UpdateThisWingInteractions ()
    ferram4.FARWingAerodynamicModel.StartInitialization ()
    ferram4.FARWingAerodynamicModel.Initialization ()
    ferram4.FARPartModule.Start ()
[LOG 14:27:32.186] Set section name to: New Section 1
[LOG 14:27:32.186] 9/24/2017 2:27:32 PM,ExtensiveEngineerReport,Run Tests
[EXC 14:27:32.189] NullReferenceException: Object reference not set to an instance of an object
    CompoundPart.GetPartColliders ()
    ferram4.FARPartModule.TriggerPartColliderUpdate ()
    ferram4.FARPartModule.get_PartColliders ()
    ferram4.FARWingInteraction.ExposureHitDetectionAndWingDetection (UnityEngine.RaycastHit[] hits, System.Collections.Generic.List`1 vesselPartList, System.Double& exposure, Double exposureDecreasePerHit)
    ferram4.FARWingInteraction.ExposureInChordDirection (ferram4.FARWingAerodynamicModel[]& nearbyWings, Vector3 rayDirection, System.Collections.Generic.List`1 vesselPartList, Single b_2, Single MAC, Single TaperRatio, Single MidChordSweep)
    ferram4.FARWingInteraction.UpdateWingInteraction (System.Collections.Generic.List`1 VesselPartList, Boolean isSmallSrf)
    ferram4.FARWingAerodynamicModel.UpdateThisWingInteractions ()
    ferram4.FARWingAerodynamicModel.StartInitialization ()
    ferram4.FARWingAerodynamicModel.Initialization ()
    ferram4.FARPartModule.Start ()
dhardy commented 6 years ago

Hmm, removing and replacing some of the wing parts seems to have fixed this.

ferram4 commented 6 years ago

I assume that you have some sort of reliable reproduction steps if you were able to find a way around it, yes? Could I have those?

dhardy commented 6 years ago

Sorry, no. If the stack traces aren't enough then just close this.

ferram4 commented 6 years ago

Alright then.