View Issue Details

IDProjectCategoryView StatusLast Update
0004130Dwarf FortressMiscellaneous Crashespublic2011-03-08 05:12
ReporterAbuDhabi Assigned ToToady One  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSDebianOS Version6
Product Version0.31.20 
Fixed in Version0.31.21 
Summary0004130: Digging/mining (in soil?) causes crash on non-Windows systems
DescriptionA few minutes from embarking, after designating some tree-cutting and mining, the construction of 10 beds, and appointing a dwarf to handle management, the game crashes. This is reproducible every time I've tried.

The save includes the entire data folder, in case it's one of the settings files modifications that is the culprit - I've changed announcements.txt, d_init.txt and init.txt.

The save file is here: http://dffd.wimbli.com/file.php?id=3906
Steps To Reproduce1. Load save.
2. Wait a minute or so.
TagsNo tags attached.

Relationships

related to 0004129 resolvedToady One Talking/conversation in Adv. Mode causes crash 
related to 0004013 assignedToady One Areas of plain "grass" in caverns 
has duplicate 0004126 resolveduser6 Game crashes every time within a minute of embarking 
has duplicate 0004143 resolveduser6 Seg fault shortly after embark 
has duplicate 0004160 resolveduser6 Segmentation Fault During Dwarf Mode 

Activities

dree12

2011-03-06 07:52

reporter   ~0015801

Duplicate of 0004126?

AbuDhabi

2011-03-06 08:55

reporter   ~0015804

Last edited: 2011-03-06 09:00

I get the following output in console (using VBO output):

Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Sound devices available:
PulseAudio Software
ALSA Software
PortAudio Software
Picking PulseAudio Software. If your desired device was missing, make sure you have the appropriate 32-bit libraries installed. If you wanted a different device, configure ~/.openalrc appropriately.
Perfect OpenAL context attributes GET
Loading bindings from data/init/interface.txt
Resetting textures
Dwarf_Fortress: ../../src/xcb_io.c:183: process_responses: Assertion `!(req && current_request && !(((long) (req->sequence) - (long) (current_request)) <= 0))' failed.
Aborted

Trying FRAME_BUFFER:

Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Sound devices available:
PulseAudio Software
ALSA Software
PortAudio Software
Picking PulseAudio Software. If your desired device was missing, make sure you have the appropriate 32-bit libraries installed. If you wanted a different device, configure ~/.openalrc appropriately.
Perfect OpenAL context attributes GET
Loading bindings from data/init/interface.txt
Resetting textures
Segmentation fault

STANDARD:

Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Sound devices available:
PulseAudio Software
ALSA Software
PortAudio Software
Picking PulseAudio Software. If your desired device was missing, make sure you have the appropriate 32-bit libraries installed. If you wanted a different device, configure ~/.openalrc appropriately.
Perfect OpenAL context attributes GET
Loading bindings from data/init/interface.txt
Resetting textures
Dwarf_Fortress: ../../src/xcb_io.c:183: process_responses: Assertion `!(req && current_request && !(((long) (req->sequence) - (long) (current_request)) <= 0))' failed.
Aborted

2D:

Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Sound devices available:
PulseAudio Software
ALSA Software
PortAudio Software
Picking PulseAudio Software. If your desired device was missing, make sure you have the appropriate 32-bit libraries installed. If you wanted a different device, configure ~/.openalrc appropriately.
Perfect OpenAL context attributes GET
Loading bindings from data/init/interface.txt
New window size: 1280x640
Font size: 16x16
Resizing grid to 80x40
Resizing font to 16x16

Resetting textures
Resizing font to 16x16
Resizing font to 16x16
Resizing font to 16x16
Segmentation fault

matakuka

2011-03-06 09:22

reporter   ~0015805

Last edited: 2011-03-06 10:31

Could it be related to mining? I get crashes only after starting to mine. Without any mining at all, the game runs fine for at least a game month.
Mining in clay, crash after 30 to 60 tiles, without stairs/ramps (different world)

AbuDhabi

2011-03-06 09:41

reporter   ~0015812

Last edited: 2011-03-06 09:47

Also mining in clay here.

EDIT: I have attempted to mine in loam instead. Same result.

huin

2011-03-06 09:42

reporter   ~0015813

Last edited: 2011-03-06 09:47

I'm getting a crash very soon after embark, also. Ubuntu Linux (Lucid). This is using a fresh vanilla install of DF v0.31.20 with no modifications.

Edit: I let an embark run for almost an in-game month with no problem (took no action, just let things run). Then started mining into a hill of black sand, after maybe >30 tiles of mining a crash occurred.

