RimThreaded icon indicating copy to clipboard operation
RimThreaded copied to clipboard

[SOS2+Bad hygiene] `Explosion could not affect cell (92, 0, 207): System.InvalidOperationException: Collection was modified;`

Open sealvessel opened this issue 4 years ago • 0 comments

Describe the bug

Bug regarding dubs bad hygiene SOS2 integration when turrets destroy a ship hull tile.

Steps to reproduce the behavior (VERY IMPORTANT)

  1. Run the save file

  2. Make sure SOS2 integration in Dub's Bad Hygienes extra options menu is enabled: image image

  3. See that there are errors regarding dubs bad hygiene tiles being destroyed.

  4. Scroll down to '....'

  5. See error

Error Logs

Explosion could not affect cell (92, 0, 207): System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.HashSet`1+Enumerator[T].MoveNext () [0x00013] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at DubsBadHygiene.PlumbingNet.InitNet () [0x0027c] in <b304e300710b43ab89482da7df6e86f3>:0 
  at DubsBadHygiene.HygienePipeMapComp.DeregisterPipe (DubsBadHygiene.CompPipe pipe) [0x0001d] in <b304e300710b43ab89482da7df6e86f3>:0 
  at DubsBadHygiene.CompPipe.PostDeSpawn (Verse.Map map) [0x00006] in <b304e300710b43ab89482da7df6e86f3>:0 
  at (wrapper dynamic-method) Verse.ThingWithComps.Verse.ThingWithComps.DeSpawn_Patch1(Verse.ThingWithComps,Verse.DestroyMode)
  at (wrapper dynamic-method) Verse.Building.Verse.Building.DeSpawn_Patch1(Verse.Building,Verse.DestroyMode)
  at Verse.Thing.Destroy (Verse.DestroyMode mode) [0x00069] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at Verse.ThingWithComps.Destroy (Verse.DestroyMode mode) [0x00007] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at (wrapper dynamic-method) Verse.Building.Verse.Building.Destroy_Patch3(Verse.Building,Verse.DestroyMode)
  at Verse.Thing.Kill (System.Nullable`1[T] dinfo, Verse.Hediff exactCulprit) [0x00000] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at (wrapper dynamic-method) Verse.DamageWorker.Verse.DamageWorker.Apply_Patch1(Verse.DamageWorker,Verse.DamageInfo,Verse.Thing)
  at Verse.DamageWorker_AddInjury.Apply (Verse.DamageInfo dinfo, Verse.Thing thing) [0x0000a] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at (wrapper dynamic-method) Verse.Thing.Verse.Thing.TakeDamage_Patch0(Verse.Thing,Verse.DamageInfo)
  at Verse.DamageWorker.ExplosionDamageThing (Verse.Explosion explosion, Verse.Thing t, System.Collections.Generic.List`1[T] damagedThings, System.Collections.Generic.List`1[T] ignoredThings, Verse.IntVec3 cell) [0x00127] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at (wrapper dynamic-method) Verse.DamageWorker.Verse.DamageWorker.ExplosionAffectCell_Patch0(Verse.DamageWorker,Verse.Explosion,Verse.IntVec3,System.Collections.Generic.List`1<Verse.Thing>,System.Collections.Generic.List`1<Verse.Thing>,bool)
  at Verse.Explosion.AffectCell (Verse.IntVec3 c) [0x00053] in <720a4e30fed64864bd8af057c96d4eb5>:0 
  at Verse.Explosion.Tick () [0x0003d] in <720a4e30fed64864bd8af057c96d4eb5>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.Explosion:Tick ()
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)

Player.log

Player.log.zip

**HugsLib

https://gist.github.com/a0f077767efaa53478070985bcddd637

Save file

Quicksave.rws.zip

Screenshots

image

Update: Destroying something with a disassembler nanite on it will also net an error. image

Update: Railgun batteries destroying front of LeviathanMKII. The bottom is being destroyed by disassembler nanites, which nets errors whenever a pink fire thing destroys a ship hull piece with hygiene pipes within it. image

