Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0004833Dwarf FortressDwarf Mode -- Embark/Setuppublic2011-08-16 12:392012-12-25 10:11
Panzerdwarf 
Footkerchief 
highcrashalways
resolvedduplicate 
PCWindows XPSP3
0.31.25 
 
0004833: When embarking, crashes when memory use reaches 2GB.
I know there is similar issues, like http://www.bay12games.com/dwarves/mantisbt/view.php?id=136 [^]
However I have been getting crashes using embark areas with sizes 4x4, 3x4 and even 3x3, then I gave up for the night.
I am using Lazy Newb Pack and the Ironhand tileset.

I think I have changed settings in Newb Pack since the crash occured but if my memory serves me right I set every option to YES except Invaders. Child cap 20:1000.

In task manager I see memory use climbing up to 2GB and then it crashes.

Crash dialogue shows:
AppName: dwarf fortress.exe AppVer: 0.0.0.0 ModName: msvcr100.dll
ModVer: 10.0.30319.1 Offset: 0008d635
Use save at:
http://dffd.wimbli.com/file.php?id=4848 [^]

Embark on position show here:
http://img4.imageshack.us/img4/4194/crashloc.png [^]

I used finder with No Aquifer, Multi shallow metals, Multi deep metals.
Chose overlapping area as shown in screenshot.

I use DFVIDTUTS2011 (or whatever it's called) starting kit.
No tags attached.
duplicate of 0005077resolved Toady One Browsing world gen map causes corrupted feature files 
related to 0000136new  When embarking on large area, DF hits 2GB memory limit and crashes 
has duplicate 0004888resolved Logical2u Game crash when loading save - out of memory? 
Issue History
2011-08-16 12:39PanzerdwarfNew Issue
2011-08-16 12:40PanzerdwarfNote Added: 0018533
2011-08-16 12:42QuietustNote Added: 0018534
2011-08-16 12:43QuietustNote Deleted: 0018534
2011-08-16 12:49QuietustNote Added: 0018535
2011-08-16 12:50QuietustNote Edited: 0018535bug_revision_view_page.php?bugnote_id=0018535#r6939
2011-08-16 13:01FootkerchiefNote Added: 0018536
2011-08-16 13:01FootkerchiefTag Attached: AWAITING UPDATE
2011-08-16 13:03PanzerdwarfNote Added: 0018537
2011-08-16 13:04PanzerdwarfNote Added: 0018538
2011-08-16 13:19PanzerdwarfNote Added: 0018539
2011-08-16 13:35PanzerdwarfNote Added: 0018540
2011-08-17 06:30FootkerchiefNote Added: 0018553
2011-08-17 06:37PanzerdwarfNote Added: 0018554
2011-08-17 06:38PanzerdwarfNote Edited: 0018540bug_revision_view_page.php?bugnote_id=0018540#r6944
2011-08-18 05:34Knight OtuNote Added: 0018564
2011-08-21 16:48arclanceNote Added: 0018607
2012-02-19 08:19FootkerchiefRelationship addedchild of 0000136
2012-02-21 06:52FootkerchiefRelationship replacedrelated to 0000136
2012-02-21 06:52FootkerchiefRelationship addedrelated to 0002713
2012-02-21 06:53FootkerchiefNote Added: 0020365
2012-02-25 04:56PanzerdwarfNote Added: 0020649
2012-02-25 12:34FootkerchiefNote Added: 0020671
2012-02-26 11:49BuglistIssue Monitored: Buglist
2012-02-26 12:11UristocratNote Added: 0020757
2012-03-03 13:15Logical2uRelationship addedhas duplicate 0004888
2012-03-06 09:11FootkerchiefNote Added: 0021174
2012-03-06 09:11FootkerchiefRelationship addedduplicate of 0005077
2012-03-06 09:11FootkerchiefStatusnew => resolved
2012-03-06 09:11FootkerchiefResolutionopen => duplicate
2012-03-06 09:11FootkerchiefAssigned To => Footkerchief
2012-03-06 09:22FootkerchiefRelationship deletedrelated to 0002713
2012-03-07 08:51BuglistIssue End Monitor: Buglist
2012-12-25 10:11DwarfuTag Detached: AWAITING UPDATE

Notes
(0018533)
Panzerdwarf   
2011-08-16 12:40   
Oh, and I think I had Population cap at 100, but I doubt that's the problem.
(0018535)
Quietust   
2011-08-16 12:49   
(edited on: 2011-08-16 12:50)
Using a vanilla Dwarf Fortress 0.31.25 SDL installation on Windows 7 64-bit, I embarked in that exact region (using "Play Now!") and it worked just fine - only 252MB of memory in use.

(0018536)
Footkerchief   
2011-08-16 13:01   
Reminder sent to: Panzerdwarf

Do you still experience this problem if you load the save in vanilla DF with no third-party utilities? You can download vanilla DF at http://bay12games.com/dwarves/ [^]
(0018537)
Panzerdwarf   
2011-08-16 13:03   
Odd.
I just tried 2x3 and 2x2 sizes. They didn't crash, but ended up at 1.5GB and 1.5GB use respectively.
However after the introductory text when I press enter I just get a black screen and the game is not responding.
Once I got the graphics drawn but the game was frozen. Moving windows around didn't refresh the graphics on the game window. Music kept playing though.

Also, I just tried a 4x4 area in two other parts of the map. No problems.

I have only ever used Lazy Newb Pack btw.
(0018538)
Panzerdwarf   
2011-08-16 13:04   
Will try vanilla SDL.
(0018539)
Panzerdwarf   
2011-08-16 13:19   
Yes. Crashed in Vanilla DF SDL with music.
Same 3x3 area.
(0018540)
Panzerdwarf   
2011-08-16 13:35   
(edited on: 2011-08-17 06:38)
And crashed in Legacy DF with music. Same 3x3 area.

BUT: Didn't crash in Legacy DF without music. Same 3x3 area.
The memory use stopped at about 1943MB (edit: fixed typo) and I got the intro text.
But, like before, the game was not responding after pressing enter.

Still, I'd say it's pretty much "crashing" :)

(0018553)
Footkerchief   
2011-08-17 06:30   
Reminder sent to: Panzerdwarf

Have you tried updating your audio drivers? Enabling music shouldn't cause the game to use gigabytes more memory.
(0018554)
Panzerdwarf   
2011-08-17 06:37   
Heh, sorry that was a typo. I meant it used 1943MB :P , or 1.943GB ..
So just under 2GB, hence not crashing but still strange.
Did anyone else manage to reproduce it? It's really weird that I should manage to crash it but Quietust doesn't.
I also tried embarking on areas (3x3) covering only either of the 2 biomes in the screenshot area.
Still crashed. There's something about that place.
(0018564)
Knight Otu   
2011-08-18 05:34   
I didn't manage to embark there, and didn't even get to the "You have arrived" speech.
You can export the worldgen info from legends mode and use that to regenerate the world. Does the crash persist in the regenerated world?
(0018607)
arclance   
2011-08-21 16:48   
I am seeing the same thing with 0.31.25 linux version.
Memory use steadily increases after embark and eventualy after about 5-10 minutes the strike the earth screen is shown. After that only a black screen with a fps counter is shown. The game then apears to lockup as the fps counter does not change.
Final total memory usage was 77.5% of 3.0 GB of Ram or 2380.8 MB and occured after the game appeared to have locked up.
(0020365)
Footkerchief   
2012-02-21 06:53   
Reminder sent to: Panzerdwarf

Did your high-memory 3x3 embarks have an excessively high number of X-levels? That would point to feature corruption as in 0002713 and 0005077.
(0020649)
Panzerdwarf   
2012-02-25 04:56   
Urgh, I haven't played the game much since August last year so I have no detailed memory of the crash. And what's X-levels? :) Sorry...
(0020671)
Footkerchief   
2012-02-25 12:34   
Oops, I meant z-levels.
(0020757)
Uristocrat   
2012-02-26 12:11   
You're going over the 2 GB memory limit? That would appear to be related to this:

http://www.codinghorror.com/blog/2007/03/dude-wheres-my-4-gigabytes-of-ram.html [^]

http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx [^]

We may have to start a "buy Toady a 64-bit dev environment" thing on Kickstarter or something.
(0021174)
Footkerchief   
2012-03-06 09:11   
Your save had got the corruption.