Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27509

QmlDesigner crashes when opening .ui.qml file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • Qt Creator 7.0.2
    • Qt Creator 8.0.0-beta1
    • Quick Designer
    • None

    Description

      Crashes when running Qt Creator with -load QmlDesigner and then opening a .ui.qml file.

      Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
      0   libQmlProjectManager.dylib    	       0x1255c2160 std::__1::unique_ptr<QmlProjectManager::QmlProjectItem, std::__1::default_delete<QmlProjectManager::QmlProjectItem> >::operator bool() const + 24 (memory:1674)
      1   libQmlProjectManager.dylib    	       0x1255c2160 std::__1::unique_ptr<QmlProjectManager::QmlProjectItem, std::__1::default_delete<QmlProjectManager::QmlProjectItem> >::operator bool() const + 24 (memory:1674)
      2   libQmlProjectManager.dylib    	       0x1255c4df0 QmlProjectManager::QmlBuildSystem::shaderToolFiles() const + 40 (qmlproject.cpp:638)
      3   libQmlDesigner.dylib          	       0x12b95b184 QmlDesigner::NodeInstanceView::updateQsbPathToFilterMap() + 96 (nodeinstanceview.cpp:2028)
      4   libQmlDesigner.dylib          	       0x12b958cec QmlDesigner::NodeInstanceView::modelAttached(QmlDesigner::Model*) + 940 (nodeinstanceview.cpp:290)
      5   libQmlDesigner.dylib          	       0x12ba4a23c QmlDesigner::Internal::ModelPrivate::setNodeInstanceView(QmlDesigner::NodeInstanceView*) + 156 (model.cpp:1245)
      6   libQmlDesigner.dylib          	       0x12ba4c8d0 QmlDesigner::Model::setNodeInstanceView(QmlDesigner::NodeInstanceView*) + 36 (model.cpp:1576)
      7   libQmlDesigner.dylib          	       0x12bb9ea4c QmlDesigner::ViewManager::attachNodeInstanceView() + 276 (viewmanager.cpp:118)
      8   libQmlDesigner.dylib          	       0x12bba01e0 QmlDesigner::ViewManager::attachViewsExceptRewriterAndComponetView() + 252 (viewmanager.cpp:261)
      9   libQmlDesigner.dylib          	       0x12b84f218 QmlDesigner::QmlDesignerPlugin::activateAutoSynchronization() + 148 (qmldesignerplugin.cpp:566)
      10  libQmlDesigner.dylib          	       0x12b84ec38 QmlDesigner::QmlDesignerPlugin::showDesigner() + 892 (qmldesignerplugin.cpp:479)
      11  libQmlDesigner.dylib          	       0x12b864050 QmlDesigner::QmlDesignerPlugin::integrateIntoQtCreator(QWidget*)::$_4::operator()(Utils::Id, Utils::Id) const + 136 (qmldesignerplugin.cpp:445)
      12  libQmlDesigner.dylib          	       0x12b863fac QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<Utils::Id, Utils::Id>, void, QmlDesigner::QmlDesignerPlugin::integrateIntoQtCreator(QWidget*)::$_4>::call(QmlDesigner::QmlDesignerPlugin::integrateIntoQtCreator(QWidget*)::$_4&, void**) + 68 (qobjectdefs_impl.h:163)
      13  libQmlDesigner.dylib          	       0x12b863f30 void QtPrivate::Functor<QmlDesigner::QmlDesignerPlugin::integrateIntoQtCreator(QWidget*)::$_4, 2>::call<QtPrivate::List<Utils::Id, Utils::Id>, void>(QmlDesigner::QmlDesignerPlugin::integrateIntoQtCreator(QWidget*)::$_4&, void*, void**) + 36 (qobjectdefs_impl.h:277)
      14  libQmlDesigner.dylib          	       0x12b863ed0 QtPrivate::QFunctorSlotObject<QmlDesigner::QmlDesignerPlugin::integrateIntoQtCreator(QWidget*)::$_4, 2, QtPrivate::List<Utils::Id, Utils::Id>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 128 (qobjectdefs_impl.h:444)
      15  QtCore                        	       0x107dd58f4 0x107d24000 + 727284
      16  libCore.dylib                 	       0x10d96aeb0 Core::ModeManager::currentModeChanged(Utils::Id, Utils::Id) + 128 (moc_modemanager.cpp:201)
      17  libCore.dylib                 	       0x10ddee104 Core::ModeManager::currentTabChanged(int) + 364 (modemanager.cpp:350)
      18  libCore.dylib                 	       0x10ddf11e4 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, void (Core::ModeManager::*)(int)>::call(void (Core::ModeManager::*)(int), Core::ModeManager*, void**) + 140 (qobjectdefs_impl.h:171)
      19  libCore.dylib                 	       0x10ddf1120 void QtPrivate::FunctionPointer<void (Core::ModeManager::*)(int)>::call<QtPrivate::List<int>, void>(void (Core::ModeManager::*)(int), Core::ModeManager*, void**) + 80 (qobjectdefs_impl.h:208)
      20  libCore.dylib                 	       0x10ddf102c QtPrivate::QSlotObject<void (Core::ModeManager::*)(int), QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 148 (qobjectdefs_impl.h:419)
      21  QtCore                        	       0x107dd58f4 0x107d24000 + 727284
      22  libCore.dylib                 	       0x10d95f68c Core::Internal::FancyTabWidget::currentChanged(int) + 96 (moc_fancytabwidget.cpp:463)
      23  libCore.dylib                 	       0x10dbe7abc Core::Internal::FancyTabWidget::showWidget(int) + 152 (fancytabwidget.cpp:641)
      24  libCore.dylib                 	       0x10dbec5f0 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, void (Core::Internal::FancyTabWidget::*)(int)>::call(void (Core::Internal::FancyTabWidget::*)(int), Core::Internal::FancyTabWidget*, void**) + 140 (qobjectdefs_impl.h:171)
      25  libCore.dylib                 	       0x10dbec52c void QtPrivate::FunctionPointer<void (Core::Internal::FancyTabWidget::*)(int)>::call<QtPrivate::List<int>, void>(void (Core::Internal::FancyTabWidget::*)(int), Core::Internal::FancyTabWidget*, void**) + 80 (qobjectdefs_impl.h:208)
      26  libCore.dylib                 	       0x10dbec438 QtPrivate::QSlotObject<void (Core::Internal::FancyTabWidget::*)(int), QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 148 (qobjectdefs_impl.h:419)
      27  QtCore                        	       0x107dd58f4 0x107d24000 + 727284
      28  libCore.dylib                 	       0x10d95f034 Core::Internal::FancyTabBar::currentChanged(int) + 96 (moc_fancytabwidget.cpp:278)
      29  libCore.dylib                 	       0x10dbebcdc Core::Internal::FancyTabBar::mousePressEvent(QMouseEvent*)::$_0::operator()() const + 32 (fancytabwidget.cpp:225)
      30  libCore.dylib                 	       0x10dbebca0 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Core::Internal::FancyTabBar::mousePressEvent(QMouseEvent*)::$_0>::call(Core::Internal::FancyTabBar::mousePressEvent(QMouseEvent*)::$_0&, void**) + 28 (qobjectdefs_impl.h:163)
      31  libCore.dylib                 	       0x10dbebc4c void QtPrivate::Functor<Core::Internal::FancyTabBar::mousePressEvent(QMouseEvent*)::$_0, 0>::call<QtPrivate::List<>, void>(Core::Internal::FancyTabBar::mousePressEvent(QMouseEvent*)::$_0&, void*, void**) + 36 (qobjectdefs_impl.h:277)
      32  libCore.dylib                 	       0x10dbebbec QtPrivate::QFunctorSlotObject<Core::Internal::FancyTabBar::mousePressEvent(QMouseEvent*)::$_0, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 128 (qobjectdefs_impl.h:444)
      33  QtCore                        	       0x107dce278 QObject::event(QEvent*) + 584
      34  QtWidgets                     	       0x105704924 QWidget::event(QEvent*) + 3696
      35  libCore.dylib                 	       0x10dbe54d8 Core::Internal::FancyTabBar::event(QEvent*) + 240 (fancytabwidget.cpp:163)
      36  QtWidgets                     	       0x1056b9330 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
      37  QtWidgets                     	       0x1056baedc QApplication::notify(QObject*, QEvent*) + 3396
      38  QtCore                        	       0x107d8c86c QCoreApplication::notifyInternal2(QObject*, QEvent*) + 208
      39  QtCore                        	       0x107d8daf0 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 828
      40  libqcocoa.dylib               	       0x105ce7ea4 0x105cd0000 + 97956
      41  libqcocoa.dylib               	       0x105ce8534 0x105cd0000 + 99636
      42  CoreFoundation                	       0x1b06e29a0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
      43  CoreFoundation                	       0x1b06e28ec __CFRunLoopDoSource0 + 208
      44  CoreFoundation                	       0x1b06e25ec __CFRunLoopDoSources0 + 268
      45  CoreFoundation                	       0x1b06e0f6c __CFRunLoopRun + 828
      46  CoreFoundation                	       0x1b06e0490 CFRunLoopRunSpecific + 600
      47  HIToolbox                     	       0x1b9300dd8 RunCurrentEventLoopInMode + 292
      48  HIToolbox                     	       0x1b9300b54 ReceiveNextEventCommon + 564
      49  HIToolbox                     	       0x1b9300908 _BlockUntilNextEventMatchingListInModeWithFilter + 72
      50  AppKit                        	       0x1b323fb2c _DPSNextEvent + 860
      51  AppKit                        	       0x1b323e424 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
      52  AppKit                        	       0x1b32305f0 -[NSApplication run] + 596
      53  libqcocoa.dylib               	       0x105ce741c 0x105cd0000 + 95260
      54  QtCore                        	       0x107d95f28 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 544
      55  QtCore                        	       0x107d8cf48 QCoreApplication::exec() + 128
      56  Qt Creator                    	       0x1042fe95c main + 11136 (main.cpp:795)
      57  dyld                          	       0x104575088 start + 516
      

      I also get some output on Terminal, not sure how related that is:

      Built with Qt 6.2.3:

      QQmlEngine::setContextForObject(): Object already has a QQmlContext
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/TextField.qml:43: TypeError: Property 'styleFont' of object QQuickRectangle_QML_34(0x600002029f80) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:42: TypeError: Property 'styleFont' of object QQuickRectangle(0x600002024b60) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:42: TypeError: Property 'styleFont' of object QQuickRectangle(0x6000020247e0) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:42: TypeError: Property 'styleFont' of object QQuickRectangle(0x60000201ef40) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:42: TypeError: Property 'styleFont' of object QQuickRectangle(0x60000201e300) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/TextField.qml:43: TypeError: Property 'styleFont' of object QQuickRectangle_QML_78(0x600002018c40) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:42: TypeError: Property 'styleFont' of object QQuickRectangle(0x60000201b800) is not a function
      

      Built with Qt 6.3.0:

      Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on background is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on background is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on background is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/TextField.qml:46: TypeError: Property 'styleFont' of object QQuickRectangle_QML_23(0x6000027ad6c0) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:45: TypeError: Property 'styleFont' of object QQuickRectangle(0x6000027aebc0) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:45: TypeError: Property 'styleFont' of object QQuickRectangle(0x6000027aea00) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:45: TypeError: Property 'styleFont' of object QQuickRectangle(0x6000027a4b60) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:45: TypeError: Property 'styleFont' of object QQuickRectangle(0x6000027a49a0) is not a function
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/TextField.qml:46: TypeError: Property 'styleFont' of object QQuickRectangle_QML_79(0x6000027a3c60) is not a function
      Binding on indicator is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      Binding on background is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id.
      qrc:/qt-project.org/imports/QtQuick/Controls/macOS/ScrollBar.qml:45: TypeError: Property 'styleFont' of object QQuickRectangle(0x6000027b9960) is not a function
      

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes