Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.6.1
-
None
-
-
8bb93bf8e (dev), fa92448dd (6.7), 52770791a (6.6), b9d08e673 (tqtc/lts-6.5)
Description
I've stumbled on a very particular bug that didn’t happened before with Qt 5.X.Y
We develop audio plugins with Qt compiled statically. Every time a instance of our plugins is loaded we increment a counter and when a plugin is unloaded, we decrement the counter. When it gets to zero, we delete the Qt app. This method has been working stable for the last 8 years.
Recently, using Qt 6.6.1 I’ve realised that if I delete the last plugin, and the Qt app is deleted, if you then switch the focus to another application, the host application of the plugin crashes on the following function:
0x155cddc8c invocation function for block in QCocoaWindow::setupPopupMonitor() + 24
As far as I could evaluate, this is a macOS bug only.
This is a tricky bug to provide an example on how to reproduce, we need to be able to load the Qt application as a plugin, delete the Qt Application and switch the app in focus. But I'm available to provide more information if necessary.
Attachments
For Gerrit Dashboard: QTBUG-123959 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
552556,2 | macOS: Remove popup mouse and app activation monitors on app shutdown | dev | qt/qtbase | Status: MERGED | +2 | 0 |
552672,2 | macOS: Remove popup mouse and app activation monitors on app shutdown | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
552681,2 | macOS: Remove popup mouse and app activation monitors on app shutdown | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
552759,2 | macOS: Remove popup mouse and app activation monitors on app shutdown | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
552982,1 | macOS: Remove popup mouse and app activation monitors on app shutdown | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: ABANDONED | +2 | 0 |