Page MenuHome

Blender crashes instantly under OS X Yosemite 10.10.2 (14C68m) due to deprecated API removal
Closed, ArchivedPublic

Description

[Apologies if double-filed, this is my first bug report and I am not sure I found all the search settings in the bug tracking system to surface prior reports]

System Information
OS X Yosemite early access/beta 10.10.2 (14C68m)

*PLEASE NOTE* even though this deprecated API may be restored in another early access beta, it is still a good idea to remove references to deprecated code if possible.

Blender Version
Broken: All releases until 2.73rc1 (last one I tested)
Worked: do not touch the trackpad, just use a mouse (!), or use the workaround described in this reddit page (applied to Chrome, but same idea works for Blender): http://www.reddit.com/r/apple/comments/2n2b9c/os_x_10102_crashes_google_chrome/

In the case of blender, the terminal command is: env DYLD_INSERT_LIBRARIES=~/Desktop/patch.dylib "/Applications/blender.app/Contents/MacOS/blender"

Short description of error
Blender crashes instantly when touching/using Trackpad on any Mac running 10.10.2 with a Trackpad attached (desktop or laptop) due to parameter that was deprecated now being removed.

isResting was Available in OS X v10.6 through OS X v10.9, deprecated and removed in 10.10.2

Relevant crash report section:

  • 8< ---------

Process: blender [13891]
Path: /Users/USER/Downloads/*/blender.app/Contents/MacOS/blender
Identifier: org.blenderfoundation.blender
Version: 2.73rc1 (2.73rc1, 2014-Dec-24, Blender Foundation)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: blender [13891]
User ID: 501

Date/Time: 2015-01-04 09:32:09.255 -0800
OS Version: Mac OS X 10.10.2 (14C68m)
Report Version: 11

Time Since Wake: 880 seconds

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:

  • Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTouch _initWithPreviousTouch:newPhase:position:isResting:]: unrecognized selector sent to instance 0x6180000a0180'

terminating with uncaught exception of type NSException
abort() called

  • 8< ---------

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

Event Timeline

Diego (bluesun) raised the priority of this task from to 90.
Diego (bluesun) updated the task description. (Show Details)
Diego (bluesun) added a project: BF Blender.
Diego (bluesun) edited a custom field.
Diego (bluesun) added a subscriber: Diego (bluesun).

I can confirm that as of OS X 10.10.2 (14C81f) and possibly earlier versions this crash no longer happens since the param was restored, presumably to prevent too many old(er) apps from crashing. As I mentioned in the report It's still a good idea to fix it if at all possible. Thanks!

Sergey Sharybin (sergey) lowered the priority of this task from 90 to Normal.Jan 5 2015, 9:10 AM

IMHO the removal in the middle of the OSX 10.10 trunk was erratic and needs no
work from our side until this function gets official deprecated or dropped.

Else i would say: "What the heck Apple software engeneers are smoking ? "

Jens

Thanks for looking into it, for reference the documentation notes that it is only available through OS X 10.9, see https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSTouch_Class/#//apple_ref/occ/instp/NSTouch/isResting which is as official as it gets with Apple.

PS: apologies that the bug remained marked high priority even after I clarified newer betas didn't cause it. I couldn't find a way to edit it once submitted.

Hmmmm. why the heck was it in 10.10.0 and 10.10.1 then + put back in second 10.10.2 beta ?
Confusing times. In thos case it indeed should be replaced soon.

Jens

K, checked again, we should not have to react:

Compare: https://code.google.com/p/chromium/issues/detail?id=435486

See: Apple have acknowledged rdar://19075919

Final note: Apple have released a new 10.10.2 build 14C78c, which I have verified fixes this issue. You can update to this OS X build via the Mac App Store.

And a reminder: """
Please note that since pre-release software or beta software has not yet been commercially-released by Apple, it may contain errors or inaccuracies and may not function as well as commercially-released software. Be sure to back up your computer using Time Machine before installing this pre-release software and install it only on non-production or machines that are not business critical.
"""

Jens

Sergey Sharybin (sergey) changed the task status from Unknown Status to Unknown Status.Jan 13 2015, 5:07 PM
Sergey Sharybin (sergey) claimed this task.

Talked to Jens in IRC, nothing to be done from our side.