Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0000046Dwarf FortressTechnical -- Generalpublic2010-04-01 16:522012-01-12 10:52
Greyhawk 
Footkerchief 
highmajorhave not tried
resolvedunable to reproduce 
WindowsVistasp1
 
 
0000046: After "Create New World Now!", there was a memory leak and process left running after quitting.
It did finally create the world after a while and didn't release the memory after getting back to the menu.

The process is taking 1.4gb of ram even after running another instance of DF. Required a "end process" to recover.
1. Create new world now! (posted gen)
2. 'd' export
3. 'enter' accept
4. notice process with 1.4gb
5. quit
6. notice process still in process list at 1.4gb
Created in DF v0.31.01.

[WORLD_GEN]
    [TITLE:MEDIUM ISLAND]
    [SEED:226265626]
    [HISTORY_SEED:1791262068]
    [NAME_SEED:1253073509]
    [CREATURE_SEED:869729219]
    [DIM:129:129]
    [EMBARK_POINTS:1274]
    [END_YEAR:1050]
    [BEAST_END_YEAR:200:80]
    [REVEAL_ALL_HISTORY:1]
    [CULL_HISTORICAL_FIGURES:0]
    [ELEVATION:1:400:1600:1600]
    [RAINFALL:0:100:200:200]
    [TEMPERATURE:25:75:200:200]
    [DRAINAGE:0:100:200:200]
    [VOLCANISM:0:100:200:200]
    [SAVAGERY:0:100:200:200]
    [ELEVATION_FREQUENCY:4:2:0:1:0:1]
    [RAIN_FREQUENCY:1:1:1:1:1:1]
    [DRAINAGE_FREQUENCY:1:1:1:1:1:1]
    [TEMPERATURE_FREQUENCY:1:1:1:1:1:1]
    [SAVAGERY_FREQUENCY:1:1:1:1:1:1]
    [VOLCANISM_FREQUENCY:1:1:1:1:1:1]
    [TITAN_NUMBER:9]
    [TITAN_ATTACK_TRIGGER:80:0:100000]
    [DEMON_NUMBER:28]
    [GOOD_SQ_COUNTS:6:63:0]
    [EVIL_SQ_COUNTS:6:63:0]
    [PEAK_NUMBER_MIN:3]
    [PARTIAL_OCEAN_EDGE_MIN:0]
    [COMPLETE_OCEAN_EDGE_MIN:4]
    [VOLCANO_MIN:1]
    [REGION_COUNTS:SWAMP:66:0:0]
    [REGION_COUNTS:DESERT:66:0:0]
    [REGION_COUNTS:FOREST:264:0:0]
    [REGION_COUNTS:MOUNTAINS:528:0:0]
    [REGION_COUNTS:OCEAN:528:0:0]
    [REGION_COUNTS:GLACIER:16:0:0]
    [REGION_COUNTS:TUNDRA:33:0:0]
    [REGION_COUNTS:GRASSLAND:528:0:0]
    [REGION_COUNTS:HILLS:528:0:0]
    [EROSION_CYCLE_COUNT:250]
    [RIVER_MINS:25:25]
    [PERIODICALLY_ERODE_EXTREMES:1]
    [OROGRAPHIC_PRECIPITATION:1]
    [SUBREGION_MAX:2750]
    [CAVERN_LAYER_COUNT:3]
    [CAVERN_LAYER_OPENNESS_MIN:0]
    [CAVERN_LAYER_OPENNESS_MAX:100]
    [CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]
    [CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]
    [CAVERN_LAYER_WATER_MIN:0]
    [CAVERN_LAYER_WATER_MAX:100]
    [HAVE_BOTTOM_LAYER_1:1]
    [HAVE_BOTTOM_LAYER_2:1]
    [LEVELS_ABOVE_GROUND:15]
    [LEVELS_ABOVE_LAYER_1:5]
    [LEVELS_ABOVE_LAYER_2:1]
    [LEVELS_ABOVE_LAYER_3:1]
    [LEVELS_ABOVE_LAYER_4:1]
    [LEVELS_ABOVE_LAYER_5:2]
    [LEVELS_AT_BOTTOM:1]
    [CAVE_MIN_SIZE:5]
    [CAVE_MIN_SIZE:5]
    [CAVE_MAX_SIZE:25]
    [MOUNTAIN_CAVE_MIN:5]
    [NON_MOUNTAIN_CAVE_MIN:10]
    [ALL_CAVES_VISIBLE:0]
    [SHOW_EMBARK_TUNNEL:2]
    [TOTAL_CIV_NUMBER:10]
    [TOTAL_CIV_POPULATION:20000]
    [PLAYABLE_CIVILIZATION_REQUIRED:1]
    [ELEVATION_RANGES:8000:1056:528]
    [RAIN_RANGES:528:1056:528]
    [DRAINAGE_RANGES:528:1056:528]
    [SAVAGERY_RANGES:528:1056:528]
    [VOLCANISM_RANGES:528:1056:528]
No tags attached.
parent of 0000471resolved Footkerchief Large Worlds often cause crashing, graphical corruption 
has duplicate 0000216closed Footkerchief Dwarf Fortress fails to release memory after world gen 
has duplicate 0000217closed Footkerchief World Gen consumes massive amounts of memory 
related to 0002463resolved Footkerchief Reproducible crash on worldgen 
Issue History
2010-04-01 16:52GreyhawkNew Issue
2010-04-02 20:29GreyhawkIssue Monitored: Greyhawk
2010-04-03 11:17FootkerchiefRelationship addedparent of 0000216
2010-04-03 11:18FootkerchiefRelationship addedparent of 0000217
2010-04-03 19:23Someone_r_c_tmNote Added: 0000748
2010-04-03 19:23Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r200
2010-04-03 19:26Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r201
2010-04-03 19:27Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r202
2010-04-03 19:36Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r203
2010-04-03 19:36Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r204
2010-04-03 19:44Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r207
2010-04-03 19:45Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r208
2010-04-03 19:50Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r209
2010-04-03 19:51Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r210
2010-04-03 19:52Someone_r_c_tmNote Edited: 0000748bug_revision_view_page.php?bugnote_id=0000748#r211
2010-04-03 20:37Someone_r_c_tmIssue Monitored: Someone_r_c_tm
2010-04-05 09:15FootkerchiefRelationship addedparent of 0000471
2010-04-05 09:16FootkerchiefRelationship replacedrelated to 0000471
2010-04-06 09:17FootkerchiefRelationship replacedparent of 0000471
2010-04-06 09:50TallimNote Added: 0001501
2010-04-08 09:33GreyhawkNote Added: 0002060
2010-04-08 15:35arcanerNote Added: 0002175
2010-04-08 21:07GreyhawkNote Added: 0002249
2010-04-09 07:53arcanerNote Added: 0002324
2010-04-09 07:53arcanerIssue Monitored: arcaner
2010-04-12 20:33GreyhawkNote Added: 0003192
2010-04-14 12:43lord_chaos22000Issue Monitored: lord_chaos22000
2010-04-18 10:05smjjamesNote Added: 0004056
2010-04-29 13:10FootkerchiefCategoryGeneral => Technical
2010-05-27 13:56FootkerchiefRelationship replacedhas duplicate 0000216
2010-05-27 13:59FootkerchiefRelationship replacedhas duplicate 0000217
2010-05-27 14:00FootkerchiefNote Added: 0007399
2010-06-29 07:38FootkerchiefCategoryTechnical => Technical -- General
2010-07-07 07:32FootkerchiefRelationship addedrelated to 0002432
2010-07-07 07:36FootkerchiefRelationship deletedrelated to 0002432
2010-07-07 07:36FootkerchiefRelationship addedrelated to 0002463
2012-01-12 10:52FootkerchiefNote Added: 0019359
2012-01-12 10:52FootkerchiefStatusnew => resolved
2012-01-12 10:52FootkerchiefResolutionopen => unable to reproduce
2012-01-12 10:52FootkerchiefAssigned To => Footkerchief

Notes
(0000748)
Someone_r_c_tm   
2010-04-03 19:23   
(edited on: 2010-04-03 19:52)
Note high memory usage during world gen (roughly 1.5GB at start of world gen) seems to be related to having GRAPHICS set to YES. See 0000217:0000747

(0001501)
Tallim   
2010-04-06 09:50   
I have to often kill the process once I have quit the game, keeps running in memory. Vista SP1 also. I use the default Init file so my memory footprint is much smaller after I quit DF. Usually around 150MB
(0002060)
Greyhawk   
2010-04-08 09:33   
First, graphics was set to yes when I did this.

Second, tried with latest version:

- Memory was 400-550m.
- After creation the memory dropped back down to 200m.
- Exiting didn't result in the process being left over. This may have been my OS complaining about the memory (or the game).

So this probably can be closed as fixed in 0.31.02
(0002175)
arcaner   
2010-04-08 15:35   
reproduced in 0.31.02
(0002249)
Greyhawk   
2010-04-08 21:07   
Tried again, this time with exactly the same seed.

1.5gb to 490mb during gen
1.5gb to 220mb after returning to menu
and no left over process after quitting.

What part(s) are you reproducing arcaner?
Computer specs might help too.
(0002324)
arcaner   
2010-04-09 07:53   
@Greyhawk On my system Dwarf Fortress does not quit cleanly. A process will still be shown to be running in the task manager after the window has closed. Quitting after world gen the assigned ram was around 1.5 gig, without world gen the assigned memory was about a meg.

Running Windows Vista Business SP2.
(0003192)
Greyhawk   
2010-04-12 20:33   
Your right, it definitely has a problem still in 0.31.03. I created a map and embarked only to have incredible slow downs for my entire OS. I exited and the process was left behind. Memory use never exceeded 1gb though and the process only had 200mb left but was still taking cpu time.
(0004056)
smjjames   
2010-04-18 10:05   
Still happening in .03 as well for the create new world now.
(0007399)
Footkerchief   
2010-05-27 14:00   
Does anyone have any updates on this one?
(0019359)
Footkerchief   
2012-01-12 10:52   
Closing due to the lack of corroboration for recent versions.