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

Division by zero when changing path elements of ShapePath imperatively

    XMLWordPrintable

Details

    • 8d597bea2 (dev), 503cbb4ad (6.9), 5482f67da (6.8), 95fbd1e9f (dev), beebdbf5e (tqtc/lts-5.15)

    Description

      import QtQuick
      import QtQuick.Shapes
      
      Window {
          width: 640
          height: 480
          visible: true
      
          Component.onCompleted: {
              bottomPathLine.x = 20
          }
      
          Shape {
              ShapePath {
                  PathLine {
                      id: topPathLine
                  }
                  PathLine {
                      id: bottomPathLine
                  }
                  PathArc {
                      id: bottomLeftPathArc
                  }
                  PathLine {
                      id: leftPathLine
                  }
                  PathArc {
                      id: topLeftPathArc
                  }
              }
          }
      }
      
          1  __pthread_kill_implementation                        pthread_kill.c                  44   0x7ffff4c9eb2c
          2  __pthread_kill_internal                              pthread_kill.c                  78   0x7ffff4c9eb2c
          3  __GI___pthread_kill                                  pthread_kill.c                  89   0x7ffff4c9eb2c
          4  __GI_raise                                           raise.c                         26   0x7ffff4c4527e
          5  __GI_abort                                           abort.c                         79   0x7ffff4c288ff
          6  qAbort                                               qassert.cpp                     46   0x7ffff54dfb26
          7  qt_maybe_message_fatal<QString&>                     qlogging.cpp                    2140 0x7ffff551b2ca
          8  qt_message(QtMsgType, const QMessageLogContext &, co qlogging.cpp                    412  0x7ffff5514ca2
          9  QMessageLogger::fatal                                qlogging.cpp                    901  0x7ffff5516854
          10 qt_assert                                            qassert.cpp                     106  0x7ffff54dfb8a
          11 QtPrivate::qCheckedFPConversionToInteger<int, double qnumeric.h                      507  0x7fffeadf5363
          12 qCeil<double>                                        qmath.h                         30   0x7fffeae1130a
          13 QQuickSvgParser::pathArc                             qquicksvgparser.cpp             228  0x7fffeb23c640
          14 QQuickPathArc::addToPath                             qquickpath.cpp                  2119 0x7fffeb372eb8
          15 QQuickPath::createShapePath                          qquickpath.cpp                  555  0x7fffeb36e1f2
          16 QQuickPath::doProcessPath                            qquickpath.cpp                  411  0x7fffeb36c9b7
          17 QQuickPath::processPath                              qquickpath.cpp                  387  0x7fffeb36c83e
          18 QQuickPath::qt_static_metacall                       moc_qquickpath_p.cpp            2381 0x7fffeb379ddb
          19 doActivate<false>                                    qobject.cpp                     4253 0x7ffff569cbb1
          20 QMetaObject::activate                                qobject.cpp                     4301 0x7ffff569161b
          21 QQuickPathElement::changed                           moc_qquickpath_p.cpp            125  0x7fffeb375ae1
          22 QQuickCurve::setX                                    qquickpath.cpp                  1078 0x7fffeb370f25
          23 QQuickCurve::qt_static_metacall                      moc_qquickpath_p.cpp            360  0x7fffeb376143
          24 QQuickCurve::qt_metacall                             moc_qquickpath_p.cpp            400  0x7fffeb376330
          25 QQuickPathLine::qt_metacall                          moc_qquickpath_p.cpp            492  0x7fffeb376504
          26 QMetaObject::metacall                                qmetaobject.cpp                 347  0x7ffff560ff2f
          27 QV4::QObjectWrapper::setProperty                     qv4qobjectwrapper.cpp           762  0x7ffff7586005
          28 QV4::QObjectWrapper::setQmlProperty                  qv4qobjectwrapper.cpp           577  0x7ffff758468d
          29 QV4::QObjectWrapper::virtualPut                      qv4qobjectwrapper.cpp           979  0x7ffff7587650
          30 QV4::Object::put                                     qv4object_p.h                   287  0x7ffff745d8f5
          31 QV4::Object::virtualResolveLookupSetter              qv4object.cpp                   825  0x7ffff755aa7e
          32 QV4::QObjectWrapper::virtualResolveLookupSetter      qv4qobjectwrapper.cpp           1168 0x7ffff75887d6
          33 QV4::Object::resolveLookupSetter                     qv4object_p.h                   344  0x7ffff7547dd9
          34 QV4::Lookup::resolveSetter                           qv4lookup.cpp                   603  0x7ffff7546d4c
          35 QV4::Lookup::setterGeneric                           qv4lookup.cpp                   609  0x7ffff7546da2
          36 QV4::Lookup::setter                                  qv4lookup_p.h                   404  0x7ffff755d59c
          37 QV4::Moth::VME::interpret                            qv4vme_moth.cpp                 703  0x7ffff7634bb9
          38 QV4::Moth::VME::exec                                 qv4vme_moth.cpp                 487  0x7ffff7632049
          39 QV4::doCall                                          qv4function.cpp                 52   0x7ffff75117b3
          40 QV4::Function::call                                  qv4function.cpp                 77   0x7ffff751198b
          41 operator()                                           qv4function.cpp                 28   0x7ffff7511500
          42 QV4::convertAndCall<QV4::Function::call(QObject *, v qv4jscall_p.h                   199  0x7ffff7512c78
          43 QV4::Function::call                                  qv4function.cpp                 25   0x7ffff75115a7
          44 QQmlJavaScriptExpression::evaluate                   qqmljavascriptexpression.cpp    270  0x7ffff775993c
          45 QQmlBoundSignalExpression::evaluate                  qqmlboundsignal.cpp             200  0x7ffff76b9576
          46 QQmlBoundSignal_callback                             qqmlboundsignal.cpp             315  0x7ffff76b9a59
          47 QQmlNotifier::emitNotify                             qqmlnotifier.cpp                74   0x7ffff77a3442
          48 QQmlData::signalEmitted                              qqmlengine.cpp                  341  0x7ffff7701aa1
          49 doActivate<false>                                    qobject.cpp                     4131 0x7ffff569c45f
          50 QMetaObject::activate                                qobject.cpp                     4301 0x7ffff569161b
          51 QQmlComponentAttached::completed                     moc_qqmlcomponentattached_p.cpp 122  0x7ffff76d8913
          52 QQmlObjectCreator::finalize                          qqmlobjectcreator.cpp           1640 0x7ffff77ae1b0
          53 QQmlComponentPrivate::complete                       qqmlcomponent.cpp               1206 0x7ffff76d31a6
          54 QQmlComponentPrivate::completeCreate                 qqmlcomponent.cpp               1324 0x7ffff76d380e
          55 QQmlComponent::completeCreate                        qqmlcomponent.cpp               1290 0x7ffff76d353e
          56 QQmlComponentPrivate::createWithProperties           qqmlcomponent.cpp               984  0x7ffff76d220d
          57 QQmlComponent::create                                qqmlcomponent.cpp               929  0x7ffff76d1f87
          58 QQmlApplicationEnginePrivate::finishLoad             qqmlapplicationengine.cpp       158  0x7ffff7699e73
          59 QQmlApplicationEnginePrivate::ensureLoadingFinishes  qqmlapplicationengine.cpp       185  0x7ffff769a10d
          60 QQmlApplicationEnginePrivate::startLoad              qqmlapplicationengine.cpp       144  0x7ffff7699c70
          61 QQmlApplicationEngine::loadFromModule                qqmlapplicationengine.cpp       415  0x7ffff769a819
          62 main                                                 main.cpp                        15   0x555555556a6d
      

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes