Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0009125Dwarf FortressWorld Generation -- Generalpublic2015-12-01 12:382015-12-02 14:50
maqertas 
Toady One 
normalblocksometimes
resolvedfixed 
Linux Ubuntu14.04
0.42.01 
0.42.02 
0009125: Freeze when placing civilizations during worldgen
A new world generation, non-advanced froze while placing civilizations. The application does not respond to anything, had to force quit.
Seeds:
Generating world using parameter set CREATE WORLD NOW = 4333333
 Seed: WOuaccsQI4cSGQCGoUWq
 History Seed: 0aEM0AmGwIqESqeuIY6M
 Name Seed: OYeUkoWe8sGyEKM0WuME
 Creature Seed: y2IGeiwy6o6GOmayQwOO
world generation
has duplicate 0009126resolved Knight Otu Worldgen Freeze 
has duplicate 0009154resolved Knight Otu World generation stuck at "placing civilizations..." 
has duplicate 0009144resolved Knight Otu Hangs when placing civilizations 
has duplicate 0009240resolved Dwarfu hang during world creation 
related to 0009127confirmed Knight Otu Crash during world gen 
Issue History
2015-12-01 12:38maqertasNew Issue
2015-12-01 12:53sirdifferentialNote Added: 0033198
2015-12-01 12:55sirdifferentialNote Edited: 0033198bug_revision_view_page.php?bugnote_id=0033198#r13382
2015-12-01 13:07yamamushiNote Added: 0033205
2015-12-01 13:20gnarlieIssue Monitored: gnarlie
2015-12-01 13:30Knight OtuRelationship addedhas duplicate 0009126
2015-12-01 13:30Knight OtuAssigned To => Knight Otu
2015-12-01 13:30Knight OtuStatusnew => confirmed
2015-12-01 13:34dgliddenNote Added: 0033208
2015-12-01 13:37Knight OtuRelationship addedrelated to 0009127
2015-12-01 13:39gnarlieNote Added: 0033211
2015-12-01 13:40lethosorReproducibilityhave not tried => sometimes
2015-12-01 13:56lethosorNote Added: 0033212
2015-12-01 13:56lethosorSummaryFreeze while World-gen => Freeze when placing civilizations during worldgen
2015-12-01 17:05AgileGuyIssue Monitored: AgileGuy
2015-12-01 18:06C27Note Added: 0033232
2015-12-01 18:08C27Note Edited: 0033232bug_revision_view_page.php?bugnote_id=0033232#r13393
2015-12-01 18:08C27Note Edited: 0033232bug_revision_view_page.php?bugnote_id=0033232#r13394
2015-12-01 18:10C27Tag Attached: linux
2015-12-01 18:10C27Tag Attached: OSX
2015-12-01 18:10C27Tag Attached: world generation
2015-12-01 18:10C27Issue Monitored: C27
2015-12-01 18:27lethosorAdditional Information Updatedbug_revision_view_page.php?rev_id=13398#r13398
2015-12-01 18:34lethosorTag Detached: OSX
2015-12-01 18:34lethosorTag Detached: linux
2015-12-01 18:36lethosorNote Added: 0033235
2015-12-01 18:36lethosorNote Edited: 0033235bug_revision_view_page.php?bugnote_id=0033235#r13400
2015-12-01 19:22AesculaNote Added: 0033238
2015-12-01 19:55OctagonalFerretNote Added: 0033239
2015-12-01 19:58OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13402
2015-12-01 19:59barconisNote Added: 0033240
2015-12-01 20:00OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13403
2015-12-01 20:00barconisNote Edited: 0033240bug_revision_view_page.php?bugnote_id=0033240#r13405
2015-12-01 20:02OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13406
2015-12-01 20:20OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13407
2015-12-01 20:25OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13408
2015-12-01 20:30OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13409
2015-12-01 20:36OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13410
2015-12-01 20:44OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13411
2015-12-01 20:50OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13412
2015-12-01 20:51OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13413
2015-12-01 20:53OctagonalFerretNote Edited: 0033239bug_revision_view_page.php?bugnote_id=0033239#r13414
2015-12-01 20:56aelysturNote Added: 0033244
2015-12-02 00:18QuantumPeteIssue Monitored: QuantumPete
2015-12-02 03:46C27Note Added: 0033251
2015-12-02 04:11heuristicusNote Added: 0033253
2015-12-02 07:40VerouleNote Added: 0033260
2015-12-02 08:05VerouleNote Added: 0033261
2015-12-02 08:07Knight OtuRelationship addedhas duplicate 0009154
2015-12-02 08:08Knight OtuRelationship addedhas duplicate 0009144
2015-12-02 09:35surazalNote Added: 0033271
2015-12-02 09:56surazalNote Edited: 0033271bug_revision_view_page.php?bugnote_id=0033271#r13424
2015-12-02 10:26surazalNote Edited: 0033271bug_revision_view_page.php?bugnote_id=0033271#r13442
2015-12-02 10:27surazalNote Edited: 0033271bug_revision_view_page.php?bugnote_id=0033271#r13443
2015-12-02 13:18Toady OneNote Added: 0033292
2015-12-02 13:18Toady OneStatusconfirmed => resolved
2015-12-02 13:18Toady OneFixed in Version => Next Version
2015-12-02 13:18Toady OneResolutionopen => fixed
2015-12-02 14:50FootkerchiefStatusresolved => assigned
2015-12-02 14:50FootkerchiefAssigned ToKnight Otu => Toady One
2015-12-02 14:50FootkerchiefStatusassigned => resolved
2016-05-11 21:46DwarfuRelationship addedhas duplicate 0009240

