Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.6.1, 5.7.0
-
None
-
Opensuse 13.2, kwin
Description
What I am doing may look a bit weird but it is a stripped down version from some real life code.
After porting to Qt 5 we are seeing random crashes in Xcb related code.
The attached test application can trigger one of these cases. The crash sometimes happens nearly on every start, sometime it does not happen at all for 10 or more invocations.
while true; do ./StartupCrash& sleep 5; pkill StartupCrash; done helps to kill the thing.
What the test app does:
It creates a plain dialog on the stack. And triggers it by calling exec()
With a timer the dialog repeatedly calls raise(), activateWindow() and showNormal(). This is a hammer used in the real life app to ensure that nothing else is on top...
After two seconds the dialog closes itself and is destroyed.
Now another plain dialog (but it could be an empty QWidget as well) without any special behavior is shown and exec of the application is called.
Now the thing crashes - or not.
Attachments
Issue Links
- relates to
-
QTBUG-48391 Opening multiple modal dialogs can crash the application.
- Closed