Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0005622Dwarf FortressTechnical -- Generalpublic2012-03-11 12:532012-03-12 17:11
Nomlets 
Logical2u 
highcrashrandom
resolvedduplicate 
WindowsWindows XPWindows XP 64
0.34.05 
 
0005622: Crash on large embark - memory related
Getting the Windows Update message while embarking/loading map had caused file corruption, and I am now unable to embark in Dwarf Fortress. Attempting to do so caused permenant freeze of Dwarf Fortress and slowdown of the PC.
Update Windows from the taskbar,
Wait five minutes in the Embark Screen,
Before it pops up, start the Embark. This has to be timed perfectly, otherwise
the message will show up before/after the embark load has completed.
Dwarf Fortress will now be unable to embark and will freeze on attempt.
This may be very hard to reproduce, but if it happens, will cause Dwarf Fortress to freeze. Re-installing will be needed as a get-around for this problem until it is fixed.
No tags attached.
duplicate of 0000136new  When embarking on large area, DF hits 2GB memory limit and crashes 
Issue History
2012-03-11 12:53NomletsNew Issue
2012-03-11 13:26Logical2uNote Added: 0021370
2012-03-11 13:26Logical2uStatusnew => resolved
2012-03-11 13:26Logical2uResolutionopen => won't fix
2012-03-11 13:26Logical2uAssigned To => Logical2u
2012-03-11 18:14NomletsNote Added: 0021382
2012-03-11 18:14NomletsStatusresolved => needs feedback
2012-03-11 18:14NomletsResolutionwon't fix => reopened
2012-03-11 19:28FootkerchiefNote Added: 0021389
2012-03-11 19:28FootkerchiefTag Attached: AWAITING UPDATE
2012-03-11 19:35NomletsNote Added: 0021392
2012-03-11 19:35NomletsStatusneeds feedback => assigned
2012-03-11 19:37NomletsNote Edited: 0021392bug_revision_view_page.php?bugnote_id=0021392#r7963
2012-03-11 19:51NomletsNote Edited: 0021392bug_revision_view_page.php?bugnote_id=0021392#r7964
2012-03-11 20:07Logical2uNote Added: 0021394
2012-03-11 20:07Logical2uAssigned ToLogical2u =>
2012-03-11 20:07Logical2uResolutionreopened => open
2012-03-11 21:23Logical2uStatusassigned => new
2012-03-12 08:00NomletsNote Added: 0021407
2012-03-12 08:11NomletsNote Edited: 0021407bug_revision_view_page.php?bugnote_id=0021407#r7970
2012-03-12 08:43Logical2uNote Added: 0021409
2012-03-12 09:20FootkerchiefNote Added: 0021410
2012-03-12 09:49NomletsNote Added: 0021411
2012-03-12 10:07Logical2uNote Added: 0021413
2012-03-12 10:08FootkerchiefNote Added: 0021415
2012-03-12 10:08FootkerchiefNote Edited: 0021415bug_revision_view_page.php?bugnote_id=0021415#r7972
2012-03-12 10:08FootkerchiefRelationship addedduplicate of 0000136
2012-03-12 10:12FootkerchiefNote Edited: 0021415bug_revision_view_page.php?bugnote_id=0021415#r7973
2012-03-12 10:15NomletsNote Added: 0021418
2012-03-12 10:18NomletsNote Edited: 0021418bug_revision_view_page.php?bugnote_id=0021418#r7975
2012-03-12 10:21NomletsNote Edited: 0021418bug_revision_view_page.php?bugnote_id=0021418#r7976
2012-03-12 10:31NomletsNote Edited: 0021418bug_revision_view_page.php?bugnote_id=0021418#r7977
2012-03-12 10:31FootkerchiefNote Added: 0021419
2012-03-12 10:32FootkerchiefNote Edited: 0021419bug_revision_view_page.php?bugnote_id=0021419#r7979
2012-03-12 10:32FootkerchiefStatusnew => resolved
2012-03-12 10:32FootkerchiefResolutionopen => duplicate
2012-03-12 10:32FootkerchiefAssigned To => Footkerchief
2012-03-12 10:33FootkerchiefNote Edited: 0021419bug_revision_view_page.php?bugnote_id=0021419#r7980
2012-03-12 10:33FootkerchiefNote Edited: 0021419bug_revision_view_page.php?bugnote_id=0021419#r7981
2012-03-12 10:33FootkerchiefTag Detached: AWAITING UPDATE
2012-03-12 10:53NomletsNote Added: 0021420
2012-03-12 10:53NomletsStatusresolved => needs feedback
2012-03-12 10:53NomletsResolutionduplicate => reopened
2012-03-12 10:59NomletsNote Edited: 0021420bug_revision_view_page.php?bugnote_id=0021420#r7983
2012-03-12 11:09NomletsNote Added: 0021423
2012-03-12 11:09NomletsStatusneeds feedback => assigned
2012-03-12 11:26FootkerchiefNote Added: 0021424
2012-03-12 11:26FootkerchiefNote Edited: 0021424bug_revision_view_page.php?bugnote_id=0021424#r7985
2012-03-12 11:47FootkerchiefNote Edited: 0021424bug_revision_view_page.php?bugnote_id=0021424#r7986
2012-03-12 12:43FootkerchiefIssue Monitored: Logical2u
2012-03-12 13:07Logical2uNote Added: 0021429
2012-03-12 13:07Logical2uAssigned ToFootkerchief =>
2012-03-12 13:07Logical2uPriorityurgent => high
2012-03-12 13:07Logical2uSeverityblock => crash
2012-03-12 13:07Logical2uReproducibilityhave not tried => random
2012-03-12 13:07Logical2uStatusassigned => new
2012-03-12 13:07Logical2uSummaryWindows Update message on embark caused file corruption => Crash on large embark - memory related
2012-03-12 17:11Logical2uStatusnew => resolved
2012-03-12 17:11Logical2uResolutionreopened => duplicate
2012-03-12 17:11Logical2uAssigned To => Logical2u

Notes
(0021370)
Logical2u   
2012-03-11 13:26   
It sounds like you modified system files while running Dwarf Fortress. That's obviously a bad move, and I'm going to pre-emptively close this since you already mentioned that a fresh Dwarf Fortress install fixed the crashing.
(0021382)
Nomlets   
2012-03-11 18:14   
I'm reopening this because;
One, Dwarf Fortress still froze, even after a reinstall(twice),
And two, During the embark, Windows reported that Dwarf Fortress was not responding and closed the program, something it hasn't done on my PC before.
Evidence would point to one of the updates I had downloaded, but I have no idea which one. I also have no idea of how to find out a list of the downloaded updates so I could find out through a mind-numbing check of all the updates/whatever I have downloaded today.
I suggest, if possible, checking to make sure Dwarf Fortress doesn't conflict with any Windows XP updates.
(0021389)
Footkerchief   
2012-03-11 19:28   
One, Dwarf Fortress still froze, even after a reinstall(twice),

Froze where? Any freeze/crash that continues after reinstalling the game probably has nothing to do with Windows Update.
(0021392)
Nomlets   
2012-03-11 19:35   
(edited on: 2012-03-11 19:51)
Froze during embark process, when I start the embark with "Play now", or embarking in any other way.
Quick Edit: Also, during the embark process when it freezes, my PC didn't make noise. It usually does make noise when playing Dwarf Fortress, doing something that takes up time/whatever, ect. This is suspicious, and makes me think that my computer is refusing to do certain actions relating to the embark process.
I'm going to figure out more about this in the morning.

(0021394)
Logical2u   
2012-03-11 20:07   
A specific error message from Windows might help. Also, if you know your memory usage during the embark process, and could report whether truetype is enabled, those two things could also help (although I doubt either is at play here, they could be contributing).

If a fresh install of dwarf fortress (including a new save/world, just in case the save/world was corrupted in some way) is still crashing, you may also want to rollback the Windows updates and then install them again, then try again (this time without dwarf fortress running).
(0021407)
Nomlets   
2012-03-12 08:00   
(edited on: 2012-03-12 08:11)
Okay, I'll give you the particular message.
Also, I can run taskmanager during the embark, and see what's going on.
I'll also use Lazy Newb Pack to check whether TrueType is enabled.

Also, I have no idea if I can rollback updates... This is a pretty old computer.

Hmm, started and it worked fine. TrueType was enabled, priority was set at realtime...

Test two: (This may be a particular biome, as I keep trying to embark on mountains with woods next to them. Either that or Phoebus, which is what texture pack I normally use.)
Same as the above settings, only on a mountain with woods. Game froze. It seems to only be mountain/wood biomes that have more then 50% of the map being mountains.
I'm just going to stay away from mountains until this is fixed.

(0021409)
Logical2u   
2012-03-12 08:43   
And what was the memory usage when it started freezing? Mountain biomes have a lot of extra z-levels which get loaded into memory when you embark.
(0021410)
Footkerchief   
2012-03-12 09:20   
What size areas are you embarking on? The default is something like 3x3.
(0021411)
Nomlets   
2012-03-12 09:49   
@logical, I'd have to check again for that. Hold on... 50-60% CPU usage during embark.
@Footker, Whole map. However, i've managed to embark on the whole map of a local area with mountain biomes before, so this isn't the problem, if that's what you're wondering.
(0021413)
Logical2u   
2012-03-12 10:07   
I'd still like the specific Windows error message that pops up when it crashes.

That's CPU usage, I'm interested in your memory usage. If you're embarking on an entire world map tile, though, I would not be surprised if you were hitting the 2gb memory limit.
(0021415)
Footkerchief   
2012-03-12 10:08   
(edited on: 2012-03-12 10:12)
@Footker, Whole map. However, i've managed to embark on the whole map of a local area with mountain biomes before, so this isn't the problem, if that's what you're wondering.

