Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-472

Crash when adding gradient stop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • QDS 1.1.1
    • QDS 1.1.0
    • Property View
    • None
    • Windows

    Description

      Design Studio crashes when I am trying to add gradient stop to the "Rectangle" color. 

      Steps to reproduce:
      1. Add new Rectangle to the scene
      2. Open "Gradient" in its Color property
      3. Click on the space above the gradient scale to add new stop.

      Sometimes it doesn't crash if I save the changes after the first step.

      #6  0x00007fffbf30b1f8 in QmlDesigner::Internal::ModelPrivate::resetModelByRewriter(QString const&) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/libQmlDesigner.so
      #7  0x00007fffbf310952 in QmlDesigner::Internal::ModelPrivate::notifyNodeOrderChanged(QSharedPointer<QmlDesigner::Internal::InternalNodeListProperty> const&, QSharedPointer<QmlDesigner::Internal::InternalNode> const&, int) ()
          at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/libQmlDesigner.so
      #8  0x00007fffbf312fbe in QmlDesigner::Internal::ModelPrivate::changeNodeOrder(QSharedPointer<QmlDesigner::Internal::InternalNode> const&, QByteArray const&, int, int) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/libQmlDesigner.so
      #9  0x00007fffbf33683f in QmlDesigner::NodeListProperty::slide(int, int) const () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/libQmlDesigner.so
      #10 0x00007fffbf3fbaf2 in GradientModel::addStop(double, QColor const&) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/libQmlDesigner.so
      #11 0x00007fffbf4b80d6 in GradientModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/libQmlDesigner.so
      #12 0x00007fffbf4b8390 in GradientModel::qt_metacall(QMetaObject::Call, int, void**) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/libQmlDesigner.so
      #13 0x00007ffff3ff1249 in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #14 0x00007ffff3efa8fd in CallMethod(QQmlObjectOrGadget const&, int, int, int, int*, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #15 0x00007ffff3efbe8d in CallPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #16 0x00007ffff3efcc0e in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #17 0x00007ffff3f7fdbd in QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, QV4::Value*, int, QV4::Value*, int) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #18 0x00007ffff3f16088 in QV4::Moth::VME::interpret(QV4::CppStackFrame*, QV4::ExecutionEngine*, char const*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #19 0x00007ffff3f1b059 in QV4::Moth::VME::exec(QV4::CppStackFrame*, QV4::ExecutionEngine*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #20 0x00007ffff3eb24de in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #21 0x00007ffff401b678 in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #22 0x00007ffff3fbe3b2 in QQmlBoundSignalExpression::evaluate(void**) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #23 0x00007ffff3fbf8b3 in QQmlBoundSignal_callback(QQmlNotifierEndpoint*, void**) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #24 0x00007ffff3ffb404 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #25 0x00007ffff3fa1b64 in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5
      #26 0x00007ffff5a62f12 in QMetaObject::activate(QObject*, int, int, void**) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Core.so.5
      #27 0x00007fffbeb84312 in QQuickMouseArea::clicked(QQuickMouseEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5Quick.so.5
      #28 0x00007fffbeb85abb in QQuickMouseArea::setPressed(Qt::MouseButton, bool, Qt::MouseEventSource) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5Quick.so.5
      #29 0x00007fffbeb86a64 in QQuickMouseArea::mouseReleaseEvent(QMouseEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5Quick.so.5
      #30 0x00007fffbeaf593e in QQuickItem::event(QEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5Quick.so.5
      #31 0x00007ffff6e89b3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #32 0x00007ffff6e90d30 in QApplication::notify(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #33 0x00007ffff5a36e28 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Core.so.5
      #34 0x00007fffbeb0e75f in QQuickWindowPrivate::deliverMouseEvent(QQuickPointerMouseEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5Quick.so.5
      #35 0x00007fffbeb0fa9b in QQuickWindowPrivate::deliverPointerEvent(QQuickPointerEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5Quick.so.5
      #36 0x00007fffbeb108d5 in QQuickWindowPrivate::handleMouseEvent(QMouseEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5Quick.so.5
      #37 0x00007ffff6658a0b in QWindow::event(QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Gui.so.5
      #38 0x00007fffbeb11885 in QQuickWindow::event(QEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5Quick.so.5
      #39 0x00007ffff6e89b3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #40 0x00007ffff6e90d30 in QApplication::notify(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #41 0x00007ffff5a36e28 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Core.so.5
      #42 0x00007fffbefa489a in QQuickWidget::mouseReleaseEvent(QMouseEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5QuickWidgets.so.5
      #43 0x00007ffff6ec7828 in QWidget::event(QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #44 0x00007fffbefa4acb in QQuickWidget::event(QEvent*) () at /home/hag/qtdesignstudio-1.1.0/lib/qtcreator/plugins/../../Qt/lib/libQt5QuickWidgets.so.5
      #45 0x00007ffff6e89b3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #46 0x00007ffff6e9130f in QApplication::notify(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #47 0x00007ffff5a36e28 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Core.so.5
      #48 0x00007ffff6e9024a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #49 0x00007ffff6ee1231 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #50 0x00007ffff6ee3eeb in QWidgetWindow::event(QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #51 0x00007ffff6e89b3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #52 0x00007ffff6e90d30 in QApplication::notify(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #53 0x00007ffff5a36e28 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Core.so.5
      #54 0x00007ffff664d767 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Gui.so.5
      #55 0x00007ffff664ed15 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Gui.so.5
      #56 0x00007ffff662a9fb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Gui.so.5
      #57 0x00007fffeeffb81a in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () at /home/hag/qtdesignstudio-1.1.0/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5
      #58 0x00007ffff1428387 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #59 0x00007ffff14285c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #60 0x00007ffff142864c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #61 0x00007ffff5a8e1ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Core.so.5
      #62 0x00007ffff5a3578a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Core.so.5
      #63 0x00007ffff5a3e190 in QCoreApplication::exec() () at /home/hag/qtdesignstudio-1.1.0/bin/../lib/Qt/lib/libQt5Core.so.5
      #64 0x000000000040a468 in main ()
      
      virtual void QmlDesigner::Internal::ModelValidator::typeDiffers(bool, QmlDesigner::ModelNode&, const TypeName&, int, int, QmlJS::AST::UiObjectMember*, QmlDesigner::Internal::ReadingContext*) ModelNode(17, "QtQuick.Gradient", "")
      "QtQuick.Gradient" 0 12
      SOFT ASSERT: "modelNode.minorVersion() == minorVersion" in file ../../../../qt-creator/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp, line 1745
      virtual void QmlDesigner::Internal::ModelValidator::typeDiffers(bool, QmlDesigner::ModelNode&, const TypeName&, int, int, QmlJS::AST::UiObjectMember*, QmlDesigner::Internal::ReadingContext*) ModelNode(17, "QtQuick.Gradient", "")
      "QtQuick.Gradient" 0 12
      SOFT ASSERT: "modelNode.minorVersion() == minorVersion" in file ../../../../qt-creator/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp, line 1745
      virtual void QmlDesigner::Internal::ModelValidator::typeDiffers(bool, QmlDesigner::ModelNode&, const TypeName&, int, int, QmlJS::AST::UiObjectMember*, QmlDesigner::Internal::ReadingContext*) ModelNode(17, "QtQuick.Gradient", "")
      "QtQuick.Gradient" 0 12
      SOFT ASSERT: "modelNode.minorVersion() == minorVersion" in file ../../../../qt-creator/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp, line 1745
      *** MoveNodeRewriteAction::execute failed in moveObjectBeforeObject( -1 , -1 ) ** "MoveNodeRewriteAction for node \"\" before node \"\""
      RewriterException:  Error rewriting document
      

      Attachments

        Activity

          People

            thohartm Thomas Hartmann
            algerman Aleksei German
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: