-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Log spam when editing nodes #3
Comments
Tried this, didn't help at all. |
Inserting extra markers at The messages only seem to start up once you drag one of the handles; several seconds elapse in the log between the exception that marks the opening of the editor and the start of the log spam. So maybe they're generated when the solver updates its flight plan? But why only here and not when stock does it? To be continued... Tried removing |
I think this is related to the fix from 8669492; the flight plan ends up with a NaN orbit because the starting body gets in the way of the dummy vessel's maneuvers. Tried looping over our solver's flight plan in Tried using the celestial body's |
Seems to mostly afflict newly created orbits with 0 dV, presumably since the post-maneuver patch then intersects the original orbit a whole lot. Editing my old saved nodes with real transfers doesn't produce spam (as much?). Maybe we could create a "delta V dead zone," where if you get too close to 0, we automatically add some vector to avoid self-intersections? I could imagine defaulting a new node to 100 m/s prograde, and if you increase that, it would be fine; if you decrease it, then we jump you to -100 m/s prograde (=100 m/s retrograde), so you can still set up both inwards and outwards transfers, just nothing too close to your starting body's orbit. Could even attempt to trigger that behavior by searching the flight plan for NaN orbits. Or maybe we could increase and decrease the number of allowed flight node patches based on whether real encounters have been found? Start with 2 to account for the initial orbit and one maneuver, and then if we find the patch ending in an encounter, make sure it's real, and if so, increase the limit? |
Tried setting up a 100 m/s dead zone and then 500 m/s. Log still spammed. |
I guess as a last resort, I could try to write a replacement for |
Or, |
Fixed in e9f6809. |
Background
PlanningNode version: 0.1.2
KSP version: 1.11
Problem
LOTS of these messages (a user reported 1 MB/s; I saw a 13 MB total log after testing) are filed to the log by stock code some of the time while the node editor is active:
It isn't consistent from what I have been able to gather; sometimes it happens, sometimes not.
Cause
The message says that
dT
,tA
,E
,M
, andT
are all NaN, which suggests to me that those are orbital elements of an orbit that hasn't been initialized. Since the orbit is a parameter toTrajectory.UpdateFromOrbit
, it must be originating somewhere in thePatchRendering.UpdatePR
call. So maybe there's a render patch that doesn't have a valid orbit? If we could find that patch, maybe we could setactivePatch = false
to prevent it from being checked like this. Don't know when that should be done, though. BeforePatchedConicRenderer.LateUpdate
, I guess.The text was updated successfully, but these errors were encountered: