View Issue Details

IDProjectCategoryView StatusLast Update
0009125Dwarf FortressWorld Generation -- Generalpublic2015-12-02 14:50
Reportermaqertas Assigned ToToady One  
PrioritynormalSeverityblockReproducibilitysometimes
Status resolvedResolutionfixed 
OSLinux UbuntuOS Version14.04 
Product Version0.42.01 
Fixed in Version0.42.02 
Summary0009125: Freeze when placing civilizations during worldgen
DescriptionA new world generation, non-advanced froze while placing civilizations. The application does not respond to anything, had to force quit.
Additional InformationSeeds:
Generating world using parameter set CREATE WORLD NOW = 4333333
 Seed: WOuaccsQI4cSGQCGoUWq
 History Seed: 0aEM0AmGwIqESqeuIY6M
 Name Seed: OYeUkoWe8sGyEKM0WuME
 Creature Seed: y2IGeiwy6o6GOmayQwOO
Tagsworld generation

Relationships

has duplicate 0009126 resolveduser1294 Worldgen Freeze 
has duplicate 0009154 resolveduser1294 World generation stuck at "placing civilizations..." 
has duplicate 0009144 resolveduser1294 Hangs when placing civilizations 
has duplicate 0009240 resolveduser11 hang during world creation 
related to 0009127 confirmeduser1294 Crash during world gen 

Activities

sirdifferential

2015-12-01 12:53

reporter   ~0033198

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

yamamushi

2015-12-01 13:07

reporter   ~0033205

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.

dglidden

2015-12-01 13:34

reporter   ~0033208

Ubuntu Linux 12.04 LTS - same thing using various custom worldgen parameters, worldgen never gets past "Placing civilizations...".

gnarlie

2015-12-01 13:39

reporter   ~0033211

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.

lethosor

2015-12-01 13:56

manager   ~0033212

"Placing civilizations" seems to be the point of all freezes reported so far, so I'm retitling this report.

C27

2015-12-01 18:06

reporter   ~0033232

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

lethosor

2015-12-01 18:36

manager   ~0033235

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

Aescula

2015-12-01 19:22

reporter   ~0033238

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.

OctagonalFerret

2015-12-01 19:55

reporter   ~0033239

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

barconis

2015-12-01 19:59

reporter   ~0033240

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

aelystur

2015-12-01 20:56

reporter   ~0033244

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

C27

2015-12-02 03:46

reporter   ~0033251

So might the commonality be 64-bit systems then, instead of Linux/OSX as I assumed before (and was obviously wrong with)?

heuristicus

2015-12-02 04:11

reporter   ~0033253

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

Veroule

2015-12-02 07:40

reporter   ~0033260

64bit systems is not the issue. I reproduced this bug consistently on my old 32bit machine.

Veroule

2015-12-02 08:05

reporter   ~0033261

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.

surazal

2015-12-02 09:35

reporter   ~0033271

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

Toady One

2015-12-02 13:18

administrator   ~0033292

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.

Issue History

Date Modified Username Field Change
2015-12-01 12:38 maqertas New Issue
2015-12-01 12:53 sirdifferential Note Added: 0033198
2015-12-01 12:55 sirdifferential Note Edited: 0033198
2015-12-01 13:07 yamamushi Note Added: 0033205
2015-12-01 13:30 user1294 Relationship added has duplicate 0009126
2015-12-01 13:30 user1294 Assigned To => user1294
2015-12-01 13:30 user1294 Status new => confirmed
2015-12-01 13:34 dglidden Note Added: 0033208
2015-12-01 13:37 user1294 Relationship added related to 0009127
2015-12-01 13:39 gnarlie Note Added: 0033211
2015-12-01 13:40 lethosor Reproducibility have not tried => sometimes
2015-12-01 13:56 lethosor Note Added: 0033212
2015-12-01 13:56 lethosor Summary Freeze while World-gen => Freeze when placing civilizations during worldgen
2015-12-01 18:06 C27 Note Added: 0033232
2015-12-01 18:08 C27 Note Edited: 0033232
2015-12-01 18:08 C27 Note Edited: 0033232
2015-12-01 18:10 C27 Tag Attached: linux
2015-12-01 18:10 C27 Tag Attached: OSX
2015-12-01 18:10 C27 Tag Attached: world generation
2015-12-01 18:27 lethosor Additional Information Updated
2015-12-01 18:34 lethosor Tag Detached: OSX
2015-12-01 18:34 lethosor Tag Detached: linux
2015-12-01 18:36 lethosor Note Added: 0033235
2015-12-01 18:36 lethosor Note Edited: 0033235
2015-12-01 19:22 Aescula Note Added: 0033238
2015-12-01 19:55 OctagonalFerret Note Added: 0033239
2015-12-01 19:58 OctagonalFerret Note Edited: 0033239
2015-12-01 19:59 barconis Note Added: 0033240
2015-12-01 20:00 OctagonalFerret Note Edited: 0033239
2015-12-01 20:00 barconis Note Edited: 0033240
2015-12-01 20:02 OctagonalFerret Note Edited: 0033239
2015-12-01 20:20 OctagonalFerret Note Edited: 0033239
2015-12-01 20:25 OctagonalFerret Note Edited: 0033239
2015-12-01 20:30 OctagonalFerret Note Edited: 0033239
2015-12-01 20:36 OctagonalFerret Note Edited: 0033239
2015-12-01 20:44 OctagonalFerret Note Edited: 0033239
2015-12-01 20:50 OctagonalFerret Note Edited: 0033239
2015-12-01 20:51 OctagonalFerret Note Edited: 0033239
2015-12-01 20:53 OctagonalFerret Note Edited: 0033239
2015-12-01 20:56 aelystur Note Added: 0033244
2015-12-02 03:46 C27 Note Added: 0033251
2015-12-02 04:11 heuristicus Note Added: 0033253
2015-12-02 07:40 Veroule Note Added: 0033260
2015-12-02 08:05 Veroule Note Added: 0033261
2015-12-02 08:07 user1294 Relationship added has duplicate 0009154
2015-12-02 08:08 user1294 Relationship added has duplicate 0009144
2015-12-02 09:35 surazal Note Added: 0033271
2015-12-02 09:56 surazal Note Edited: 0033271
2015-12-02 10:26 surazal Note Edited: 0033271
2015-12-02 10:27 surazal Note Edited: 0033271
2015-12-02 13:18 Toady One Note Added: 0033292
2015-12-02 13:18 Toady One Status confirmed => resolved
2015-12-02 13:18 Toady One Fixed in Version => Next Version
2015-12-02 13:18 Toady One Resolution open => fixed
2015-12-02 14:50 user6 Status resolved => assigned
2015-12-02 14:50 user6 Assigned To user1294 => Toady One
2015-12-02 14:50 user6 Status assigned => resolved
2016-05-11 21:46 user11 Relationship added has duplicate 0009240