It is almost certainly the problem. See 0000136. Logical2u asked about the memory usage, not the CPU usage, and that is the crucial question here.

Some whole-map embarks will hit the 2 GB limit, others won't. It's extremely dependent on local geography. Mountain biomes in particular exacerbate the problem, because twice as many Z-levels requires twice as much memory.

Also, if you generated this world in a version before 0.34.03, you may be experiencing 0005077/0002713.

(0021418)
Nomlets   
2012-03-12 10:15   
(edited on: 2012-03-12 10:31)
That isn't the problem. Like I said, i've managed to embark on the whole map, on something similar to what i've tried to embark on now, so that isn't the problem.
Edit: Let me check, but I doubt that's the problem either, because this has been on several different mountain/woodland areas. 0.34.02, is what it seems to be. Also, I generated several different worlds.

Installed SDL DF 0.34.05.
Embarked on wood/mountain biomes together.
Froze.

(0021419)
Footkerchief   
2012-03-12 10:31   
(edited on: 2012-03-12 10:33)
What happens to memory usage during embark? Click this link and read the report: 0000136. Whole-map embarks will often cause exactly the behavior you're describing.

edit: you don't seem interested in answering questions. Do not reopen this report unless you have verified that your memory usage does not approach 2 GB during embark.

(0021420)
Nomlets   
2012-03-12 10:53   
(edited on: 2012-03-12 10:59)
Reopened again because:
One, Mem usage happened to be around 22,000K, which I think is less than 2G,
Edit: Checked again and saw that it was constantly going down from a maximum of 500K to 22K.
And two: I checked the problem in 000136, and ran a series of tests.
16x16 froze, and when I opened up Taskmanager to check, said that two instances of DF were running.
10x10 froze. 9x9 froze. 8x8 froze. 7x7 embark worked, but lagged horribly when unpaused. In 000136, there were claims that 10x10 froze, but 9x9 worked.

Specific Windows Error: "Dwarf Fortress.exe has encountered a problem and needs to close. We are sorry for the inconvenience. If you were lost in the middle of something, the information you were working on might be lost."
More Info: Appname: dwarf fortress.exe AppVer: 0.0.0.0 ModName: msvcr100.dll ModVer: 10.0.30319.1 Offset: 0008d635
Tech Info:
Windows refuses to copy, arggh. Gonna make that a seperate post perhaps.

(0021423)
Nomlets   
2012-03-12 11:09   
Just waiting for it to cook...
Error Report Contents:
Exception information
code: 0x40000015 Flags: 0x00000001
Record: 0x0000000000000000000 Adress: 0x00000000078b2d635

System Information:


Module 1
Dwarf Fortress.exe
Image Base: 0x00400000 Image Size: 0x0000000
Checksum: 0x008a28w6 Time Stamp: 0x4f55f23e
Version Information
Signature: 000000
StrucVer: 0000000
Filever: (0.0:0.0)
ProdVer: (0.0:0.0)
FlagMask: 00000000
Flags: 00000000
OS: 00000000
FileType: 000000
SubType: 0000000
FileDate: 0000000:00000000
(0021424)
Footkerchief   
2012-03-12 11:26   
(edited on: 2012-03-12 11:47)
One, Mem usage happened to be around 22,000K, which I think is less than 2G,
Edit: Checked again and saw that it was constantly going down from a maximum of 500K to 22K.


I'm going to hazard a guess that you aren't looking at the memory until it's already crashed. You need to watch memory usage during the entire embark process.

10x10 froze. 9x9 froze. 8x8 froze. 7x7 embark worked, but lagged horribly when unpaused. In 000136, there were claims that 10x10 froze, but 9x9 worked.

As said above: some whole-map embarks will hit the 2 GB limit, others won't. It's extremely dependent on local geography. If smaller areas work where larger areas don't, you're getting 0000136, the memory crash. The workaround is to embark on smaller areas.

(0021429)
Logical2u   
2012-03-12 13:07   
I have heavily edited the report based on the most recent data.

Based on your Windows error report, I strongly suspect you are encountering an out-of-memory error on your attempts to embark. This is corroborated by your testing of smaller embark areas. The horrible lag you described is probably just a symptom of the large embark area taking its toll on both your processor and memory.

I'm going to leave this open for a few moments, assuming you return and can confirm the memory usage of DF during a crash - a procedure something like this might work - http://www.techrepublic.com/article/solutionbase-monitor-windows-xps-memory-usage-with-a-customized-version-of-performance-monitor/5263541 [^] [^]

The solution to your problem is to embark on a smaller area. If there is a small area that consistently crashes the with the same error, then I suggest you make a new report. If a large area keeps crashing with the same error, then that is another example of this problem here, and also part of 0000136 as Footkerchief has already noted.