View Issue Details

IDProjectCategoryView StatusLast Update
0000046Dwarf FortressTechnical -- Generalpublic2012-01-12 10:52
ReporterGreyhawk Assigned Touser6 
PriorityhighSeveritymajorReproducibilityhave not tried
Status resolvedResolutionunable to reproduce 
PlatformWindowsOSVistaOS Versionsp1
Summary0000046: After "Create New World Now!", there was a memory leak and process left running after quitting.
DescriptionIt 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.
Steps To Reproduce1. 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
Additional InformationCreated 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]
TagsNo tags attached.

Relationships

parent of 0000471 resolveduser6 Large Worlds often cause crashing, graphical corruption 
has duplicate 0000216 closeduser6 Dwarf Fortress fails to release memory after world gen 
has duplicate 0000217 closeduser6 World Gen consumes massive amounts of memory 
related to 0002463 resolveduser6 Reproducible crash on worldgen 

Activities

Someone_r_c_tm

2010-04-03 19:23

reporter   ~0000748

Last edited: 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

Tallim

2010-04-06 09:50

reporter   ~0001501

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

Greyhawk

2010-04-08 09:33

reporter   ~0002060

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

arcaner

2010-04-08 15:35

reporter   ~0002175

reproduced in 0.31.02

Greyhawk

2010-04-08 21:07

reporter   ~0002249

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.

arcaner

2010-04-09 07:53

reporter   ~0002324

@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.

Greyhawk

2010-04-12 20:33

reporter   ~0003192

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.

smjjames

2010-04-18 10:05

reporter   ~0004056

Still happening in .03 as well for the create new world now.

user6

2010-05-27 14:00

  ~0007399

Does anyone have any updates on this one?

user6

2012-01-12 10:52

  ~0019359

Closing due to the lack of corroboration for recent versions.

Issue History

Date Modified Username Field Change
2010-04-01 16:52 Greyhawk New Issue
2010-04-03 11:17 user6 Relationship added parent of 0000216
2010-04-03 11:18 user6 Relationship added parent of 0000217
2010-04-03 19:23 Someone_r_c_tm Note Added: 0000748
2010-04-03 19:23 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:26 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:27 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:36 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:36 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:44 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:45 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:50 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:51 Someone_r_c_tm Note Edited: 0000748
2010-04-03 19:52 Someone_r_c_tm Note Edited: 0000748
2010-04-05 09:15 user6 Relationship added parent of 0000471
2010-04-05 09:16 user6 Relationship replaced related to 0000471
2010-04-06 09:17 user6 Relationship replaced parent of 0000471
2010-04-06 09:50 Tallim Note Added: 0001501
2010-04-08 09:33 Greyhawk Note Added: 0002060
2010-04-08 15:35 arcaner Note Added: 0002175
2010-04-08 21:07 Greyhawk Note Added: 0002249
2010-04-09 07:53 arcaner Note Added: 0002324
2010-04-12 20:33 Greyhawk Note Added: 0003192
2010-04-18 10:05 smjjames Note Added: 0004056
2010-04-29 13:10 user6 Category General => Technical
2010-05-27 13:56 user6 Relationship replaced has duplicate 0000216
2010-05-27 13:59 user6 Relationship replaced has duplicate 0000217
2010-05-27 14:00 user6 Note Added: 0007399
2010-06-29 07:38 user6 Category Technical => Technical -- General
2010-07-07 07:32 user6 Relationship added related to 0002432
2010-07-07 07:36 user6 Relationship deleted related to 0002432
2010-07-07 07:36 user6 Relationship added related to 0002463
2012-01-12 10:52 user6 Note Added: 0019359
2012-01-12 10:52 user6 Status new => resolved
2012-01-12 10:52 user6 Resolution open => unable to reproduce
2012-01-12 10:52 user6 Assigned To => user6