cseelhoff / RimThreaded

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

[Sync Growth] Mod - Sync Growth causes System.NullReferenceException #626

Open TeaCrab opened 2 years ago

TeaCrab commented 2 years ago

IMPORTANT: Please first search existing bugs to ensure you are not creating a duplicate bug report!

System.NullReferenceException with Sync Growth.

Reproduce: Use Sync Growth mod Plant something Usually takes a day to happen

Full Error Log: https://gist.github.com/9b3853ec64a1e56e11ea12e18637ba46 (Includes a whole bunch of other errors that are other bugs that may or may not have anything to do with RimThreaded)

Specific error in relation to Sync Growth: System.NullReferenceException: Object reference not set to an instance of an object at SyncGrowth.GroupsUtils.HasGroup (RimWorld.Plant plant) [0x00006] in <9edf50f4f4ae4cfe81bdf96fd4aa1a66>:0 at SyncGrowth.GroupMaker.TryCreateGroup (SyncGrowth.MapCompGrowthSync mapComp, RimWorld.Plant crop, System.Boolean flashcells) [0x00003] in <9edf50f4f4ae4cfe81bdf96fd4aa1a66>:0 at SyncGrowth.MapCompGrowthSync.MapComponentTick () [0x00066] in <9edf50f4f4ae4cfe81bdf96fd4aa1a66>:0 at (wrapper dynamic-method) Verse.MapComponentUtility.Verse.MapComponentUtility.MapComponentTick_Patch0(Verse.Map) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string) (wrapper dynamic-method) Verse.MapComponentUtility:Verse.MapComponentUtility.MapComponentTick_Patch0 (Verse.Map) (wrapper dynamic-method) Verse.Map:Verse.Map.MapPostTick_Patch0 (Verse.Map) RimThreaded.Map_Patch:MapsPostTickPrepare () RimThreaded.RimThreaded:PrepareWorkLists () 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)

Save & ModList: Test.zip