Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0005498Dwarf FortressLegends Mode -- Map Exportpublic2012-02-28 13:482012-02-28 20:42
Dwarfness 
Toady One 
highcrashalways
resolvedfixed 
PCUbuntu11.04
0.34.03 
0.34.04 
0005498: Lock/crash from attempting to export map twice after world generation
During World Gen or using Legends mode, if the user export an image of the world map twice in a row, the game hard-locks. No errors are produce, the game simply becomes unresponsive.
- Generate a world with any parameters or load an existing world in Legends Mode.
- After world gen or in Legends mode, tap (p) to export an image of the map.
- Tap (p) a second time.
This was attempted both in the World Generator and in the Legends mode with a pre-existing world. The first image is successfully exported without issue, the second hard-locks the game. Also, if done during world gen, the world is not saved before the hard lock, wasting the effort.
No tags attached.
has duplicate 0005500resolved Footkerchief World Generation crashes on save if data has been exported 
has duplicate 0005502resolved Logical2u After World Gen, the game crashes 
Issue History
2012-02-28 13:48DwarfnessNew Issue
2012-02-28 13:59FootkerchiefNote Added: 0020865
2012-02-28 14:35thvazNote Added: 0020868
2012-02-28 16:32FootkerchiefSummaryAttempting to export map twice causes hard lock => Lock/crash from attempting to export map twice after world generation
2012-02-28 16:33FootkerchiefRelationship addedhas duplicate 0005500
2012-02-28 17:16Logical2uRelationship addedhas duplicate 0005502
2012-02-28 19:02greycatNote Added: 0020882
2012-02-28 19:51KijiroNote Added: 0020888
2012-02-28 19:52KijiroNote Edited: 0020888bug_revision_view_page.php?bugnote_id=0020888#r7766
2012-02-28 20:42Toady OneStatusnew => resolved
2012-02-28 20:42Toady OneFixed in Version => 0.34.04
2012-02-28 20:42Toady OneResolutionopen => fixed
2012-02-28 20:42Toady OneAssigned To => Toady One

Notes
(0020865)
Footkerchief   
2012-02-28 13:59   
Toady has acknowledged the problem: http://www.bay12forums.com/smf/index.php?topic=103007.msg3044818#msg3044818 [^]
(0020868)
thvaz   
2012-02-28 14:35   
For me it doesn't happen in the legends screen, only after world generation.
(0020882)
greycat   
2012-02-28 19:02   
The game locked up for me. Fortress Defense mod was applied. Linux version, "Create new world" with Short history (125 years) and all other settings on default. I moved around a bit, then I pressed "p" only once, to create the .bmp image and text files; those were created successfully. Then I pressed Enter to accept. But instead of going to the "offloading units" screen, the process simply hung forever. Not eating CPU -- just sleeping forever.

I killed it (SIGKILL was required), deleted the image and the text files and the data/save/current directory, and tried again. This time I did not move around, and did not press "p" -- I just pressed "Enter". The units were offloaded and everything seemed fine.
(0020888)
Kijiro   
2012-02-28 19:51   
(edited on: 2012-02-28 19:52)
It would appear the problem is with exporting an image. You don't have to hit 'p' twice. Just hit it once and try to do anything else with the game. It will lock up. As Footkerchief stated, the problem has been brought to Toady's attention.

Just don't hit 'p' and you should be okay!

Tested with and without texture pack, tested with the following worldgen parameters:

Large
Very Short
High
Low
High
High
Frequent

Using Windows 7.