Skip to content

In the editor, querying crew on root part from another Kerbalism cause KSP's UIPartActionController to go crazy #14

@gotmachine

Description

@gotmachine

This is a strange bug that happen on KSP 1.11.1 when Kerbalism + CrewR&R are installed together.

To reproduce :

  • In the editor, have a crewable and crewed root part
  • Open the PAW on any part

This cause constant re-instantiation of the PAW by UIPartActionController .Update(), generating huge lag that result in PAWs becoming very unresponsive :
image

  • This doesn't happen if the root part isn't crewable
  • This doesn't happen if the root part isn't crewed

This seems triggered by the Kerbalism Habitat PartModule querying the part crew manifest on Update().
Not sure of the exact root cause, but removing the CrewR&R EditorModule.Update() method fixes it.

My guess is that CrewR&R somehow enter in a state where the manifestNeedsCleaning bool gets reset to true every frame, causing this expression to evaluate to true every frame :

if (manifestNeedsCleaning)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions