Crash in NSRemoteViewBase when dismissing document popover view

Originator:jalkut
Number:rdar://20991953 Date Originated:17-May-2015 02:07 PM
Status:Open Resolved:
Product:OS X Product Version:
Classification: Reproducible:
 
Summary:
A Cocoa document-based app that was compiled against the 10.9 SDK or earlier will crash reliably when the document naming/tagging UI is dismissed by clicking out into the content of the document window.

Users of my app Black Ink have reported this crash to me and I've narrowed it down to being particular to the SDK linkage. Evidently behaviors of the remote view popover are altered when linked against 10.10 SDK sufficient to avoid the crash.

Steps to Reproduce:
This affects my shipping app, Black Ink, which is downloadable here: http://red-sweater.com/blackink/, but for the purposes of a concise example case, I've used Apple's own TextEdit sample code. The only change I made to the attached TextEdit project was to change the SDK from 10.10 to 10.9:

1. Open attached TextEdit.xcodeproj
2. Build and Run
3. Create a new document and type something in it.
4. Click the "Edited" indicator in the window title bar to bring up naming/tagging UI.
5. Click back into the document content to dismiss the document popover.

If a crash doesn't happen immediately, try repeating these steps a few times until it crashes. In my experience it's pretty reliable but does sometimes seem to take a second try.


Expected Results:
The panel should be dismissed without incident.

Actual Results:
Crash with attached log.


Version:
10.10.4 (14E17e)

Notes:


Configuration:
2014 MacBook Pro.

Attachments:
'TextEdit_2015-05-17-140058_Macho.crash' and 'TextEditCrasher.zip' were successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!