cseelhoff / RimThreaded

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

Game freeze when traders are landing (mod: automatic.traderships) #787

Open ttr opened 1 year ago

ttr commented 1 year ago

Non-Vanilla Bug Report

Describe the bug

I had occasional game freeze (to point i needed to kill process). Was unable to trace to which mod but I also realized that I had no trader ships landing for quite some time. So i did try using debug command to recycle trader ships (the one that instantly spawn 5 traders) Game crash after logging message that traders where rotated but before showing/generating letter message of new traders arrived.

W/o tradeships mod I can use replace command normally.

Steps to reproduce the behavior (VERY IMPORTANT)

  1. have a game with traderships mod, landing pad and comms console build and powered
  2. use replace trader ships debug command (not sure if there is better way to trigger vanilla trader arrival)
  3. game will freeze almost instantly

Note - mod adds it's own debug command to spawn ship and make i land in a place - this one seems to be working fine.

Error Logs ?

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Verse.ThingOwner`1[T].GetAt (System.Int32 index) [0x00000] in <38562b1a2ab64eacb931fb5df05ca994>:0 
  at RimThreaded.RW_Patches.TradeShip_Patch.PassingShipListTick () [0x00062] in <ecd0748a483645afb32087a92b0b4c3c>:0 
  at RimThreaded.RW_Patches.Map_Patch.MapPostListTick () [0x0000a] in <ecd0748a483645afb32087a92b0b4c3c>:0 
  at RimThreaded.RimThreaded.ExecuteTicks () [0x0001d] in <ecd0748a483645afb32087a92b0b4c3c>:0 
  at RimThreaded.RimThreaded.ProcessTicks (RimThreaded.RimThreaded+ThreadInfo threadInfo) [0x0002f] in <ecd0748a483645afb32087a92b0b4c3c>:0 
  at RimThreaded.RimThreaded.InitializeThread (System.Object threadInfo) [0x0000c] in <ecd0748a483645afb32087a92b0b4c3c>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00025] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Threading.ThreadHelper.ThreadStart (System.Object obj) [0x0000f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)
This is last exception in log - this exception would be logged post/during crash, as it did not rise error window in game  

(Filename: <eae584ce26bc40229c1b1aa476bfa589> Line: 0)

HugsLib log

https://www.dropbox.com/s/7n2q1ge19bwg13g/hugslib%20log%20-%202023-03-23_1.txt?dl=0 Log is taken before using "replace traders" command.

Player.log (Optional)

https://www.dropbox.com/s/z3l399xhskmez4k/Player%20-%202023-03-23_1.log?dl=0 (log copied after program termination)

Save file ?

https://www.dropbox.com/s/yyjzg9pflv7m2v5/Nuclear%20Freedom%20-%202023-03-23_1.rws?dl=0

Screenshots (Optional) ?

https://www.dropbox.com/s/ai3v3p6vx7vrmal/Capture%20-%202023-03-23_1.PNG?dl=0 Not really helpful, but you can see that ships are being spawned.

Mod list (Preferably a RimPy compatible list.) ?

[Mod list length: 177]
Harmony [https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077]
Core [https:// no link (local mod)]
Royalty [Official DLC] [https:// no link (local mod)]
Ideology [Official DLC] [https:// no link (local mod)]
Biotech [Official DLC] [https:// no link (local mod)]
HugsLib [https://steamcommunity.com/sharedfiles/filedetails/?id=818773962]
Adaptive Threats [https://steamcommunity.com/sharedfiles/filedetails/?id=2050547028]
Dubs Mint Menus [https://steamcommunity.com/sharedfiles/filedetails/?id=1446523594]
More Planning [1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=2551225702]
Allow Tool [https://steamcommunity.com/sharedfiles/filedetails/?id=761421485]
Animal Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=712141500]
AnimalHarvestingSpot (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=1542765654]
Animals Logic [https://steamcommunity.com/sharedfiles/filedetails/?id=1098354593]
Architect Icons [https://steamcommunity.com/sharedfiles/filedetails/?id=1195427067]
Area Unlocker [https://steamcommunity.com/sharedfiles/filedetails/?id=725153576]
Auto-Cut Blight [https://steamcommunity.com/sharedfiles/filedetails/?id=1885186534]
Backup Power [https://steamcommunity.com/sharedfiles/filedetails/?id=2084493662]
Better ModMismatch Window [https://steamcommunity.com/sharedfiles/filedetails/?id=1872244972]
Better Workbench Management [https://steamcommunity.com/sharedfiles/filedetails/?id=935982361]
Bionic icons [https://steamcommunity.com/sharedfiles/filedetails/?id=1677616980]
Blueprints [https://steamcommunity.com/sharedfiles/filedetails/?id=708455313]
Chatting on Comms [https://steamcommunity.com/sharedfiles/filedetails/?id=2058332610]
Clueless Arrivals [https://steamcommunity.com/sharedfiles/filedetails/?id=1553036893]
Colony Manager [https://steamcommunity.com/sharedfiles/filedetails/?id=715565262]
DontBlockDoor [https://steamcommunity.com/sharedfiles/filedetails/?id=1691076769]
Dress Patients (1.4) [https://steamcommunity.com/sharedfiles/filedetails/?id=2877763074]
Dubs Bad Hygiene [https://steamcommunity.com/sharedfiles/filedetails/?id=836308268]
Common Sense [https://steamcommunity.com/sharedfiles/filedetails/?id=1561769193]
Dubs Break Mod [https://steamcommunity.com/sharedfiles/filedetails/?id=1722398508]
Dubs Mint Minimap [https://steamcommunity.com/sharedfiles/filedetails/?id=1662119905]
Dynamic Diplomacy [https://steamcommunity.com/sharedfiles/filedetails/?id=1875168898]
ED-Embrasures [https://steamcommunity.com/sharedfiles/filedetails/?id=722085442]
ED-EnhancedOptions [1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=2897488240]
EPOE 1.4 (Expanded Prosthetics and Organ Engineering) [https://steamcommunity.com/sharedfiles/filedetails/?id=2882712052]
Electric Butcher Table [https://steamcommunity.com/sharedfiles/filedetails/?id=2025416804]
Electric Fences and Floors (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2138712589]
Electric Stonecutting Table [https://steamcommunity.com/sharedfiles/filedetails/?id=1649368867]
Enemy Self Preservation [https://steamcommunity.com/sharedfiles/filedetails/?id=2006638530]
Expanded Roofing 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2879451927]
Faction Control 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2882785581]
Field Medic [1.0-1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=1541287769]
Fluffy Breakdowns [https://steamcommunity.com/sharedfiles/filedetails/?id=726244033]
Giddy-Up 2 [https://steamcommunity.com/sharedfiles/filedetails/?id=2934245647]
Glitter Tech [https://steamcommunity.com/sharedfiles/filedetails/?id=2558099206]
Go Explore! [https://steamcommunity.com/sharedfiles/filedetails/?id=1814100216]
RWLayout [https://steamcommunity.com/sharedfiles/filedetails/?id=2209393954]
Grouped Pawns Lists [https://steamcommunity.com/sharedfiles/filedetails/?id=2340773428]
Harvest Organs Post Mortem [https://steamcommunity.com/sharedfiles/filedetails/?id=1204502413]
High quality textures [https://steamcommunity.com/sharedfiles/filedetails/?id=1676969930]
Human Power Generator Mod [https://steamcommunity.com/sharedfiles/filedetails/?id=1706030487]
Impassable Chest-deep Water [https://steamcommunity.com/sharedfiles/filedetails/?id=1674624795]
Interaction Bubbles [https://steamcommunity.com/sharedfiles/filedetails/?id=1516158345]
Jewelry [https://steamcommunity.com/sharedfiles/filedetails/?id=2020964421]
LED Lights (1.4 Fork) [https://steamcommunity.com/sharedfiles/filedetails/?id=2917839304]
Less Arbitrary Surgery (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2018250654]
Let's Trade! [1.4+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2373633407]
Death Rattle Continued [1.2+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2206107940]
Life Support Continued [1.1+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2937012139]
Loading In Progress [https://steamcommunity.com/sharedfiles/filedetails/?id=1975622772]
Mad Skills [https://steamcommunity.com/sharedfiles/filedetails/?id=731111514]
Meals On Wheels [https://steamcommunity.com/sharedfiles/filedetails/?id=1323773476]
Medical Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=715565817]
MendAndRecycle [https://steamcommunity.com/sharedfiles/filedetails/?id=735241897]
Metal Don't Burn (UNOFFICIAL 1.4 PATCH) [https://steamcommunity.com/sharedfiles/filedetails/?id=2557145474]
MinifyEverything [https://steamcommunity.com/sharedfiles/filedetails/?id=872762753]
Misc. Bees'n'Honey [https://steamcommunity.com/sharedfiles/filedetails/?id=766264659]
Mod Manager [https://steamcommunity.com/sharedfiles/filedetails/?id=1507748539]
Moody [https://steamcommunity.com/sharedfiles/filedetails/?id=826998327]
Vanilla Expanded Framework [https://steamcommunity.com/sharedfiles/filedetails/?id=2023507013]
Vanilla Furniture Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1718190143]
More Furniture (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2565302299]
More Practical Traits - unofficial update [https://steamcommunity.com/sharedfiles/filedetails/?id=2893524668]
Rimefeller [https://steamcommunity.com/sharedfiles/filedetails/?id=1321849735]
Vanilla Furniture Expanded - Security [https://steamcommunity.com/sharedfiles/filedetails/?id=1845154007]
More Rimefeller Compat [https://steamcommunity.com/sharedfiles/filedetails/?id=2763187069]
More Vanilla Turrets 1.1+ [https://steamcommunity.com/sharedfiles/filedetails/?id=2009766414]
Mortar Accuracy [https://steamcommunity.com/sharedfiles/filedetails/?id=1729446857]
Music Manager [https://steamcommunity.com/sharedfiles/filedetails/?id=2229205672]
My Little Planet [https://steamcommunity.com/sharedfiles/filedetails/?id=1117406550]
No Lazy Doctors [https://steamcommunity.com/sharedfiles/filedetails/?id=2476396157]
No Quests Without Comms [https://steamcommunity.com/sharedfiles/filedetails/?id=2136753617]
No Random Relations [https://steamcommunity.com/sharedfiles/filedetails/?id=2583377522]
P-Music [https://steamcommunity.com/sharedfiles/filedetails/?id=725130005]
Pack Mules Extended [https://steamcommunity.com/sharedfiles/filedetails/?id=1501052499]
Parallel Power Grid (Parallel Conduits) [https://steamcommunity.com/sharedfiles/filedetails/?id=1277677885]
RT Power Switch [https://steamcommunity.com/sharedfiles/filedetails/?id=728314859]
Replace Stuff [https://steamcommunity.com/sharedfiles/filedetails/?id=1372003680]
PowerSwitch [https://steamcommunity.com/sharedfiles/filedetails/?id=717632155]
Parallel Power Grid (Parallel Conduits) Addons [https://steamcommunity.com/sharedfiles/filedetails/?id=2059429490]
Pawns Paint! Restored (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2449797994]
Pick Up And Haul [https://steamcommunity.com/sharedfiles/filedetails/?id=1279012058]
Project RimFactory Revived [https://steamcommunity.com/sharedfiles/filedetails/?id=2033979700]
Power++ [https://steamcommunity.com/sharedfiles/filedetails/?id=1771402217]
Prison Commons (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2898000489]
Humanoid Alien Races [https://steamcommunity.com/sharedfiles/filedetails/?id=839005762]
Hospitality [https://steamcommunity.com/sharedfiles/filedetails/?id=753498552]
Locks [https://steamcommunity.com/sharedfiles/filedetails/?id=1157085076]
Prison Labor [https://steamcommunity.com/sharedfiles/filedetails/?id=1899474310]
ProxyHeat [https://steamcommunity.com/sharedfiles/filedetails/?id=2365526329]
EdB Prepare Carefully [https://steamcommunity.com/sharedfiles/filedetails/?id=735106432]
Psychology (unofficial) v1.1-1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2016263135]
QualityBuilder [https://steamcommunity.com/sharedfiles/filedetails/?id=754637870]
QualitySurgeon [https://steamcommunity.com/sharedfiles/filedetails/?id=857350593]
Questionable Ethics Enhanced (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2850854272]
RT Solar Flare Shield [https://steamcommunity.com/sharedfiles/filedetails/?id=728315620]
RT's Weapon Pack Reloaded [https://steamcommunity.com/sharedfiles/filedetails/?id=2008908318]
Range Finder [https://steamcommunity.com/sharedfiles/filedetails/?id=1332119637]
Turn It On and Off - RePowered [https://steamcommunity.com/sharedfiles/filedetails/?id=2228219259]
RePower Patch Pack [https://steamcommunity.com/sharedfiles/filedetails/?id=1836577627]
Realistic Planets Continued [https://steamcommunity.com/sharedfiles/filedetails/?id=2557451791]
Relations Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=709317151]
RescueeJoinsPlus [https://steamcommunity.com/sharedfiles/filedetails/?id=2177170403]
RimCities [https://steamcommunity.com/sharedfiles/filedetails/?id=1775170117]
RimHUD [https://steamcommunity.com/sharedfiles/filedetails/?id=1508850027]
RimPy Mod Manager Database [https://steamcommunity.com/sharedfiles/filedetails/?id=1847679158]
Run and Hide (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2022480344]
RunAndGun [https://steamcommunity.com/sharedfiles/filedetails/?id=1204108550]
RT Fuse [https://steamcommunity.com/sharedfiles/filedetails/?id=728314182]
SS Bigger Batteries [https://steamcommunity.com/sharedfiles/filedetails/?id=2024086401]
SS Battery Fuse [https://steamcommunity.com/sharedfiles/filedetails/?id=2024088361]
Share The Load [https://steamcommunity.com/sharedfiles/filedetails/?id=1356838246]
Simple sidearms [https://steamcommunity.com/sharedfiles/filedetails/?id=927155256]
Slow Starvation [https://steamcommunity.com/sharedfiles/filedetails/?id=2068523117]
Androids for RW 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2889326293]
Dubs Rimatomics [https://steamcommunity.com/sharedfiles/filedetails/?id=1127530465]
Small addons for Androids race [https://steamcommunity.com/sharedfiles/filedetails/?id=2193548667]
Smarter Construction [https://steamcommunity.com/sharedfiles/filedetails/?id=2202185773]
Smoked meat [https://steamcommunity.com/sharedfiles/filedetails/?id=1542364782]
Snap Out! [https://steamcommunity.com/sharedfiles/filedetails/?id=1319782555]
Sometimes Raids Go Wrong [https://steamcommunity.com/sharedfiles/filedetails/?id=1551336515]
Statue of Colonist [https://steamcommunity.com/sharedfiles/filedetails/?id=1539031321]
Stonecutting Extended [https://steamcommunity.com/sharedfiles/filedetails/?id=2571676542]
TD Enhancement Pack [https://steamcommunity.com/sharedfiles/filedetails/?id=1339135272]
Terran's Security Buildings [https://steamcommunity.com/sharedfiles/filedetails/?id=2509993687]
Trader ships [https://steamcommunity.com/sharedfiles/filedetails/?id=2046222331]
Trading Options [https://steamcommunity.com/sharedfiles/filedetails/?id=2876541977]
Transport Cargo Pod [https://steamcommunity.com/sharedfiles/filedetails/?id=2008989746]
VGP Vegetable Garden [https://steamcommunity.com/sharedfiles/filedetails/?id=2007061826]
VGP Garden Canning [https://steamcommunity.com/sharedfiles/filedetails/?id=2007062033]
VGP Garden Drinks [https://steamcommunity.com/sharedfiles/filedetails/?id=2167582651]
VGP Garden Fabrics [https://steamcommunity.com/sharedfiles/filedetails/?id=2007062162]
VGP Garden Gourmet [https://steamcommunity.com/sharedfiles/filedetails/?id=2007062982]
VGP Garden Medicine [https://steamcommunity.com/sharedfiles/filedetails/?id=2007063140]
VGP Garden Tools [https://steamcommunity.com/sharedfiles/filedetails/?id=2007063961]
VGP More Veggies [https://steamcommunity.com/sharedfiles/filedetails/?id=2007063278]
VGP Three Sisters Plants [https://steamcommunity.com/sharedfiles/filedetails/?id=2007063848]
Vanilla Factions Expanded - Settlers [https://steamcommunity.com/sharedfiles/filedetails/?id=2052918119]
Vanilla Furniture Expanded - Art [https://steamcommunity.com/sharedfiles/filedetails/?id=1968134023]
Vanilla Furniture Expanded - Medical Module [https://steamcommunity.com/sharedfiles/filedetails/?id=1718191613]
Vanilla Furniture Expanded - Spacer Module [https://steamcommunity.com/sharedfiles/filedetails/?id=2028381079]
Vanilla Books Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2193152410]
Vanilla Ideology Expanded - Memes and Structures [https://steamcommunity.com/sharedfiles/filedetails/?id=2636329500]
Vanilla Outposts Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2688941031]
Various Space Ship Chunk (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2014616487]
Wall Light [https://steamcommunity.com/sharedfiles/filedetails/?id=1423699208]
Wall Vitals Monitor [https://steamcommunity.com/sharedfiles/filedetails/?id=1334289344]
WanderJoinsPlus [https://steamcommunity.com/sharedfiles/filedetails/?id=2177016016]
Work Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=725219116]
Zen Garden (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2777931683]
[1.4] ExtendedInspectData [https://steamcommunity.com/sharedfiles/filedetails/?id=1597306343]
[CP] Retro Joy [https://steamcommunity.com/sharedfiles/filedetails/?id=1842663639]
RimFridge Updated [https://steamcommunity.com/sharedfiles/filedetails/?id=2878183338]
[FSF] No Default Shelf Storage [https://steamcommunity.com/sharedfiles/filedetails/?id=945085502]
[GMT] Trading Spot [https://steamcommunity.com/sharedfiles/filedetails/?id=2874517333]
[KV] More Trait Slots [1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=2878346573]
[KV] Random Goodwill [https://steamcommunity.com/sharedfiles/filedetails/?id=2551775344]
[KV] Save Storage, Outfit, Crafting, Drug, & Operation Settings [1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=2878346181]
[LTO] Colony Groups [https://steamcommunity.com/sharedfiles/filedetails/?id=2345493945]
Plasteel Surgery (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2018276375]
[PS] Reconditioning Pod (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2044003955]
[SYR] Doormats [https://steamcommunity.com/sharedfiles/filedetails/?id=1508778962]
[SYR] Processor Framework [https://steamcommunity.com/sharedfiles/filedetails/?id=2633514537]
[SYR] Set Up Camp [https://steamcommunity.com/sharedfiles/filedetails/?id=1470065926]
[T] MoreFloors 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2878200208]
[WD] Realistic Darkness [https://steamcommunity.com/sharedfiles/filedetails/?id=1531882210]
[XND] Tiny Tweaks (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2270049772]
RimThreaded [https://steamcommunity.com/sharedfiles/filedetails/?id=2222907981]
ttr commented 1 year ago

Isolated save - https://www.dropbox.com/s/4dpmm3onqcif7yu/test2%20-%202023-03-23-1.rws?dl=0 only RT, mod manager and traderships loaded - game freeze on trader ships spawn.