lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
244 stars 17 forks source link

26293254: NSTableView crashes attempting to show tooltip of removed column #14692

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

Description

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.

Product Version: 10.11.4 Created: 2016-05-16T06:01:28.719000 Originated: 2016-05-16T00:00:00 Open Radar Link: http://www.openradar.me/26293254

openradar-mirror commented 8 years ago

Modified: 2016-05-16T06:01:28.719180