DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.86k stars 468 forks source link

DFHACK_HEADLESS will Segmentation fault #1589

Closed ralpha closed 3 years ago

ralpha commented 4 years ago

Tested on Linux: When setting DFHACK_HEADLESS dfhack will always crash on startup with a Segmentation fault (core dumped)

$ export DFHACK_HEADLESS=1
$ ./dfhack
Loading bindings from data/init/interface.txt
Resetting textures
Segmentation fault (core dumped)

$

Tested with 0.47.04-r1 (release) on x86_64 Linux (self compiled although works normally when doing anything else) (dfhack.init == dfhack.init-example)

lethosor commented 4 years ago

Pretty sure I fixed this in https://github.com/DFHack/dfhack/commit/24cebbda5813450b0196253cc7c26aa773f23622 (after 0.47.04-r1) - does it work with PRINT_MODE:TEXT in init.txt?

(If this is related to #1587, headless mode is intended to disable the graphical display, not the console.)

lethosor commented 3 years ago

Assuming this was resolved in 0.47.04-r2.