Notes
(0033198)
sirdifferential   
2015-12-01 12:53   
(edited on: 2015-12-01 12:55)
I'm having similar issues during world gen on Debian Jessie. The generator succeeds in pocket sized worlds but hangs on anything larger. I'm running the game in text mode. I've waited around half an hour, and the generator doesn't seem to proceed further. One CPU core is constantly at 100% usage.

The server in question:

i5-3570K CPU @ 3.40GHz
16 GB memory
Linux plantmonster 3.16.0-4-amd64 0000001 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) x86_64 GNU/Linux

Generating world using parameter set CREATE WORLD NOW = 4333333
 Seed: WOuaccsQI4cSGQCGoUWq
 History Seed: 0aEM0AmGwIqESqeuIY6M
 Name Seed: OYeUkoWe8sGyEKM0WuME
 Creature Seed: y2IGeiwy6o6GOmayQwOO

data/save/current is empty after the freeze.

(0033205)
yamamushi   
2015-12-01 13:07   
Can confirm issue is appearing on Mac OSX :

Darwin 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64

Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz



I also get these warnings on startup, but they seem more pedantic than actually indicative of a problem:

2015-12-01 14:47:54.579 dwarfort.exe[94707:507] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
Dec 31 17:59:59 cypherpunk dwarfort.exe[94707] <Error>: The function `CGSFlushWindow' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance. Please use `CGSFlushWindowContentRegion' instead.
(0033208)
dglidden   
2015-12-01 13:34   
Ubuntu Linux 12.04 LTS - same thing using various custom worldgen parameters, worldgen never gets past "Placing civilizations...".
(0033211)
gnarlie   
2015-12-01 13:39   
Ubuntu 14.04 - same thing; blocked. Was able to get past this by setting number of civilizations to 0 - which creates quite a boring world.
(0033212)
lethosor   
2015-12-01 13:56   
"Placing civilizations" seems to be the point of all freezes reported so far, so I'm retitling this report.
(0033232)
C27   
2015-12-01 18:06   
(edited on: 2015-12-01 18:08)
It's freezing for me as well, Mint 17.2. It seems that only Linux/OSX users are having this issue.

System Monitor lists the Dwarf Fortress process as "sleeping", if that's any help.

(0033235)
lethosor   
2015-12-01 18:36   
Toady said he managed to reproduce it a couple times, so it might not be platform-specific, but it's also not reliably reproducible with certain seeds.
http://www.bay12forums.com/smf/index.php?topic=154197.msg6637544#msg6637544 [^]

(0033238)
Aescula   
2015-12-01 19:22   
Confirmed from me too, also on Ubuntu 14.04. Only way to get out of it is to use kill -9, and that's brutal to use.
(0033239)
OctagonalFerret   
2015-12-01 19:55   
(edited on: 2015-12-01 20:53)
Freezing for me also, but on Windows 7 64bit.

Tried to generate 3 large worlds, not in advanced gen. 2 froze on "Placing civilizations", the other one crashed generating history at approx. year 360.

DF 42.01

Note: All generation settings were set to the right most option (My preference), so if it is related to the No. of Civilizations, then that might explain why it has happened to me frequently.

Edit: Just happened again. I have yet to successfully generate a world with these settings. There a log or something somewhere I can link?

//First was a crash
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: zvMIV0AQCgZr51jVD4FO
 History Seed: hsybaGBSivFQl6xyzJj4
 Name Seed: n7iNJYhDLa7CwVV9rdzG
 Creature Seed: 8VOaSYaQ4AovMbewq5tY

//These three were freezes on civ gen.
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: nrqE3MIiKUtpzp5b7cpW
 History Seed: tySR8IpyyxlYp43sFXFW
 Name Seed: lpGjHQbF18hKUDz5RJL0
 Creature Seed: qdw0g6A6may96Rs8MNTY
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: hvgKv8QUYY7Vblr9ZS9e
 History Seed: DaEruoDKEb5mvcfSVHdq
 Name Seed: RJEZpQ7n3w7UQjr9j9Bo
 Creature Seed: GhomI2Y2EQit4teKgBvY
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: uKGakyCyCWMwmqwIcMkA
 History Seed: m0gcE0e6ikg6Ie0ukyo4
 Name Seed: w2EggYgCYgu8W4cEcc6Q
 Creature Seed: uaG68wy6ImuOU4oUACYg

Generated another... 8 attempts... I think? None of which have worked.
However, the first attempt with civs set for normal seems to be working fine (Going through age generation right now) (Nevermind, it locked up generating year 250)

*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: 2kOOQC2SAWy2i20EGeAq
 History Seed: 8mEOCuu4sK6uQGSu4eY4
 Name Seed: yoSkS8aIm2c62oIUuqeG
 Creature Seed: MgS0esYg8kWUSE8UKy2G
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: uCGOcu8m4OMoeisIYIg6
 History Seed: WwgcEsWyaccyAawmcqg0
 Name Seed: ku2UYYc8MciwKsUAYYyQ
 Creature Seed: qW828ku2AeiGM0cM60Qc
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: Bb20VaYOaiXD555Pv25Y
 History Seed: Juyl2gHUsJ1WpeXUNj1K
 Name Seed: 9N655yrDz8BW8XRX7n5S
 Creature Seed: sz0qE8mWum6fYrGkSr96
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: 0kImMooMKs4caOuk2GIu
 History Seed: c0qCS6kEwaEMomKoqa2U
 Name Seed: YyU4gQmSogmCkeIq0WcY
 Creature Seed: AOoGWEOyKMS48QOuSYWY
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: fbSCXQss8S5V5nZfLs9a
 History Seed: 3YmfAoj6yT5m3sTypln4
 Name Seed: R1gJjezpVSp4YzTFhdZ6
 Creature Seed: oLiyAoCC2e81QxSUUBxm
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: EqW6q4KcgQKWWS88ASOS
 History Seed: GyYYeEQaWGKgaiEyS486
 Name Seed: SsIqawysc6gYkMmusisW
 Creature Seed: 4QoSQmSUS6w2s4cS64A4
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5555555
 Seed: NhAm3Sqg6ktp1VHJtuJA
 History Seed: R6EvU4n4eJFM36JcpDfQ
 Name Seed: lZ0FHqFrtCN2yDzx9fNi
 Creature Seed: ajQI02gKIGaL2dsmE5Py

//Froze generating year 250
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5535555
 Seed: Q0iwSwgyCSkCSsG28Oc4
 History Seed: WAoi6gwAMGYWsE06ycqC
 Name Seed: 84G0moMSaEs8e6KKueAm
 Creature Seed: mAEuCoQIqaUiQqEYsMQw

//Another civ freeze, but this time with civs set to normal
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 5333333
 Seed: 1ng0ReAE8ct7Zrjv3Abk
 History Seed: b2unKiPESTXalItsJTNY
 Name Seed: 3JGh9gpD9A70czJNjvvu
 Creature Seed: yTe8aqm6o2qhwhgq21ho



The freezing with civ generation seems to happen frequently while generating civs in mountains, and on top of rivers. In my experience, with about 6 or 7 of my attempts meeting those conditions.



Began generating worlds with normal settings (3333333)
First generated fine, second locked up 147 years into history gen, third generated fine.

*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 3333333
 Seed: UMeOsGsCEyQC0i8wOmEo
 History Seed: aGW6aukKWEA2eoGmeuMy
 Name Seed: 82IWs2Wsgom6KKoEO6SC
 Creature Seed: mgwOSCYOwemqcKwGAAgA
Generating world using parameter set CREATE WORLD NOW = 3333333
 Seed: usayK4yi8KCIeYU0UcqG
 History Seed: IAMMuEGo62m6IiG8EC6k
 Name Seed: wgoI2GMwOIIGyw6YEkgw
 Creature Seed: 8eEGKqicEg202mIsq4ms
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 3333333
 Seed: Tr8WL2CciaTvNn7hJYnm
 History Seed: lqKViydsYpfEJ2dCTJZi
 Name Seed: r3g7te5vd4naYDDNPNNq
 Creature Seed: eXWSOoy40OgZMv4wCvvq

