cseelhoff / RimThreaded

RimThreaded is a RimWorld mod designed to enable RimWorld to utilize multiple threads.
MIT License
119 stars 21 forks source link

[Share The Load] error `Exception ticking Mote_SparkThrown (at (28, 0, 89)): System.NullReferenceException:` `at Share_The_Load.ExpectingComp.Remove` #702

Open sealvessel opened 2 years ago

sealvessel commented 2 years ago

Describe the bug

An error that exploded on every pawn that is doing something that relates to "Share the Load" mod.

Steps to reproduce the behavior (VERY IMPORTANT)

  1. Install this savefile and modlist

Error Logs

Exception ticking Mote_SparkThrown (at (28, 0, 89)): System.NullReferenceException: Object reference not set to an instance of an object
  at Share_The_Load.DeSpawn_Patch+<>c__DisplayClass0_0.<Prefix>b__0 (Share_The_Load.DeliverQuota q) [0x00000] in <f406d8273d5e49ebb5d235c10dd57e19>:0 
  at System.Collections.Generic.List`1[T].RemoveAll (System.Predicate`1[T] match) [0x0001a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Share_The_Load.ExpectingComp.Remove (System.Predicate`1[T] filter) [0x00005] in <f406d8273d5e49ebb5d235c10dd57e19>:0 
  at (wrapper dynamic-method) Share_The_Load.DeSpawn_Patch.Share_The_Load.DeSpawn_Patch.Prefix_Patch0(Verse.Thing)
  at (wrapper dynamic-method) Verse.Thing.Verse.Thing.DeSpawn_Patch3(Verse.Thing,Verse.DestroyMode)
  at Verse.Mote.DeSpawn (Verse.DestroyMode mode) [0x00006] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at Verse.Thing.Destroy (Verse.DestroyMode mode) [0x00069] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at Verse.Mote.TimeInterval (System.Single deltaTime) [0x00010] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at Verse.MoteThrown.TimeInterval (System.Single deltaTime) [0x00000] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at Verse.Mote.Tick () [0x00012] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at RimThreaded.TickList_Patch.NormalThingTick () [0x00025] in <8a67117be3c942638f32f14a203f795d>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
RimThreaded.TickList_Patch:NormalThingTick ()
RimThreaded.RimThreaded:ExecuteTicks ()
RimThreaded.RimThreaded:ProcessTicks (RimThreaded.RimThreaded/ThreadInfo)
RimThreaded.RimThreaded:InitializeThread (object)
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 (object)

HugsLib log

https://gist.github.com/76d98218d681ac239635a84cf0d1f54f

Save file

Archotesian Empirecrap copy.rws.zip

Screenshots

!!! Add screenshots to help explain your problem here !!!

Mod list (Preferably a RimPy compatible list.)