Jump to content

Editor bug with fairings


Recommended Posts

Hello, I do not know if this is a known bug, but I've been able to reproduce it consistently.

I use a octagonal probe core, put a 1.25m fairing on top of it, upside down, and right click.

Then, I stack a girder segment underneath the probe core (the girder that's unlocked from the beginning of the game) and strap a mystery goo experiment on the side of it.

After that, I place a 1.25m fairing at the base of the contraption, and make the fairing go to the other fairing base (like an interstage).

From this point, I just have to grab the girger segment, put it back right where it was, and I cannot move any part in the VAB anymore. I cannot add any from the side menu either, but I can still right click on the objects and animate them, edit and delete fairings.

Quitting and reentering the VAB does not solve the problem.

In the debug console, there is this message that appears right after the statement of what have been done.

[Exception]: InvalidOperationException: Operation is not valid due to the current state of the object

It can appear just after the generation of a fairings drag cube, or just after the update of the part count.

Edited by Vindelle_Sunveam
Link to comment
Share on other sites

Getting the exact same bug myself, and the exact same InvalidOperationException in KSP.log.


[LOG 22:00:57.511] ---DockingAsDecoupler : 2
[LOG 22:01:05.794] fuelTank2-2 added to ship - part count: 104
[EXC 22:01:05.799] InvalidOperationException: Operation is not valid due to the current state of the object
System.Linq.Enumerable.Last[FairingXSection] (IEnumerable`1 source)
ModuleProceduralFairing+.MoveNext ()
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
ModuleProceduralFairing:scheduleReconnect()
ModuleProceduralFairing:<SetupEditorFSM>m__19B()
KerbalFSM:RunEvent(KFSMEvent)
ModuleProceduralFairing:onInterstageReattach()
Part:onAttach(Part, Boolean)
EditorLogic:attachPart(Part, )
EditorLogic:<SetupFSM>m__CD()
KerbalFSM:RunEvent(KFSMEvent)
KerbalFSM:updateFSM(KFSMUpdateMode)
KerbalFSM:UpdateFSM()
EditorLogic:Update()

This has been happening a lot. I'm having to restart KSP 10 or 20 times to successfully finish any rocket that involves fairings.

Link to comment
Share on other sites

  • 3 weeks later...

Seeing similar error with same VAB symptoms. Using on fairing and up to LEM. After clicking close cannot select parts either on ship or in toolbox. Has nothing to do with 2 fairings.


fairingSize1 added to ship - part count: 53

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)

InvalidOperationException: Operation is not valid due to the current state of the object
at System.Linq.Enumerable.Last[FairingXSection] (IEnumerable`1 source) [0x00000] in <filename unknown>:0

at ModuleProceduralFairing+.MoveNext () [0x00000] in <filename unknown>:0
UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
ModuleProceduralFairing:scheduleReconnect()
ModuleProceduralFairing:<SetupEditorFSM>m__19B()
KerbalFSM:RunEvent(KFSMEvent)
ModuleProceduralFairing:onSelfReattach()
Part:onAttach(Part, Boolean)
EditorLogic:attachPart(Part, )
EditorLogic:<SetupFSM>m__CD()
KerbalFSM:RunEvent(KFSMEvent)
KerbalFSM:updateFSM(KFSMUpdateMode)
KerbalFSM:UpdateFSM()
EditorLogic:Update()

(Filename: Line: -1)

Link to comment
Share on other sites

  • 7 months later...

I just today got the nest version (I was still on 0.90) and of course immediately tried using the fairings, and immediately got the same bug. I attached and closed a fairing in the VAB, then I couldn't edit any parts. I could still flip through the part lists or right click existing parts, but I couldn't move or place new. Has anyone found a way to fix this? 

Link to comment
Share on other sites

Sorry I didn't include that, but my computer isn't hooked up to the Internet right now, so I can't upload a file quite so easily... I'll copy what I can by hand, but I apologize it's not ideal. 

When I hit alt+f12, the debug says "[Exception] InvalidOperationException: Operation is not valid due to the current state of the object"

In the output log, I found where it says the same thing, followed by:

at System.Linq.Enumerable.Last[FairingXSection] (IEnumerable`1 source) [0x00000] in <filename unknown>:0

at ModuleProceduralFairing+|□.Movement () [0x00000] in <filename unknown>:0

The "|□" in the second line are symbols I can't recreate on my phone. First one is a double ended arrow, pointing up and down. 

It bears noting that this happens after grabbing and placing the fairing a couple times. Sometimes after only a couple times, sometimes after several. 

Looking again, the section of my output log is exactly the same as in Gristle's post above, except for slightly different values after "SetupFSM"

Again, I'm so sorry that I can't conveniently upload the files for you to look at. I hope this was able to give you enough information anyway. 

Link to comment
Share on other sites

Okay, there is an input lock when building a fairing, and the steps above can cause it to engage but not be cleared.

Just open the debug window with alt and F12, click on the input lock stack and click the button to clear it.

You'll be able to pick up parts again after that.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...