Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62233

Showing QMessageBoxes repeatedly crashes on Mac

    XMLWordPrintable

    Details

    • Platform/s:
      macOS

      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

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            misalmel Mika Salmela
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes