CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.95k stars 4.08k forks source link

Segfault zone manager unequiping/unloading modular attachment equipment #70155

Open zakhad opened 6 months ago

zakhad commented 6 months ago

Describe the bug

Un-Equipping/unloading attachment based equipment via the zone manager causes a segfault crash from naturally occuring sources i,e loot from zed's or found in stores.

This is a problem between the zone manager and naturally spawned equipment with attachments, as if you manually pull off the attachments and reattach them it's fine it will never crash, and the zone manager can also attached them fine afterwards so it's either missing a tag or it's trying to do something with a tag that only naturally spawned ones have before the player manually removes them seems to circumvent or resolve the issue, w/e it is the zone manager doesn't like a tag or something assigned to naturally spawning attachment bags

Attach save file

Zakhadia_BigCity-trimmed.tar.gz

Steps to reproduce

Have an attachment based piece of equipment, like a molly assault pack, that has been spawned either from loot or found, not one you made, and use the zone manager to unload it will result in a segfault crash.

Expected behavior

To separate out all the attachments onto the floor without crashing

Screenshots

image image image image image image image image

Versions and configuration

Additional context

No response

snipercup commented 6 months ago

I have this problem too. I am unloading with the unload all zone action and I have seen the segfault error but sometimes it will just crash without error and sometimes it will freeze the game Blue Springs-trimmed.tar.gz

  1. load attached save
  2. Press O and press U to unload all
  3. Observe crash

Version:

- OS: Windows
    - OS Version: 10.0.22621.2715 (22H2)
- Game Version: 869bcf8 [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Portal Storms Ignore NPCs [personal_portal_storms],
    Slowdown Fungal Growth [no_fungal_growth],
    Magiclysm [magiclysm],
    Tamable Wildlife [Tamable_Wildlife]
]

This is the loot I'm performing the unload action on: image