Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006015Dwarf FortressDwarf Mode -- Reclaimpublic2012-06-12 14:062014-08-25 11:25
hessuu 
Toady One 
normalmajoralways
resolvedfixed 
PCWindows 7 Professional 64-bit6.1
0.34.11 
0.40.11 
0006015: Reclaiming multiple times gradually slows the game down, leather starts to appear
I have a fort I lost multiple times to whatever reasons. After about ten attempts at getting it to stand I noticed that the average FPS was 60 for some reason. After a couple more times it was finally 4, then 0, then the game was almost completely frozen. Every frame took seconds to process.

I replicated this 3 more times with a pristine site, and every time leather started to appear all over the landscape. My last attempt, which was done with an embarking party without any items at all, the leather count on the map still reached 2000 according to the stocks screen.
Create a fort and abandon and reclaim it around 12 times.
Game was completely unmodded.
crash, Fortress, fps, lag, leather, reclaim
related to 0001181confirmed Footkerchief Items from underground cavern scattered on surface 
has duplicate 0006302resolved Dwarfu Site Crash 
has duplicate 0006400resolved Footkerchief Creature and leather duplication on reclaim or revisit 
has duplicate 0006491resolved Knight Otu Unusual number animals appearing near werebeast lairs freezes the game constantly 
related to 0005106confirmed Footkerchief Bandits/companions respawn/duplicate in their original location 
related to 0006549new  Fortress unretirement causes lag / slowness with military usage 
Issue History
2012-06-12 14:06hessuuNew Issue
2012-06-12 14:07hessuuIssue Monitored: hessuu
2012-06-12 14:07hessuuIssue End Monitor: hessuu
2012-06-12 14:08hessuuIssue Monitored: hessuu
2012-06-12 14:31hessuuNote Added: 0022968
2012-06-12 16:42FootkerchiefRelationship addedrelated to 0001181
2012-06-12 18:24QuietustNote Added: 0022974
2012-06-12 18:25QuietustNote Edited: 0022974bug_revision_view_page.php?bugnote_id=0022974#r8571
2012-06-13 12:34hessuuTag Attached: reclaim
2012-06-13 12:34hessuuTag Attached: fps
2012-06-13 12:34hessuuTag Attached: leather
2012-06-13 12:37hessuuNote Edited: 0022968bug_revision_view_page.php?bugnote_id=0022968#r8573
2012-06-13 13:27agNote Added: 0022981
2012-06-13 13:38agNote Added: 0022982
2012-06-14 08:15FootkerchiefNote Edited: 0022981bug_revision_view_page.php?bugnote_id=0022981#r8575
2013-03-19 13:23warmistIssue Monitored: warmist
2013-03-19 13:24warmistNote Added: 0023907
2013-04-09 19:06DwarfuRelationship addedhas duplicate 0006302
2013-04-09 19:08DwarfuNote Added: 0023925
2013-04-09 19:09DwarfuNote Edited: 0022982bug_revision_view_page.php?bugnote_id=0022982#r8920
2013-04-10 05:04RedmannineNote Added: 0023927
2013-04-10 05:06RedmannineNote Edited: 0023927bug_revision_view_page.php?bugnote_id=0023927#r8922
2013-04-10 05:07RedmannineIssue Monitored: Redmannine
2013-05-10 10:03RedmannineNote Added: 0023964
2013-05-10 10:06RedmannineTag Attached: crash
2013-05-10 10:06RedmannineTag Attached: Fortress
2013-05-10 10:06RedmannineTag Attached: lag
2013-06-12 15:20caldfirNote Added: 0024001
2014-01-03 10:43FootkerchiefRelationship addedhas duplicate 0006400
2014-01-03 10:43FootkerchiefRelationship addedrelated to 0005106
2014-03-26 00:06agIssue Monitored: ag
2014-03-26 01:49DwarfuAssigned To => Dwarfu
2014-03-26 01:49DwarfuStatusnew => acknowledged
2014-05-28 03:11Knight OtuRelationship addedhas duplicate 0006491
2014-07-09 20:51hessuuNote Added: 0025470
2014-07-16 13:40QuietustNote Added: 0026664
2014-07-20 11:23hessuuNote Added: 0027039
2014-08-08 02:26bralbaardNote Added: 0028575
2014-08-08 09:05FootkerchiefStatusacknowledged => confirmed
2014-08-08 16:03FootkerchiefRelationship addedrelated to 0006549
2014-08-25 11:25Toady OneNote Added: 0029612
2014-08-25 11:25Toady OneStatusconfirmed => resolved
2014-08-25 11:25Toady OneFixed in Version => Next Version
2014-08-25 11:25Toady OneResolutionopen => fixed
2014-08-25 11:25Toady OneAssigned ToDwarfu => Toady One

