Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.2
Description
We have a QApplication with a QMainwindow displaying QMessageBoxes.
If the user confirms the message, a new QMessagebox appears (just to simplify).
If the user just stays on the return key, after a few seconds the application hangs on OSX 10.12.
The endless loop is in
Qcocoaeventdispatcher.mm line 400:
while ([NSApp runModalSession:session] == NSRunContinuesResponse && !d->interrupt)
qt_mac_waitForMoreEvents(NSModalPanelRunLoopMode);
I tried the same with Qt5.8 but with no luck. After a while it crashes with output in Terminal:
2017-03-14 14:44:11.725 eagle[19420:359804] modalSession has been exited prematurely - check for a reentrant call to endModalSession: 2017-03-14 14:44:11.725 eagle[19420:359804] -[NSApplication runModalSession:]: Use of freed session detected. Do not call runModalSession: after calling endModalSesion:. 2017-03-14 14:44:12.292 eagle[19420:359804] modalSession has been exited prematurely - check for a reentrant call to endModalSession: 2017-03-14 14:44:12.302 eagle[19420:359804] -[NSApplication runModalSession:]: Use of freed session detected. Do not call runModalSession: after calling endModalSesion:. Trace/BPT trap: 5