View Issue Details

IDProjectCategoryView StatusLast Update
0004103Dwarf FortressTechnical -- Generalpublic2014-08-05 16:53
Reportertheli0nheart Assigned ToToady One  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformMacOSOS XOS Version10.7 (11A390)
Product Version0.31.19 
Fixed in Version0.34.01 
Summary0004103: Command line client does not launch on OS X 10.7 Lion (READ FOR FIX)
DescriptionWhen launching df on OS X 10.7, dwarf fortress crashes.
Steps To Reproduce1. Download DF Mac version
2. Run ./df
3. Dwarf Fortress Crashes
Additional Informationhttp://www.bay12forums.com/smf/index.php?topic=90246.msg2501128#msg2501128
To fix this error, replace the 'df' script with this text:

OSREV=`uname -r | cut -d. -f1`
if [ "$OSREV" -ge 11 ] ; then
  # OSX Lion
  export DYLD_LIBRARY_PATH="${PWD}/libs"
  export DYLD_FRAMEWORK_PATH="${PWD}/libs"
else
  # Pre-Lion
  export DYLD_FALLBACK_LIBRARY_PATH="${PWD}/libs"
  export DYLD_FALLBACK_FRAMEWORK_PATH="${PWD}/libs"
fi
TagsOSX

Relationships

related to 0003263 resolvedToady One Mac version unable to load up Dwarf Fortress game at all. 
has duplicate 0004777 resolveduser11 Dwarf Fortress cannot start on Mac OS X Lion 
has duplicate 0004775 resolveduser11 Crashes on startup on Lion 
has duplicate 0004802 resolveduser11 Mac OSX Lion Startup Failure 
has duplicate 0004804 resolveduser6 DF crashes upon Embark every time 
has duplicate 0004992 resolveduser6 Won't run 
has duplicate 0004993 resolveduser11 Dwarf Fortress will not open in Lion 
has duplicate 0005030 resolveduser6 Game crashes immediately. 
related to 0004768 new DF crashes before fully loading. Something about a missing symbol. 

Activities

theli0nheart

2011-03-01 16:48

reporter   ~0015649

Wow, I have to apologize, with all my editing, I totally botched up the English in this report.

Summary: Command line client does not launch *on* OS X 10.7 Lion

Description: When launching df on OS X 10.7, dwarf fortress crashes.

Additional information: same error repeats 1468 times

kelwyn

2011-06-09 23:45

reporter   ~0017967

Last edited: 2011-08-04 08:56

Crash log: http://pastebin.com/XHSt5CeV

Flickering

2011-08-02 21:44

reporter   ~0018417

I have a workaround/fix for this issue..

The standard DF script has:

export DYLD_FALLBACK_LIBRARY_PATH=${PWD}/libs
export DYLD_FALLBACK_FRAMEWORK_PATH=${PWD}/libs

Which puts the libraries DF ships with right at the end of the search path. If I change those to:

export DYLD_LIBRARY_PATH=${PWD}/libs
export DYLD_FRAMEWORK_PATH=${PWD}/libs

Then the executable is loading happily (OSX Lion on a Mac Pro)

rustymyers

2011-08-03 21:05

reporter   ~0018425

I am running OS X Lion and the fix reported by Flickering is working for me. I'm on a Macbook Core 2 duo. Thanks dude.

norova

2011-08-05 08:40

reporter   ~0018435

I can report that this fix works for me as well.

Doolan

2011-08-16 17:41

reporter   ~0018542

I can report the fix lets the game launch, but it crashes again when you attempt an aimed attack in adventurer mode. Reproduced the crash six times in a row.

user11

2011-08-16 17:48

  ~0018544

Reminder sent to: Doolan

Do you happen to have TrueType enabled?

Doolan

2011-08-16 18:56

reporter   ~0018545

Aha, thank you Dwarfu, that was indeed the issue.

With the fix suggested in this thread and disabling TrueType it runs smooth as silk.

Thanks again!

dglidden

2011-09-08 08:06

reporter   ~0018692

Changing the startup script to set the DYLD paths does NOT work for me. The executable crashes with:

"397 Abort trap"

Even when extracting 31_25 from the original distribution and changing only the startup script it still crashes with the same error.

Explanatory

2011-12-17 21:14

reporter   ~0019189

Flickering's fix works for me to. I was getting the exact same problem. I'm just wondering why this less-than-one-minute-to-fix critical bug fix wasn't immediately fixed when a solution was found. (I'm using a version I just downloaded.)

jfs

2012-02-18 15:22

reporter   ~0020066

There is another ticket with OS X startup issues (0003263), I posted a proper fix there, which involves creating a proper application bundle instead of relying on a shell script. I believe it should be quite easy to integrate into the build toolchain used to compile Dwarf Fortress.

The gist of the fix is arranging the files into an .app bundle and fixing the binaries with the install_name_tool provided by Apple so they refer to libraries inside the bundle, that removes the need for DYLD environment hacks.

Madd the Sane

2012-07-02 20:23

reporter   ~0023145

Part of the problem is that the Mac version of Dwarf Fortress uses a custom c++ and gcc library. I do not understand why it does this (Cross-compiling issue, perhaps?), but using the system-supplied libraries will mean that the hack needed to get it working won't be needed.

lethosor

2014-07-30 19:29

manager   ~0027996

The main problem here was fixed in 0.34.01 (the "df" script now handles OS X 10.7+).

Issue History

Date Modified Username Field Change
2011-03-01 16:45 theli0nheart New Issue
2011-03-01 16:48 theli0nheart Note Added: 0015649
2011-03-01 23:32 user6 Summary Command line client does not launch is OS X 10.7 Lion => Command line client does not launch on OS X 10.7 Lion
2011-03-01 23:32 user6 Description Updated
2011-03-01 23:32 user6 Additional Information Updated
2011-06-09 23:45 kelwyn Note Added: 0017967
2011-07-27 07:59 user11 Relationship added has duplicate 0004777
2011-07-27 08:01 user11 Relationship added has duplicate 0004775
2011-07-27 08:28 user11 Relationship added related to 0004768
2011-08-02 21:44 Flickering Note Added: 0018417
2011-08-02 21:52 Flickering Tag Attached: OSX
2011-08-03 21:05 rustymyers Note Added: 0018425
2011-08-03 22:44 user11 Relationship added has duplicate 0004802
2011-08-04 08:56 user6 Note Edited: 0017967
2011-08-05 08:40 norova Note Added: 0018435
2011-08-05 18:21 Logical2u Relationship added parent of 0004804
2011-08-16 17:41 Doolan Note Added: 0018542
2011-08-16 17:48 user11 Note Added: 0018544
2011-08-16 17:48 user11 Tag Attached: AWAITING UPDATE
2011-08-16 18:56 Doolan Note Added: 0018545
2011-09-08 08:06 dglidden Note Added: 0018692
2011-12-17 21:14 Explanatory Note Added: 0019189
2011-12-22 09:52 user6 Tag Detached: AWAITING UPDATE
2011-12-22 09:54 user6 Additional Information Updated
2011-12-22 09:55 user6 Relationship added has duplicate 0004992
2011-12-22 19:42 user11 Relationship added has duplicate 0004993
2012-01-23 12:37 user6 Sticky Issue No => Yes
2012-01-23 12:37 user6 Summary Command line client does not launch on OS X 10.7 Lion => Command line client does not launch on OS X 10.7 Lion (READ FOR FIX)
2012-01-23 12:37 user6 Relationship added related to 0000048
2012-01-23 12:38 user6 Relationship deleted related to 0000048
2012-01-23 12:38 user6 Relationship replaced related to 0004804
2012-01-24 04:20 user11 Relationship added has duplicate 0005030
2012-02-18 15:22 jfs Note Added: 0020066
2012-02-19 02:15 user6 Relationship added related to 0003263
2012-03-21 18:26 user11 Relationship added has duplicate 0005580
2012-07-02 20:23 Madd the Sane Note Added: 0023145
2014-01-27 22:26 user6 Relationship replaced has duplicate 0004804
2014-07-30 19:29 lethosor Note Added: 0027996
2014-07-30 19:29 lethosor Status new => resolved
2014-07-30 19:29 lethosor Fixed in Version => 0.34.01
2014-07-30 19:29 lethosor Resolution open => fixed
2014-07-30 19:29 lethosor Assigned To => Toady One
2014-07-30 19:32 lethosor Relationship deleted has duplicate 0005580
2014-08-05 16:53 lethosor Sticky Issue Yes => No