View Issue Details

IDProjectCategoryView StatusLast Update
0004833Dwarf FortressDwarf Mode -- Embark/Setuppublic2012-12-25 10:11
ReporterPanzerdwarf Assigned Touser6 
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionduplicate 
PlatformPCOSWindows XPOS VersionSP3
Product Version0.31.25 
Summary0004833: When embarking, crashes when memory use reaches 2GB.
DescriptionI 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
Steps To ReproduceUse 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.
TagsNo tags attached.

Relationships

duplicate of 0005077 resolvedToady One Browsing world gen map causes corrupted feature files 
related to 0000136 new When embarking on large area, DF hits 2GB memory limit and crashes 
has duplicate 0004888 resolvedLogical2u Game crash when loading save - out of memory? 

Activities

Panzerdwarf

2011-08-16 12:40

reporter   ~0018533

Oh, and I think I had Population cap at 100, but I doubt that's the problem.

Quietust

2011-08-16 12:49

reporter   ~0018535

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

user6

2011-08-16 13:01

  ~0018536

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/

Panzerdwarf

2011-08-16 13:03

reporter   ~0018537

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.

Panzerdwarf

2011-08-16 13:04

reporter   ~0018538

Will try vanilla SDL.

Panzerdwarf

2011-08-16 13:19

reporter   ~0018539

Yes. Crashed in Vanilla DF SDL with music.
Same 3x3 area.

Panzerdwarf

2011-08-16 13:35

reporter   ~0018540

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

user6

2011-08-17 06:30

  ~0018553

Reminder sent to: Panzerdwarf

Have you tried updating your audio drivers? Enabling music shouldn't cause the game to use gigabytes more memory.

Panzerdwarf

2011-08-17 06:37

reporter   ~0018554

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.

user1294

2011-08-18 05:34

  ~0018564

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?

arclance

2011-08-21 16:48

reporter   ~0018607

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.

user6

2012-02-21 06:53

  ~0020365

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.

Panzerdwarf

2012-02-25 04:56

reporter   ~0020649

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

user6

2012-02-25 12:34

  ~0020671

Oops, I meant z-levels.

Uristocrat

2012-02-26 12:11

reporter   ~0020757

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.

user6

2012-03-06 09:11

  ~0021174

Your save had got the corruption.

Issue History

Date Modified Username Field Change
2011-08-16 12:39 Panzerdwarf New Issue
2011-08-16 12:40 Panzerdwarf Note Added: 0018533
2011-08-16 12:49 Quietust Note Added: 0018535
2011-08-16 12:50 Quietust Note Edited: 0018535
2011-08-16 13:01 user6 Note Added: 0018536
2011-08-16 13:01 user6 Tag Attached: AWAITING UPDATE
2011-08-16 13:03 Panzerdwarf Note Added: 0018537
2011-08-16 13:04 Panzerdwarf Note Added: 0018538
2011-08-16 13:19 Panzerdwarf Note Added: 0018539
2011-08-16 13:35 Panzerdwarf Note Added: 0018540
2011-08-17 06:30 user6 Note Added: 0018553
2011-08-17 06:37 Panzerdwarf Note Added: 0018554
2011-08-17 06:38 Panzerdwarf Note Edited: 0018540
2011-08-18 05:34 user1294 Note Added: 0018564
2011-08-21 16:48 arclance Note Added: 0018607
2012-02-19 08:19 user6 Relationship added child of 0000136
2012-02-21 06:52 user6 Relationship replaced related to 0000136
2012-02-21 06:52 user6 Relationship added related to 0002713
2012-02-21 06:53 user6 Note Added: 0020365
2012-02-25 04:56 Panzerdwarf Note Added: 0020649
2012-02-25 12:34 user6 Note Added: 0020671
2012-02-26 12:11 Uristocrat Note Added: 0020757
2012-03-03 13:15 Logical2u Relationship added has duplicate 0004888
2012-03-06 09:11 user6 Note Added: 0021174
2012-03-06 09:11 user6 Relationship added duplicate of 0005077
2012-03-06 09:11 user6 Status new => resolved
2012-03-06 09:11 user6 Resolution open => duplicate
2012-03-06 09:11 user6 Assigned To => user6
2012-03-06 09:22 user6 Relationship deleted related to 0002713
2012-12-25 10:11 user11 Tag Detached: AWAITING UPDATE