Cataclysm-dda: Freeze when loading a save

Created on 28 Jun 2020  路  5Comments  路  Source: CleverRaven/Cataclysm-DDA

Describe the bug

Made a save to demonstrate another issue, now game hangs while trying to load it.
Correction - game loads but it takes at least 15 minutes, compared to my usual 15-20 seconds. Something is definitely wrong here.
Correction 2 - later saves freeze indefinitely.

Steps To Reproduce

Try loading the save.

Expected behavior

Game loading normally.

Versions and configuration

  • OS: Windows 7
  • Game Version: 0.E-3553-ge888413
  • Graphics version: Tiles
  • Ingame language: English
  • Mods loaded: [dda, no npc needs, aftershock, magiclysm, alt map key, stats through skils]

Can't paste full debug message because to get it you need the game to actually load.

Additional info

The only difference I can think of compared to previous saves is my char is holding orichalcum cauldron almost filled to the brim with other items. e: doesn't seems to be an issue - save without a cauldron hangs just like the one with it.

Update: found something - debug.log follows
debug.log

I've snipped it but this error
ERROR : src/item_contents.cpp:282 [void item_contents::combine(const item_contents&)] error: tried to put an item into a pocket that can't fit into it while loading. err: only mods can go into mod pocket spams for thousands of lines (and probably would've spammed for millions if I haven't killed game process; debug.log was at 17Mb after about a minute of freezing). Looks like game enters into an endless loop.

(S2 - Confirmed) <Bug>

Most helpful comment

So, there is this Ray Decker, Merchant guy saved inside o.-1.-1
They have a duffel bag that contains 5 types of items: saw, nailgun, heavy_flashlight, circsaw_off and rifle_22.
There are 2 filled pockets in the bag, with approx. 6561 copies of each item in each pocket, 65611 items in total. Uhm...

Removing the duffel bag severely shortens the debugmsg spam and makes the save loadable. Why they have so much stuff is beyond me - a bug in trader restock code?

o.-1.-1 without the duffel bag: o.-1.-1.zip
The duffel bag (for the curious): duffelbag.txt

All 5 comments

So I left it working for several hours, and debug.log is as follows:
-regular debug messages (see linked debug.log in OP)
-backtrace (see linked debug.log in OP)
-98683 lines of ERROR : src/item_contents.cpp:282 [void item_contents::combine(const item_contents&)] error: tried to put an item into a pocket that can't fit into it while loading. err: only mods can go into mod pocket
-98683 lines of ERROR : src/item_contents.cpp:282 [void item_contents::combine(const item_contents&)] error: tried to put an item into a pocket that can't fit into it while loading. err: item is too long
After that nothing else is written to debug.log even if game process is left working for hours. It continues eating up about 1 processor core worth of CPU time.

And for comparison, here's a save and debug.log of the game where it doesn't freeze but still have that error and multiple same lines in the log (but not nearly quite numerous, only 45 of each). Note that save in OP was made in the same world, just after exploring it a little compared to this one - I just went east and visited a couple of cities.

So, there is this Ray Decker, Merchant guy saved inside o.-1.-1
They have a duffel bag that contains 5 types of items: saw, nailgun, heavy_flashlight, circsaw_off and rifle_22.
There are 2 filled pockets in the bag, with approx. 6561 copies of each item in each pocket, 65611 items in total. Uhm...

Removing the duffel bag severely shortens the debugmsg spam and makes the save loadable. Why they have so much stuff is beyond me - a bug in trader restock code?

o.-1.-1 without the duffel bag: o.-1.-1.zip
The duffel bag (for the curious): duffelbag.txt

I've run into at least one other person who had an NPC with an ungodly amount of items stored in some container.
EDIT: Now two.

I get this with a radio being cloned in my inventory each time I load a 2-minute old save of a helicopter crash. Seems to happen 100% of the time.
save.zip

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RogueYun picture RogueYun  路  3Comments

AdonaiJr picture AdonaiJr  路  3Comments

ituluwituluwzev picture ituluwituluwzev  路  3Comments

BorkBorkGoesTheCode picture BorkBorkGoesTheCode  路  3Comments

Coolthulhu picture Coolthulhu  路  3Comments