Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.14.2, 5.15.2, 6.2.0
-
None
-
-
b8dadf54c3736b52a770d7715c8320a4dd016427 (pyside/pyside-setup/dev) b2b0206844779702320c499f46277c56765a0a9e (pyside/pyside-setup/6.2) 0a2cac41f776e225d617598fd55a942bef913573 (pyside/tqtc-pyside-setup/5.15)
Description
The combination of qInstallMessageHandler, QQmlApplicationEngine loading an
ApplicationWindow and Qt Logging enabled (e.g. with QT_LOGGING_RULES=*=true) results in a GIL deadlock in qt_message_output.
When starting the attached application with Qt Logging enabled, the process hangs and the window is not shown. In the thread stack list, you can see that the Qt Thread hangs at PyGILState_Ensure.
This is very likely a regression from https://bugreports.qt.io/browse/PYSIDE-803, as the issue can't be reproduced with 5.13.2 (5.14.0 and 5.14.1 crashes).
Attachments
Issue Links
- resulted from
-
PYSIDE-803 QThread Freezes GUI
- Closed
For Gerrit Dashboard: PYSIDE-1681 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
375720,4 | PySide6: Fix hang in QQmlApplicationEngine functions with message handler | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
375770,2 | PySide6: Fix hang in QQmlApplicationEngine functions with message handler | 6.2 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
375771,3 | PySide6: Fix hang in QQmlApplicationEngine functions with message handler | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |