-
Notifications
You must be signed in to change notification settings - Fork 69
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
Principia does not run in debug KSP #3436
Comments
This NRE gets spammed while in a save:
|
For the uninformed: what is "debug KSP" and where do I buy one? |
It is running KSP's unity in debug mode. cf. https://gist.github.com/gotmachine/d973adcb9ae413386291170fa346d043 |
I think it needs lazy initialization of |
Essentially yes. You're instantiating Unity objects during the Plotter constructor [static declarations at the class level], which is not allowed. The exception is swallowed or suppressed in non-debug mode. More appropriate would be to put those initializations into a new |
I suspect the issue was introduced in #3303.
#3201 is also suspect.What I believe to the cause (apologies for screenshot-of-code):
cc @StonesmileGit
The text was updated successfully, but these errors were encountered: