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

QPushButton crash on macOS 10.15 Catalina public beta 3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.11.0, 5.12.2, 5.12.4
    • None
    • macOS SDK 10.14, macOS SDK 10.15, macOS 10.15 public beta 3, macOS 10.15 public beta 4
    • macOS

    Description

      Having a QPushButton in a QSplashScreen (or a QDialog with Qt::SplashScreen set) results in the following exception and hard crash when running on macOS 10.15 public beta 3:

      "The window has been marked as needing another Display Window pass, but it has already had more Display Window passes than there are views in the window."

      See the attached crash report and minimal test case that reproduces the issue, tested with Qt 5.11.0, 5.12.2, and 5.12.4.

       

      This exception arises only when an application is built with Xcode 10 (SDK 10.14) or Xcode 11 (SDK 10.15) and then run on the 10.15 beta.

      An app built with Xcode 9 (SDK 10.13) runs without issue on the 10.15 beta.

      An app built with Xcode 10 or Xcode 11 runs without issue on 10.14 and earlier.

      Based on exception call stack and the connection to the 10.14 or later SDK, it seems likely to be related to the use of CoreAnimation for drawing windows as described in the 10.14 AppKit release notes. As mentioned in Qt's blog post regarding Mojave, the current workaround seems to be to build using Xcode 9, or to use a different window type.

      But why it would be a problem in 10.15 and not 10.14 is a mystery. It could be a bug in macOS 10.15, but I don't understand Qt's internals well enough to chase that down. If it's an Apple bug, you're probably best suited to report it.

      Attachments

        1. main.cpp
          0.9 kB
        2. sample.pro
          0.0 kB
        3. sample-crash.txt
          7 kB

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              slocbug S L
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes