SineSwiper / RimWorld-XenobionicPatcher

Fix surgical operations to work with all of your bionics, implants, animals, humans, aliens
Artistic License 2.0
4 stars 3 forks source link

Xenobionic Patcher throws an error on startup with Harvest Everything! #14

Closed ShadowDragon8685 closed 6 months ago

ShadowDragon8685 commented 3 years ago

Xenobionic Patcher throws an error on startup with Harvest Everything! installed. I have Harvest Everything installed just before Xenobionic Patcher, and the startup log throws the following substantial error:

[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.Dictionary2+KeyCollection+Enumerator[TKey,TValue].MoveNext () [0x00013] in :0 at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List1[T] surgeryList, System.Collections.Generic.List1[T] pawnList) [0x00f36] in <51b55d89af12431fa6285344fe3583b2>:0 at XenobionicPatcher.Base.DefsLoaded () [0x007c2] in <51b55d89af12431fa6285344fe3583b2>:0 at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <4dd8a30b2ddc479e878b55ffe02db6e8>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string) HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string) HugsLib.HugsLibController:OnDefsLoaded () (wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1 (HugsLib.HugsLibController) Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:b__27_0 () System.Threading.ThreadHelper:ThreadStart_Context (object) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()`

The full HugsLib output can be found here. I'm (trying to) use Harvest Everything![Adopted] as found here

NoTouchingKids commented 3 years ago

Same here

but it seem harmless when in game

https://gist.github.com/da0ef3474b7b4a8eab13c4a43d857b42

SineSwiper commented 6 months ago

I have that mod myself and I'm not seeing any issue with it. This must have been fixed recently.