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

[Reg 5.11->5.12] Designer integration in Qt Creator crashes when built in debug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12.0 Beta 4
    • Fix Version/s: 5.12.0
    • Component/s: Tools: Designer
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      When compiling Qt Creator in debug, the integrated .ui Designer crashes at initialization (e.g. when opening a .ui file).

      objc[20830]: Class QMacAutoReleasePoolTracker is implemented in both ***/QtOnline/5.12.0/clang_64/lib/QtCore.framework/Versions/5/QtCore_debug (0x10fc5fc20) and ***/QtOnline/5.12.0/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x136b78068). One of the two will be used. Which one is undefined.
      ...
      QPixmap: Must construct a QGuiApplication before a QPixmap
      

      It looks like some code path in Qt Designer loads release libraries which in turn pull in release Qt frameworks, which leads to duplicate symbols.

      This is probably related to the change https://codereview.qt-project.org/222788 in Qt 5.12 that applications now directly link against the debug version of frameworks when built in debug.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              con Eike Ziller
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes