-
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
DockingPort:undock causes crash #1321
Comments
Same behavior is encountered via |
Can you post the log file that goes along with this error? Internal errors should be logged to KSP.log which will tell us where to start looking. |
|
Looks like we may have to just wrap that method. The exception is being thrown from within KSP itself at a point where we don't have any parameters to pass to KSP. I did a quick peek using ILSpy, and it looks like there's a 2nd method called
There's some obfuscation going on there, but essentially it looks like "If the undock event is active, execute
The exeception is coming from within the Part's definition though, not |
I just had opportunity to test this on the current development build, and I cannot seem to get it replicated. @gisikw could you please test again using the most recent develop branch? For background, did it seem to be happening every time when you tested it before, or was it intermittent? |
Unfortunately, I'm still encountering the same issue on the latest develop. Test Craft
|
Oh, and to your latter question, no it was/is happening consistently. |
Hm, it's an important piece of information that the error is occurring with parts that were never "docked" in flight, but rather were put together in the editor. [That is to say, this is an "unusual" case in that it isn't the primary function of "docking", not saying that it's a particularly big deal that the detail was omitted from the initial report just identifying it] I've got it throwing the exception now, however I can't make it break using |
Ah, hmm, yeah, I originally encountered the issue when decoupling a ship in orbit, in order to fit stuff within fairings. The craft I linked was created afterward just for testing.
Testing against ports that I know were docked in orbit, So yeah, it looks like at present, |
The really strange thing is that we haven't touched the docking port code in the last 2 months, so we didn't "accidentally" fix it. I'm trying to figure out a way to detect when to use "decouple" vs "undock", I may just end up having to poll the event visibility (since "undock" is hidden in the gui at that point). |
Yeah, it's weird. I had used undock for a video, with VAB-docked ports, and it ran fine, on 0.18.1 (I think). Then on 0.18.2 and develop, it broke, and I couldn't see any tweaks that would explain the change in behavior :-/ |
Can be reproduced on a simple CPU+Probe+DockingPort craft on the launchpad.
SHIP:DOCKINGPORTS[0]:UNDOCK
The part does indeed undock, but the program crashes with the following error:
Encountered this behavior both on develop, and in a clean install of the 0.18.2 release.
The text was updated successfully, but these errors were encountered: