NSTableView crashes attempting to show tooltip of removed column
| Originator: | abhibeckert | ||
| Number: | rdar://26293254 | Date Originated: | 2016-05-16 |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | 10.11.4 |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: When removing a table column, it's tooltip is not removed from the view, and this causes a crash when placing the mouse over the table column header. As a workaround, you can remove the tooltip before removing the table column (see example code) Steps to Reproduce: 1. launch build/run attached Xcode project 2. click "add column" (creates a column with a tooltip) 3. click "remove column" 4. place mose where the removed column's header was 5. wait a moment for the tooltip delay Expected Results: No tooltip should be presented. No crash. Actual Results: Attempts to show a tooltip, but the column has been deallocated and this causes a crash. If you retain a strong reference to the removed table column, then the tooltip for the removed column will appear. Obviously it shouldn't Version: Tested on OS X 10.11.4 (15E65). We had plenty of crash reports for this bug in older versions of OS X. Notes: Configuration: No special configuration necessary. Just the latest Xcode/OS X. Attachments: 'tooltip test crash.zip' was 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!