Jump to content

EVA kerbal destroy throwing UnityEngine.Collider exceptions?


Recommended Posts

This has started popping up whenever I board an eva Kerbal back into a ship...and I don't know why.

[EXC 20:56:06.040] InvalidOperationException: Collection was modified; enumeration operation may not execute.
    System.Collections.Generic.List`1+Enumerator[UnityEngine.Collider].VerifyState ()
    System.Collections.Generic.List`1+Enumerator[UnityEngine.Collider].MoveNext ()
    Part.OnDestroy ()

My only thought is that I've used Part::AddModule("myModuleName") on the kerbalEVA part.  I added three of my own PartModules that way - they're simple modules, nothing to do with collision, just messing with the PartModule::Events.

Is it saying that I've altered the collection of Colliders by adding PartModules?  That doesn't make any sense to me.

Has anyone seen such an error before on EVA kerbals boarding craft / otherwise being destroyed?

 

 

Link to comment
Share on other sites

My PartModules don't implement OnDestroy.

I'm working off of KSP 1.04 (I'll upgrade when I've stabilized things), and it's completely stock, short of my mod.

I have one additional piece of info - it only happens if the Kerbal boards and they've got science on them.  Which...makes me sad cause it's probably my bug then (my mod deals in shoving around science).  Still, unsure how altering kerbal science would affect the collision stuff.

Edited by SixHourDays
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...