Notes
(0022968)
hessuu   
2012-06-12 14:31   
(edited on: 2012-06-13 12:37)
Savefile of the last test:

http://dffd.wimbli.com/file.php?id=6491 [^]

(0022974)
Quietust   
2012-06-12 18:24   
(edited on: 2012-06-12 18:25)
The leather is coming from subterranean animal peoples, but unless you've got a gigantic embark, you should only be getting a dozen or less per reclaim...

(0022981)
ag   
2012-06-13 13:27   
(edited on: 2012-06-14 08:15)
After reclaim in that save I got 8000 amphibian men in the caves, and 400000 spider webs with the removed+garbage_collect flags (the ones set when an item is removed, but not deallocated yet). The webs do disappear as expected if I wait about 50 frames.

Profiling shows 95% load coming from unit friend-or-foe checks.

(0022982)
ag   
2012-06-13 13:38   
(edited on: 2013-04-09 19:09)
Here is a complete list of stuff there:

http://pastebin.com/ULEBUwEF [^]

After doing a few calculations, it seems that the numbers fit a hypothesis of some things doubling on every subsequent reclaim, with resulting exponential growth.

EDIT: this link no longer appears to work -Dwarfu

(0023907)
warmist   
2013-03-19 13:24   
Same happens if you sleep in the same fort. Unit count grows almost exponentially.
(0023925)
Dwarfu   
2013-04-09 19:08   
Redmannine's save from 0006302:
http://www.2shared.com/file/T4b_gEaH/region1.html [^]
(0023927)
Redmannine   
2013-04-10 05:04   
(edited on: 2013-04-10 05:06)
yeah mine is a very similar problem, but has gotten to the point I cannot get an adventurer to enter the fortress site without the game crashing or locking up.

 Only noticed the 'leather explosion' after attempting another reclaim on the same site and everything was slowed down

(0023964)
Redmannine   
2013-05-10 10:03   
I've installed DFhack to attempt to solve the problem with my fort, auto-dumping and deleting all scattered items that covered the map, as well as removing contaminates from the dwarves and remaining items. Despite doing this, the game still runs at an abysmally slow rate, the frame rate something around one frame every 30seconds if I'm lucky, most the time it seems that Dwarf Fortress will fail to respond.
(0024001)
caldfir   
2013-06-12 15:20   
This issue appears in several ways, and seems to be related to the site re-generating items and creatures for sites, as it does with worldgen sites (like non-historical people in towns still being there when you come back, in a consistent way).

This is a problem since player sites remember EVERYTHING that is left on them, and as such on each successive load, brings back both the originals AND a generated copy of everything.
(0025470)
hessuu   
2014-07-09 20:51   
Still present in 0.40.01.
(0026664)
Quietust   
2014-07-16 13:40   
I tried getting this to happen in 0.40.03, but the animal people are simply vanishing altogether after the initial abandon (and don't show up again on reclaim).
(0027039)
hessuu   
2014-07-20 11:23   
Quietust, are you getting the massive performance hit and the leather still? Because I sure did.
(0028575)
bralbaard   
2014-08-08 02:26   
I can reproduce this in 40.06.

In 34.0x this problem was present in adventure mode as well, and in this case I reproduced it in adventure mode in 40.06, I guess the underlying problem is the same as for fortress mode.

I visited an abandoned -player created- fortress, and after sleeping there repeatedly (five or six times?) severe lag started to occur, and leather started to accumulate on the surface. Here is a save game with an unfortunate adventurer at the site, the game is hardly responsive due to lag. leather is present on the surface (but was never produced at the site)

http://dffd.wimbli.com/file.php?id=9326 [^]

This is a rather nasty bug that had a big impact on adventure succession games in 34.11, causing some games to be abandoned completely, and severely impacting others.
(0029612)
Toady One   
2014-08-25 11:25   
The animal people camp items can't be easily salvaged without the full army item update. I'm just going to remove the items themselves from the camps for the time being and leave a note to make sure this sort of thing doesn't happen when they return.