Not sure if it is is related, but when I attempted to begin adventurer mode in the first of those successful normal worlds (Seed UMeOsGsCEyQC0i8wOmEo), the game immediately crashed in the Updating World screen (Crashed, not just froze).
Here is the error log from Windows Event Viewer:

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: Dwarf Fortress.exe
P2: 0.0.0.0
P3: 565ca0e6
P4: Dwarf Fortress.exe
P5: 0.0.0.0
P6: 565ca0e6
P7: c0000005
P8: 009b9d7a
P9:
P10:

The crash was not consistent, and a second attempt to begin Adventurer Mode succeeded.

(0033240)
barconis   
2015-12-01 19:59   
(edited on: 2015-12-01 20:00)
Freezes on Windows 8.1, 64-bit, df 42.01. First seed locks at turn 132, second at turn 190. Both worlds were bog-standard default parameters.

*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 4333333
 Seed: ZlumzgUUGCtzTpdLh4bW
 History Seed: BYgxwIr2QZ9O5yDU5Hlm
 Name Seed: xpwHJKHlBWFKi7fbl3hm
 Creature Seed: W1yggKuGOC0TCXoEYH9O
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 4333333
 Seed: 1hIEp0Wkm6Tj9lx3xSnY
 History Seed: 9I2fKU1cSnHuZe1k73ts
 Name Seed: dRIZzITXbQrmWHVbNR1e
 Creature Seed: 81q4UA2EWYiDcl4Ge3FM

(0033244)
aelystur   
2015-12-01 20:56   
*** STARTING NEW GAME ***
Generating world using parameter set CREATE WORLD NOW = 4333335
 Seed: eaGbCjycuOrIyTI8mpPY
 History Seed: o8yORPPaOVBslKq4YRMN
 Name Seed: b0DNviSJAYtz6UDNypz8
 Creature Seed: FJnjVEbrFoQ84T7yGoLr

resulted in game freeze
using "generate now". resources set to everywhere, all others set to normal.
(0033251)
C27   
2015-12-02 03:46   
So might the commonality be 64-bit systems then, instead of Linux/OSX as I assumed before (and was obviously wrong with)?
(0033253)
heuristicus   
2015-12-02 04:11   
Tried generating new worlds with default parameters 16 times, all failures. Usually got to around mid-30s civilisations to be placed before hanging.

Running linux mint 17.2 running on Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz.

Linux ada 3.16.0-38-generic 00000520000014:0000014.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
(0033260)
Veroule   
2015-12-02 07:40   
64bit systems is not the issue. I reproduced this bug consistently on my old 32bit machine.
(0033261)
Veroule   
2015-12-02 08:05   
I was able to replicate this bug on 6 of 6 tries with the following procedure:
1. Launch DF
2. Select "Design New world with Advanced Parameters"
3. Press 'ESC' at warning screen
4. Press 's' to set seed
5. Enter a seed of "1"
6. Press 'Enter' to commence generation, press 'y' in response to pop up.

Freezes occurred on Placing Civs at indicator value of 16, 7, 29, 16, 29, and 24.
(0033271)
surazal   
2015-12-02 09:35   
(edited on: 2015-12-02 10:27)
I've been able to reproduce this issue regardless of world size, number of civilizations, and so on. I've tried the custom parameter worlds in addition to the "vanilla" ones. It reliably crashes anywhere between placing 2 to 30 civilizations. Only way to kill the process is with SIGKILL ("kill -9"). I'm running 64 bit Ubuntu 15.10 running kernel version 4.2.0-19.

I would post a parameter set, but this affects all worlds I attempt to generate unless I disable civilization generation altogether.

UPDATE: The issue is 100% reproducible with Windows 10 on the same hardware. The program stops responding before it can place up to 30 civilizations (sometimes as few as 2). The hardware in question is an Intel i7 2.80 GHz with 32 GB of RAM.

UPDATE TWO: So, on Windows it looks like I can prevent the freezing if I select "Sparse" for the mineral scarcity setting. It doesn't seem to make much sense why this would work, but every time I try to select "Frequent", I get the freeze. If I don't, the world generates just fine. I've generated up to 160 civilizations on a single world and the result is the same. This workaround does not work under Linux, however. I still get the freeze-up during the civilization placement process regardless of the parameters I choose.

(0033292)
Toady One   
2015-12-02 13:18   
Every case I've found of this has been caused by an uninitialized poetry variable which I've now fixed for next time. Those are usually worse on linux, so hopefully it'll account for all of those too, but all I can do is run it a lot and hope for the best. We can reopen it if there are other cases after the next release.