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

Crash on OSX when using QtQuick FileDialog with set AA_PluginApplication flag

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.5, 5.14.0 Alpha
    • 5.12.3
    • Quick: Dialogs
    • None
    • See crashlog.txt for all system details. Using XCode 10.2.1
    • macOS
    • aef0fba3c550915318db5b350892f558ec7e77ff (qt/qtbase/5.12)

    Description

      The attached QtCreator project startet from a new, empty Qt Quick application.

      In the main.cpp we added

      QGuiApplication::setAttribute(Qt::AA_PluginApplication);

      In main.qml, we added

      import QtQuick.Dialogs 1.3
      ...
      FileDialog{}

      When we run this project we see a crash while quitting the application in [QCocoaMenuLoader dealloc]   ->  see crashlog.txt .

      When we remove the line

      QGuiApplication::setAttribute(Qt::AA_PluginApplication);

      everything is fine. If we remove the FileDialog from main.qml, the crash is gone,too.

       

      The context, where we observe the same crash is in an audio plugin, done with QtQuick. Here we set

      QGuiApplication::setAttribute(Qt::AA_PluginApplication); QGuiApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); 

      Quitting the plugin's host application causes the same crash. In the plugin if we

      • remove the two setAttribute() calls, the host always crashes in [QCocoaMenuLoader dealloc] 
      • remove the FileDialog and do set the two attribute, the host quits fine

      Attachments

        For Gerrit Dashboard: QTBUG-76523
        # Subject Branch Project Status CR V

        Activity

          People

            tpochep Timur Pocheptsov
            frank2525 Frank Deinzer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes