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

Crash on macOS when showing QMainWindow with "Preferences" menu item in "Edit" menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.1, 6.6.0
    • 6.4.2
    • Widgets: Main Window
    • None
    • macOS
    • f03fedfae (dev), 4f8983cf2 (6.5)

    Description

      This feels really specific but here it is... I get a crash on macOS Ventura (M1) using Qt 6.4.2_2 from homebrew. I have narrowed it down to the use of a Preferences menu item in QMainWindow.

      I have attached a minimal example (guide.zip).

      Simply build and run

      unzip guide
      cd guide
      qmake
      make
      open guide.app{}

      I have also attached a copy of the crash log (guide crash.txt).

      Strangely enough, if I start the program from the terminal it does not crash.

      $PWD/guide.app/Contents/MacOS/guide

      Attachments

        1. guide.zip
          2 kB
        2. guide crash.txt
          31 kB

        Issue Links

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

          Activity

            People

              tpochep Timur Pocheptsov
              a1291762 Lincoln Ramsay
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes