cataclysmbnteam / Cataclysm-BN

Cataclysm: Bright Nights, A fork/variant of Cataclysm:DDA by CleverRaven.
https://docs.cataclysmbn.org
Other
665 stars 260 forks source link

Error thrown when dropping more than vehicle part can handle #4773

Open Relgar opened 3 months ago

Relgar commented 3 months ago

Describe the bug

Pretty straightforward. Every time you drop more item volume than a vehicle part which has space can handle, it'll throw the below error. Not game-killing and can be ignored, but probably shouldn't be happening in the first place. The same error also happens in some other edge cases that I can't remember at the moment.

DEBUG : Attempted to resolve invalid detached_ptr

FUNCTION : get FILE : D:\a\Cataclysm-BN\Cataclysm-BN\src\detached_ptr.cpp LINE : 57 VERSION : BN c65ec46

Steps To Reproduce

  1. Have a vehicle part that has, say, 10L storage.
  2. Drop more than 10L in items on the part,
  3. Error is thrown

Screenshots

No response

Versions and configuration

Additional context

No response

RoyalFox2140 commented 1 month ago

I've ran into this a few times. I usually just hit ignore on the error.

RoyalFox2140 commented 4 weeks ago

Seems like this almost killed my save file. After getting this from dumping pipes into my raft I rowed away from where it happened, saved, quit, and had to reload 5 or 6 times so it would stop crashing my game when it tried to resolve items during the loading sequence. It would get stuck, then instantly close on that point.

No crash log generated, debug log and save and game report attached. If my save is needed all those mods should be easy to hunt down but a few of them I have no items/content from in my world.

RoyalFox2140 commented 4 weeks ago

Attempting to auto drive back to where it happened did crash me. crash.log

RoyalFox2140 commented 4 weeks ago

I ripped off all storage on my raft, reinstalled the wooden boxes, and I can auto drive back without a crash. image

I guess by removing the vehicle part that caused the error and all items of course, it maybe doesn't trigger anymore.