Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002624Dwarf FortressTechnical -- Renderingpublic2010-07-11 06:172016-06-29 18:24
ReporterCyberSkull 
Assigned Tolethosor 
PrioritynormalSeverityblockReproducibilityalways
StatusconfirmedResolutionreopened 
PlatformPowerPCOSMac OS XOS Version10.5.8
Product Version0.31.10 
Target VersionFixed in Version 
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
Attached Files

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

-  Notes
(0009943)
Footkerchief (manager)
2010-07-11 10:30

Reminder sent to: Baughn

Hey Baughn, not sure what you want to do with this one.
(0009968)
Baughn (manager)
2010-07-11 16:13

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.
(0009972)
Footkerchief (manager)
2010-07-11 16:45

Thanks for your input. Sounds like, for our purposes, it's not fixable.
(0030990)
lethosor (manager)
2014-11-14 14:01

Reopening per 0006108
(0033000)
lethosor (manager)
2015-08-25 19:46
edited on: 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).

(0033110)
lethosor (manager)
2015-10-14 13:01
edited on: 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.

(0033120)
Zapperier (reporter)
2015-10-18 17:31

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.
(0034490)
tabacco (reporter)
2016-01-20 10:25

I can confirm that updating the bundled SDL.framework to 1.2.15 fixes a startup crash in OS X 10.11.3
(0034610)
fraveydank (reporter)
2016-02-06 05:53

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.
(0034611)
lethosor (manager)
2016-02-06 08:16

Replacing SDL_ttf is necessary for 0007389, which isn't an issue if you've installed XQuartz (or freetype).
(0035525)
lethosor (manager)
2016-06-29 18:24
edited on: 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.


- Issue History
Date Modified Username Field Change
2010-07-11 06:17 CyberSkull New Issue
2010-07-11 10:30 Footkerchief Issue Monitored: Baughn
2010-07-11 10:30 Footkerchief Note Added: 0009943
2010-07-11 16:13 Baughn Note Added: 0009968
2010-07-11 16:45 Footkerchief Note Added: 0009972
2010-07-11 16:45 Footkerchief Status new => resolved
2010-07-11 16:45 Footkerchief Resolution open => not fixable
2010-07-11 16:45 Footkerchief Assigned To => Footkerchief
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 Footkerchief => lethosor
2014-11-14 14:01 lethosor Note Added: 0030990
2014-11-14 14:01 lethosor Status resolved => needs 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 needs feedback => confirmed
2015-08-25 19:46 lethosor Tag Attached: Probable Quick Fix
2015-08-25 19:46 lethosor Note Edited: 0033000 View Revisions
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 08:27 fricy Issue Monitored: fricy
2015-10-18 09:55 lethosor Additional Information Updated View Revisions
2015-10-18 10:46 lethosor Note Edited: 0033110 View Revisions
2015-10-18 10:46 lethosor Note Edited: 0033110 View Revisions
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 View Revisions
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 View Revisions
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 View Revisions


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker