-
Notifications
You must be signed in to change notification settings - Fork 230
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
Tried to push NaN into the stack #2695
Comments
Would need more of the code to try to find the specific cause of the problem. But it might be something like you are saving the reference to the first node and then once execute and remove the first node you don't update the reference to the 2nd node when said node is made. |
I’m running into the exact same issue (likely using the exact same script). The code being run is: https://github.com/xeger/kos-ramp/blob/master/ramp/landvac.ks#L126-L132 I run the same script (from a quicksave point) over and over, and about 50% of the time I get this error. Trying to dump the contents of the node variables shows everything is in order until you try to read the value of |
Does anything show up in the KSP log files when the script fails? |
Yes, there is quite a bit in the logs when the issue happens:
I do have some mods, but actively running at the time, and nothing in this log stands out as interference from a mod AFAICT. |
Right just did some testing and I think this is a KSP bug that only happens when you try to create a maneuver that exactly counters the orbital velocity at that given point in time. The way it only happens some of the time makes me think the bug is caused by some race condition within KSP it's self. I did discover a workaround for the bug and that was to modify the DV slightly I recommend dividing by This is the code I used to replicate the bug. The first 6 lines are just cleanup from a previous run and set up for the current run, only the
Additional notes on reproduction: The craft running the script was in a mostly circular (eccentricity about 0.001) in an equatorial orbit. The script doesn't always thrown an error on the first run through hence why it is in a loop, hence why I suspect a race condition of some kind. IPU appeared to not affect reproduction. |
Workaround proposed by @nuggreat is used. See this issue for details KSP-KOS/KOS#2695
The comments indicate this is not a bug in kOS but in KSP and there's not much we can do about it. |
Hi,
I'm getting this error when trying to access
nextnode:deltav:mag
.I have such code
Which leads to the following results (the first run it works fine, but another it throws the error).
This error happens each second time I run my scenario, and the node is not empty, but
deltav
vector is empty for unknown for me reasons.I tried to reproduce it, like below, but it works.
Any idea?
The text was updated successfully, but these errors were encountered: