Skip to content

InvalidOperationException in ThingsPrepatches.AddToTypeList when using GodHand's God Wrench #13

Description

@popo3310

Environment

  • RimWorld: 1.6
  • Performance Fish: latest GitHub version
  • FisheryLib: latest GitHub version
  • Platform: Windows
  • Harmony: latest
  • HugsLib: installed

Description

An InvalidOperationException is consistently thrown when using the God Wrench from the GodHand mod to move any spawned thing.

The error is reproducible with ordinary items and is not limited to a specific ThingDef.

Disabling Performance Fish completely eliminates the error.

Reproduction

  1. Enable Performance Fish + FisheryLib.
  2. Enable GodHand.
  3. Load an existing save.
  4. Use God Wrench to pick up and place any normal item or building.
  5. Release the object.

Result:

An InvalidOperationException is thrown every time.

Expected:

The object should be placed normally without exceptions.

Stack Trace

System.InvalidOperationException: Operation is not valid due to the current state of the object.

FisheryLib.Collections.IndexedFishSet.Add()
PerformanceFish.Listers.ThingsPrepatches.AddToTypeList()
Verse.ListerThings.Add()
Verse.Thing.SpawnSetup()
GodHandMod.GodWrenchController.ReleaseGrab()

Additional Information

  • The problem only occurs when using God Wrench.
  • Normal gameplay does not appear to trigger the exception.
  • Disabling Performance Fish completely resolves the issue.
  • The issue is reproducible with ordinary items as well as buildings.

HugsLib Log

https://gist.github.com/HugsLibRecordKeeper/4634d24977f09cfc6de7d521af6ce192

Compatibility

The issue appears to be triggered by the GodHand mod's God Wrench.

Unfortunately, the GodHand author is currently unable to maintain the mod due to health reasons, so I am reporting it here in case Performance Fish can safely handle this spawn sequence or detect it more gracefully.

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