Edit: Also, I'm running on x86_64, not 32 bit, in case that has any bearing.

user1294

2011-03-06 09:49

  ~0015815

Yeah, it seems to be related to soil mining. Apparently the regrow changes seem to have broken something?

AbuDhabi

2011-03-06 09:52

reporter   ~0015816

Could it be that the game crashes when the game tries to place grass on the newly mined out area, and fails?

huin

2011-03-06 09:53

reporter   ~0015817

Last edited: 2011-03-06 14:27

I grabbed a core dump from a crash, and got a backtrack from each thread (although no idea how much use this is given stripped symbols)

http://pastebin.com/SCsw7fdJ

Psieye

2011-03-06 10:45

reporter   ~0015822

It doesn't happen in all games. I've started a fort where I've mined out huge swaths of soil and I don't get any crash. Is it platform specific? I'm on Win7.

matakuka

2011-03-06 11:00

reporter   ~0015825

Last edited: 2011-03-06 11:44

Further testing:
Digging out only 10 tiles --> crash
Digging out only stairs (grass has nowhere to grow)--> crash
inmediately building wooden floor on dug out tiles --> no crash.
---

Doing same things with same save in window version (via wine) --> NO crash

greycat

2011-03-06 11:44

reporter   ~0015830

Last edited: 2011-03-06 11:45

Well, the good news is that this appears to be highly reproducible.

The bad news is that it's highly reproducible (meaning it's elfin' near impossible to play).

Here's another core dump backtrace, this time after I tried very hard to avoid digging any soil:

Core was generated by `./libs/Dwarf_Fortress'.
Program terminated with signal 11, Segmentation fault.
#0 0x089de069 in ?? ()
(gdb) bt
#0 0x089de069 in ?? ()
0000001 0x08a0ab05 in ?? ()
0000002 0x08a32728 in ?? ()
0000003 0x08249bb3 in ?? ()
0000004 0x0825f93c in ?? ()
0000005 0xb731f43e in interfacest::loop() ()
   from /usr/local/src/df_linux/libs/libgraphics.so
0000006 0x08451fef in mainloop() ()
0000007 0xb72fcfdc in enablerst::async_loop() ()
   from /usr/local/src/df_linux/libs/libgraphics.so
0000008 0xb72fd38d in call_loop(void*) ()
   from /usr/local/src/df_linux/libs/libgraphics.so
0000009 0xb76e685e in ?? () from /usr/lib/libSDL-1.2.so.0
0000010 0xb77330bd in ?? () from /usr/lib/libSDL-1.2.so.0
0000011 0xb704f955 in start_thread () from /lib/i686/cmov/libpthread.so.0
0000012 0xb712ee7e in clone () from /lib/i686/cmov/libc.so.6
(gdb) quit

AbuDhabi

2011-03-06 12:48

reporter   ~0015835

Channeling through clay, so that is exposed to air from above, doesn't seem to cause a crash - at least in the way I did it (channeled out some rocks, got left with clay loam tiles).

user1294

2011-03-06 14:12

  ~0015852

Hm, I got a crash on an embark where I'm sure I didn't dig through soil - I specifically looked for a soil/clayless embark, and took one with just one tile of soil. Unfortunately, I have no save for that, so I'll look into this further.

user1294

2011-03-06 14:47

  ~0015853

Found the embark region again, and tested it - the crash occurs even when I do nothing at all. The save is uploaded at http://dffd.wimbli.com/file.php?id=3911 . It may be something different in this case, and since it is a modded game, it may be something I did, though I tend to doubt it.

user6

2011-03-06 15:01

  ~0015854

Knight Otu, what OS are you using?

user1294

2011-03-06 15:08

  ~0015857

Last edited: 2011-03-06 15:24

Ah, yeah, I'm using Ubuntu 10.04, should have mentioned that when the first report came in that it may be system-specific.

Anyway, I did some more testing. And, giving my dwarves speed 1 to dig down before the crash occurs, I've found generic grass in the third (I think) cavern layer, as per the report you've recently reopened. I wonder if that may be related to this crash? I'll download the save for that game and test it.

Edit: Ech, can't handle the rar compression correctly. I'll try to remember to unrar it tomorrow on Windows, then try out the save.

Pathologik

2011-03-06 15:47

reporter   ~0015865

Last edited: 2011-03-06 16:04

Unable to reproduce Knight Otu's crash after no activity, have confirmed that results of mining AND channeling can cause crash.

However, crash did not occur during mining, but rather, about 30 seconds afterwards. Ramps had been designated for removal, miners were en route, and crash occurred.

Also experimented with trampling grass, to observe if regrow would cause crash. No crash occurred despite valid growing surfaces exposed from trampling, though.

So, crash will occur regardless of whether exposed surface is viable for regrowth, and regardless of whether it is above ground or subterranean. Crash can occur at any point after soil has been mined, regardless of if tile is presently being mined.

Using Phoebus' graphics, but I don't think this is causing any issue, considering the crash on a vanilla install.

EDIT: Huh. Repeated channeling, and it didn't crash. Grass is regrowing just fine on the slopes. But, began to dig horizontally, and crash occurred within 30 tiles or so. Then dug horizontal tunnel, designated no additional digging and took no further action, and crash occurred within 30 seconds.

Proceeded to channel horizontal tunnel and remove ramps, leaving it outside, light, and above ground... No crash, grass growing. Then extended tunnel 4 tiles underground, leaving it inside, dark, and subterranean. Crash occurred within 30 seconds. So, seems to be an issue with underground tiles, for me. If the issue is regrow, maybe it isn't interacting well with underground tiles?

Ubuntu 10.10, kernel 2.6.35-27-generic-pae

Issue History

Date Modified Username Field Change
2011-03-06 05:58 AbuDhabi New Issue
2011-03-06 07:52 dree12 Note Added: 0015801
2011-03-06 08:55 AbuDhabi Note Added: 0015804
2011-03-06 08:55 AbuDhabi Note Edited: 0015804
2011-03-06 08:58 AbuDhabi Note Edited: 0015804
2011-03-06 09:00 AbuDhabi Note Edited: 0015804
2011-03-06 09:21 user6 Relationship added child of 0004126
2011-03-06 09:22 matakuka Note Added: 0015805
2011-03-06 09:41 AbuDhabi Note Added: 0015812
2011-03-06 09:42 huin Note Added: 0015813
2011-03-06 09:45 huin Note Edited: 0015813
2011-03-06 09:47 user6 Relationship replaced has duplicate 0004126
2011-03-06 09:47 AbuDhabi Note Edited: 0015812
2011-03-06 09:47 user6 Relationship added related to 0004129
2011-03-06 09:47 huin Note Edited: 0015813
2011-03-06 09:48 user6 Summary Dwarf Mode crashes within a couple of minutes of embark => Digging/mining (in soil?) causes the game to crash
2011-03-06 09:48 user6 Summary Digging/mining (in soil?) causes the game to crash => Digging/mining (in soil?) causes crash
2011-03-06 09:49 user1294 Note Added: 0015815
2011-03-06 09:52 AbuDhabi Note Added: 0015816
2011-03-06 09:53 huin Note Added: 0015817
2011-03-06 10:06 huin Note Edited: 0015817
2011-03-06 10:21 user6 Relationship added has duplicate 0004143
2011-03-06 10:24 user6 Category Technical -- General => Miscellaneous Crashes
2011-03-06 10:31 matakuka Note Edited: 0015805
2011-03-06 10:45 Psieye Note Added: 0015822
2011-03-06 11:00 matakuka Note Added: 0015825
2011-03-06 11:26 matakuka Note Edited: 0015825
2011-03-06 11:44 greycat Note Added: 0015830
2011-03-06 11:44 matakuka Note Edited: 0015825
2011-03-06 11:45 greycat Note Edited: 0015830
2011-03-06 12:09 user6 Summary Digging/mining (in soil?) causes crash => Digging/mining (in soil?) causes crash on non-Windows systems
2011-03-06 12:48 AbuDhabi Note Added: 0015835
2011-03-06 14:12 user1294 Note Added: 0015852
2011-03-06 14:27 user6 Note Edited: 0015817
2011-03-06 14:47 user1294 Note Added: 0015853
2011-03-06 15:01 user6 Note Added: 0015854
2011-03-06 15:08 user1294 Note Added: 0015857
2011-03-06 15:24 user1294 Note Edited: 0015857
2011-03-06 15:26 user6 Relationship added related to 0004013
2011-03-06 15:47 Pathologik Note Added: 0015865
2011-03-06 16:04 Pathologik Note Edited: 0015865
2011-03-06 18:59 Toady One Status new => resolved
2011-03-06 18:59 Toady One Fixed in Version => 0.31.21
2011-03-06 18:59 Toady One Resolution open => fixed
2011-03-06 18:59 Toady One Assigned To => Toady One
2011-03-07 23:35 user6 Relationship added has duplicate 0004160