Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRE spam when landing a probe #3

Open
linuxgurugamer opened this issue Aug 20, 2018 · 2 comments
Open

NRE spam when landing a probe #3

linuxgurugamer opened this issue Aug 20, 2018 · 2 comments

Comments

@linuxgurugamer
Copy link

I was landing a probe (no crew capability), and this spammed my log:

NullReferenceException
at (wrapper managed-to-native) UnityEngine.AudioSource:set_pitch (single)
at ShipEffectsContinued.SEMaster.Update () [0x00000] in :0

(Filename: Line: -1)

NullReferenceException
at (wrapper managed-to-native) UnityEngine.AudioSource:set_pitch (single)
at ShipEffectsContinued.SEMaster.Update () [0x00000] in :0

@linuxgurugamer
Copy link
Author

Error is happening on this line:

atmosphereGroup.audio.pitch = Mathf.Clamp(airPressure, 0, 1.5f);

@linuxgurugamer
Copy link
Author

I think this is the problem:

I had launched a ship, and in flight, docked to a space station, then undocked, and landed it. During this whole time, I did switch ships.

I would suspect that the following:

group.audio = vessel.gameObject.AddComponent();

which is added when entering the flight scene. But I believe that something is going wrong when the ship is changed or docked/undocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant