View Issue Details

IDProjectCategoryView StatusLast Update
0002624Dwarf FortressTechnical -- Renderingpublic2016-06-29 18:24
ReporterCyberSkull Assigned Tolethosor  
PrioritynormalSeverityblockReproducibilityalways
Status confirmedResolutionreopened 
PlatformPowerPCOSMac OS XOS Version10.5.8
Product Version0.31.10 
Summary0002624: Bundled SDL version uses NSQuickDrawView on OS X; deprecated/unavailable in newer versions of OS X
DescriptionThe second message issued by DF is "2010-07-11 06:10:00.438 dwarfort.exe[25904:10b] 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."

QuickDraw should not be used in Mac OS X. It is not a native API and is there for legacy support only. Quartz is the main drawing and windowing system. It also supports hardware accelleration, something that QuickDraw does not.
Steps To ReproduceLaunch Dwarf Fortress. The warning is issued right when it starts to use graphics.
Additional Information(lethosor:) This only affects 2D and related print modes, and is fixed in SDL 1.2.15
Manager's note: Suggested fix: update SDL to SDL 1.2.15
1. Download SDL-1.2.15.dmg from https://www.libsdl.org/download-1.2.php (under Mac OS X). Direct link as of May 2016: https://www.libsdl.org/release/SDL-1.2.15.dmg
2. Open the downloaded .dmg file
3. Replace SDL.framework (possibly displayed as "SDL") in the libs folder in your DF folder with the downloaded version of SDL.framework
TagsFixed in 0.43.05?, Probable Quick Fix, SDL

Relationships

related to 0007389 confirmedlethosor freetype missing on OS X; causes crashes when entering fullscreen and/or starting DF 
has duplicate 0006641 resolvedlethosor Deprecated Function and Library Warning 
has duplicate 0006108 resolvedlethosor SDL Framework version uses [highly] depreciated Quicktime rather than Quartz. 
has duplicate 0009098 resolvedlethosor Game crash (window disappears) during launch following upgrade to Mac OS X El Capitan (10.11) in PRINT_MODE:2D 
has duplicate 0009166 resolvedlethosor Game Crashes at startup 
has duplicate 0009158 resolvedlethosor Crash on Startup 
has duplicate 0009238 resolvedlethosor Crash on launch 
has duplicate 0009555 resolvedlethosor Vanilla game simply will not start on MacOS ElCapitan 
has duplicate 0009680 resolvedlethosor Cannot open the df executable. 
related to 0005260 resolvedToady One Can't play fullscreen on Mac OS X Lion (bug in outdated SDL) 
related to 0009431 resolvedlethosor Mac launch script does not launch DF 

Activities

user6

2010-07-11 10:30

  ~0009943

Reminder sent to: Baughn

Hey Baughn, not sure what you want to do with this one.

Baughn

2010-07-11 16:13

manager   ~0009968

DF does not use QuickDraw.. It uses SDL, which uses quckdraw.

There's nothing I can do, really, but a future SDL version might fix this.

user6

2010-07-11 16:45

  ~0009972

Thanks for your input. Sounds like, for our purposes, it's not fixable.

lethosor

2014-11-14 14:01

manager   ~0030990

Reopening per 0006108

lethosor

2015-08-25 19:46

manager   ~0033000

Last edited: 2015-08-25 19:46

This issue is not present in SDL 1.2.15 (which can replace the SDL version DF uses without recompiling DF).

lethosor

2015-10-14 13:01

manager   ~0033110

Last edited: 2015-10-18 10:46

Quickdraw seems to have been removed entirely in OS X 10.11, which causes DF to hang or crash on startup with print modes like 2D (the default). crowder reports that updating to SDL 1.2.15 fixes this.

Instructions: Download SDL 1.2.15+ from https://www.libsdl.org/download-1.2.php (direct link: https://www.libsdl.org/release/SDL-1.2.15.dmg), and replace <DF>/libs/SDL.framework with the downloaded version of SDL.framework.

Zapperier

2015-10-18 17:31

reporter   ~0033120

Replacing SDL.framework with version 1.2.15 as well as SDL_ttf.framework with version 2.0.11 in the /libs folder did indeed resolve the problem on OS X 10.11.

tabacco

2016-01-20 10:25

reporter   ~0034490

I can confirm that updating the bundled SDL.framework to 1.2.15 fixes a startup crash in OS X 10.11.3

fraveydank

2016-02-06 05:53

reporter   ~0034610

I can promise you that Quickdraw has not been removed entirely in 10.11. I am working on a port of a vintage Mac game that relies heavily on a lot of Quickdraw features through Carbon and it still works reasonably well. NSQuickdrawView, however, may have been removed (or may have broken) since Apple is trying to convince people to get away from Quickdraw (which my porting project will as soon as something is stable enough for an initial release).

I can confirm that just replacing SDL.framework does work; no need to replace SDL_ttf.framework.

I should note that it still grumbles about Carbon Component Manager usage for the Audio units, which may lead to the same issue further down the road.

lethosor

2016-02-06 08:16

manager   ~0034611

Replacing SDL_ttf is necessary for 0007389, which isn't an issue if you've installed XQuartz (or freetype).

lethosor

2016-06-29 18:24

manager   ~0035525

Last edited: 2016-09-30 11:44

May be fixed in 0.43.05, since Toady reports that he is using SDL 1.2.15 now.
Edit: Just in the 64-bit version, it seems.

Add Note

Note

Issue History

Date Modified Username Field Change
2010-07-11 06:17 CyberSkull New Issue
2010-07-11 10:30 user6 Note Added: 0009943
2010-07-11 16:13 Baughn Note Added: 0009968
2010-07-11 16:45 user6 Note Added: 0009972
2010-07-11 16:45 user6 Status new => resolved
2010-07-11 16:45 user6 Resolution open => not fixable
2010-07-11 16:45 user6 Assigned To => user6
2014-07-08 09:01 lethosor Relationship added has duplicate 0006641
2014-11-14 13:59 lethosor Relationship added has duplicate 0006108
2014-11-14 14:01 lethosor Assigned To user6 => lethosor
2014-11-14 14:01 lethosor Note Added: 0030990
2014-11-14 14:01 lethosor Status resolved => feedback
2014-11-14 14:01 lethosor Resolution not fixable => reopened
2015-08-25 19:46 lethosor Note Added: 0033000
2015-08-25 19:46 lethosor Status feedback => confirmed
2015-08-25 19:46 lethosor Tag Attached: Probable Quick Fix
2015-08-25 19:46 lethosor Note Edited: 0033000
2015-08-28 08:04 lethosor Tag Attached: SDL
2015-10-14 13:01 lethosor Note Added: 0033110
2015-10-14 13:01 lethosor Severity minor => block
2015-10-17 18:58 lethosor Summary NSQuickDrawView used by DF => Bundled SDL version uses QuickDraw on OS X; deprecated/unavailable in newer versions of OS X
2015-10-17 19:03 lethosor Relationship added has duplicate 0009098
2015-10-18 09:55 lethosor Additional Information Updated
2015-10-18 10:46 lethosor Note Edited: 0033110
2015-10-18 10:46 lethosor Note Edited: 0033110
2015-10-18 10:54 lethosor Relationship added related to 0005260
2015-10-18 10:54 lethosor Relationship added related to 0007389
2015-10-18 17:31 Zapperier Note Added: 0033120
2015-12-02 20:10 lethosor Relationship added has duplicate 0009166
2015-12-02 20:10 lethosor Relationship added has duplicate 0009158
2015-12-05 13:49 lethosor Relationship added has duplicate 0009238
2015-12-28 06:44 lethosor Relationship added related to 0009431
2016-01-20 10:25 tabacco Note Added: 0034490
2016-01-26 15:40 lethosor Additional Information Updated
2016-02-06 05:53 fraveydank Note Added: 0034610
2016-02-06 08:16 lethosor Note Added: 0034611
2016-04-04 13:40 lethosor Summary Bundled SDL version uses QuickDraw on OS X; deprecated/unavailable in newer versions of OS X => Bundled SDL version uses NSQuickDrawView on OS X; deprecated/unavailable in newer versions of OS X
2016-04-04 13:41 lethosor Relationship added has duplicate 0009555
2016-04-05 10:05 lethosor Relationship added has duplicate 0009680
2016-05-17 16:52 lethosor Additional Information Updated
2016-06-29 18:23 lethosor Tag Attached: Fixed in 0.43.05?
2016-06-29 18:24 lethosor Note Added: 0035525
2016-09-30 11:44 lethosor Note Edited: 0035525