Mod list (Preferably a RimPy compatible list.)

  • brrainz.harmony
  • ludeon.rimworld
  • ludeon.rimworld.royalty
  • ludeon.rimworld.ideology
  • unlimitedhugs.hugslib
  • automatic.startupimpact
  • telefonmast.graphicssettings
  • edb.preparecarefully
  • void.charactereditor
  • oskarpotocki.vanillafactionsexpanded.core
  • haplo.miscellaneous.core
  • haplo.miscellaneous.robots
  • alaestor.miscrobots.plusplus
  • oskarpotocki.vfe.mechanoid
  • roolo.runandgun
  • roolo.searchanddestroy
  • zylle.mapdesigner
  • ykara.epoe
  • taranchuk.archotechplus
  • allencaine.tdpack
  • gondragon.uinotincluded
  • owlchemist.toggleableoverlays
  • lwm.deepstorage
  • legodude17.smartdecon
  • vanillaexpanded.vcooke
  • seohyeon.optimizationmeats
  • owlchemist.barelyvisiblespots
  • owlchemist.bettervanillamasking
  • owlchemist.moonlight
  • owlchemist.wallutilities
  • owlchemist.perspectivebuildings
  • owlchemist.perspectivetrees
  • vanillaexpanded.vbrewecandt
  • vanillaexpanded.vfeproduction
  • oskarpotocki.vanillaexpanded.royaltypatches
  • vanillaexpanded.vfecore
  • vanillaexpanded.vfepower
  • owlchemist.simplefx.smoke2
  • owlchemist.ceilingutilities
  • owlchemist.smartfarming
  • owlchemist.windows
  • fluffy.animaltab
  • fluffy.areaunlocker
  • fluffy.backuppower
  • fluffy.blueprints
  • fluffy.medicaltab
  • fluffy.musicmanager
  • fluffy.pharmacist
  • fluffy.worktab
  • dubwise.dubsappareltweaks
  • dubwise.dubsmintmenus
  • dubwise.dubsmintminimap
  • dubwise.dubspaintshop
  • arandomkiwi.rimsaves
  • telardo.dragselect
  • mehni.misc.modifications
  • unlimitedhugs.allowtool
  • madarauchiha.custommapsizes
  • voult.betterpawncontrol
  • automatic.bionicicons
  • chippedchap.blueprinttotalstooltip
  • brrainz.cameraplus
  • dubwise.dubsbadhygiene
  • sumghai.replimat
  • sumghai.medpod
  • avilmask.commonsense
  • steaplay.constructvanillarockwalls
  • unlimitedhugs.defensivepositions
  • merthsoft.designatorshapes
  • vanillaexpanded.vfefarming
  • vanillaexpanded.vfesecurity
  • vanillaexpanded.vfespacer
  • owlchemist.cleanpathfinding
  • owlchemist.permeableterrain
  • frozensnowfox.improvedvanometricpowercells
  • frozensnowfox.nodefaultshelfstorage
  • frozensnowfox.growableambrosia
  • frozensnowfox.filthvanisheswithrainandtime
  • frozensnowfox.betterancientcomplexloot
  • frozensnowfox.bettercamploot
  • frozensnowfox.growablegrass
  • frozensnowfox.efficientutilities
  • mlie.giveupyourbuilding
  • mlie.nomoreautoroof
  • mlie.weaponssorter
  • mlie.scenarioamender
  • sarg.smartspeed
  • neptimus7.homearearadius
  • falconne.heatmap
  • notfood.mendandrecycle
  • modsyncrw.kv.rw
  • com.github.alandariva.moreplanning
  • ogre.ogrestack
  • jaxe.reorderer
  • cp.rimdeed
  • cabbage.rimcities
  • jaxe.rimhud
  • sandy.rpgstyleinventory.avilmask.revamped
  • denev.smartturretcovering
  • ratys.rtfuse
  • ratys.rtpowerswitch
  • ratys.rtsolarflareshield
  • neceros.fuseplus
  • dubwise.dubsrimkit
  • neitsa.preparelanding
  • neptimus7.progressrenderer
  • mastertea.randomplus
  • herigony.mapedittools
  • uuugggg.sharetheload
  • dubwise.rimatomics
  • dubwise.rimefeller
  • dubwise.dubsskylights
  • vanillaexpanded.vbookse
  • vanillaexpanded.vwe
  • vanillaexpanded.vweg
  • vanillaexpanded.vwehw
  • vanillaexpanded.vwel
  • vanillaexpanded.vwec
  • vanillaexpanded.vwenl
  • legodude17.heavyweaponsreloading
  • vanillaexpanded.vfemedical
  • vanillaexpanded.vfeart
  • vanillaexpanded.vfepropsanddecor
  • vanillaexpanded.vfearchitect
  • vanillaexpanded.vaeaccessories
  • turnovus.submod.backpacksarenotbelts
  • owlchemist.fridgeutilities
  • vanillaexpanded.vbrewe
  • vanillaexpanded.varme
  • vanillaexpanded.vcef
  • vanillaexpanded.vplantse
  • spacemoth.vfavccrsze
  • zzz.wallvitalsmonitor
  • oskarpotocki.vanillaexpanded.ideologypatches
  • anon.vanillaembrasures
  • mlie.mechanicaldefense2walls
  • chv.diagonalwalls
  • jelly.rimflix
  • murmur.walllight
  • owlchemist.undergroundpowerconduits
  • kentington.saveourship2
  • kentington.saveourshipck
  • dubwise.dubsperformanceanalyzer
  • automatic.autocleaner
  • oskarpotocki.vfe.insectoid
  • bs.mbifvte
  • imranfish.xmlextensions
  • imranfishnikos.tallertabmenus
  • orion.hospitality
  • jkluch.haultostack
  • mehni.pickupandhaul
  • niilo007.niilosqol
  • adambucior.betterelectronics
  • kyd.rapidfireturrets
  • trinity.runtimegcupdated
  • majorhoff.rimthreaded
  • sealvessel avatar Nov 05 '21 13:11 sealvessel