Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mining suspends Manager Job #196

Open
OverlordQ opened this issue Jun 11, 2022 · 1 comment
Open

Mining suspends Manager Job #196

OverlordQ opened this issue Jun 11, 2022 · 1 comment

Comments

@OverlordQ
Copy link

Describe the bug

Nobody interacts with the Colony Manager table unless forced.

Suspending manager job because it error-ed on tick: 
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x0004e] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Linq.Enumerable.Sum[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00038] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at FluffyManager.ManagerJob_Mining.GetCountInChunks () [0x0004a] in <d99e12b2919b40f092db0d706757fbd3>:0 
  at FluffyManager.ManagerJob_Mining.Tick () [0x00019] in <d99e12b2919b40f092db0d706757fbd3>:0 
  at FluffyManager.Manager.MapComponentTick () [0x00029] in <d99e12b2919b40f092db0d706757fbd3>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
FluffyManager.Manager:MapComponentTick ()
Verse.MapComponentUtility:MapComponentTick (Verse.Map)
Verse.Map:MapPostTick ()
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)

Expected behavior

Pawns use the table as specified by priorities.

Steps to reproduce

  1. Create manager table

Other mods

Installed:

[Mod list length: 28]
Harmony [https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077]
Core [https:// no link (local mod)]
HugsLib [https://steamcommunity.com/sharedfiles/filedetails/?id=818773962]
All Memories Fade [https://steamcommunity.com/sharedfiles/filedetails/?id=2800155563]
Animal Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=712141500]
AutoVents [https://steamcommunity.com/sharedfiles/filedetails/?id=2223332301]
Colony Manager [https://steamcommunity.com/sharedfiles/filedetails/?id=715565262]
Desire Paths [https://steamcommunity.com/sharedfiles/filedetails/?id=2072410063]
Dubs Performance Analyzer [https://steamcommunity.com/sharedfiles/filedetails/?id=2038874626]
Dubs Skylights [https://steamcommunity.com/sharedfiles/filedetails/?id=833899765]
EdB Prepare Carefully [https://steamcommunity.com/sharedfiles/filedetails/?id=735106432]
Geological Landforms [https://steamcommunity.com/sharedfiles/filedetails/?id=2773943594]
Graphics Settings+ [https://steamcommunity.com/sharedfiles/filedetails/?id=1678847247]
Heat Map [https://steamcommunity.com/sharedfiles/filedetails/?id=947972722]
Medical Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=715565817]
Pick Up And Haul [https://steamcommunity.com/sharedfiles/filedetails/?id=1279012058]
ReGrowth: Expanded World Generation (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2791768296]
Realistic Rooms Rewritten [https://steamcommunity.com/sharedfiles/filedetails/?id=2558042766]
Save Our Ship 2 [https://steamcommunity.com/sharedfiles/filedetails/?id=1909914131]
Share The Load [https://steamcommunity.com/sharedfiles/filedetails/?id=1356838246]
Smarter Construction [https://steamcommunity.com/sharedfiles/filedetails/?id=2202185773]
Table Diner [https://steamcommunity.com/sharedfiles/filedetails/?id=1430086135]
Tilled Soil [https://steamcommunity.com/sharedfiles/filedetails/?id=725747149]
Vanilla Books Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2193152410]
While You Are Nearby [https://steamcommunity.com/sharedfiles/filedetails/?id=2784585275]
Work Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=725219116]
[KV] Trading Spot [https://steamcommunity.com/sharedfiles/filedetails/?id=1180719658]
RimThreaded [https://steamcommunity.com/sharedfiles/filedetails/?id=2222907981]

Output log

https://gist.github.com/0e40617fe4c45e750e918c587bd41d77

Save game

https://www.dropbox.com/s/erxoz5htqoga71s/South%20Eracoesberon.rws?dl=0

Screenshots

Environment

  • OS: Win10
  • 64 bits

Game

  • 64 bits
  • Steam
  • Version 1.3
@OverlordQ
Copy link
Author

I'm guessing it's probably RimThreaded.

https://github.com/cseelhoff/RimThreaded/wiki/For-Devs/#thread-safe-collections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant