Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.3.1
-
Qt 5.3.1 with patch https://codereview.qt-project.org/#/c/95499 applied.
OS X 10.9, Xcode 6.0.1
-
-
aeb169a48869f4f50237e384e57ccb406228f620
Description
When calling setParent on a widget i sometimes gets this crash. Using the minimal example below i can reproduce the issue usually after having double clicked about 3-4 times - sometimes it crashed on 1st snap in, sometimes after tenth attempt.
This is most likely to be a dangling pointer problem.
Applying the patch of QTBUG-39628 did not help to solve the problem.
Calling toggleParent() by event loop using QMetaObject::invokeMethod() does not solve the problem but makes it more difficult to reproduce.
Attachments
For Gerrit Dashboard: QTBUG-42059 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
97980,4 | QCocoaWindow/QNSWindow and sendEvent for a closed window. | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
99880,5 | Cocoa integration - protect against dangling pointers | 5.4 | qt/qtbase | Status: ABANDONED | +1 | 0 |
126334,2 | Cocoa integration - re-parent NSView correctly | dev | qt/qtbase | Status: MERGED | +2 | 0 |
126338,1 | Cocoa integration - protect against dangling pointers | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
150245,3 | Cocoa integration - avoid using dangling pointers | dev | qt/qtbase | Status: MERGED | +2 | 0 |
156472,2 | Cocoa integration - add a protection against dangling pointers | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
195140,2 | macOS: Remove workaround when adding view as subview | dev | qt/qtbase | Status: MERGED | +2 | 0 |