Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.0
-
OSX 10.9.1
-
-
09f54e99f2e956908f9104181e7d61fa2f6a027d
Description
Run the small attached sample. Click on the 1st window to activate it -> crash (see picture of crash point in qnsview.mm)
The debugger says:
"[NSCursor set]: message sent to deallocated instance"
(I have Zombie enabled under XCode 5)
This is a Cocoa issue of Qt 5.x.
After some more analysis of the problem, I found the following:
QCocoaWindow stores a copy of a NSCursor in QCocoaWindow::m_windowCursor (cf. QCocoaWindow::setWindowCursor)
but this becomes a dangling pointer later when:
QCocoaCursor::changeCursor is called, which itself calls convertCursor and the line [cocoaCursor release] is reached
My guess is that this is the root of the problem.
Attachments
Issue Links
- is required for
-
QTBUG-35562 Issues to be fixed in Qt 5.2.1
- Closed
- replaces
-
QTBUG-36965 Cursor-related Crash With Qt5.2 on Macintosh
- Closed