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

qmlscene crashes when the onStopped event's code is executed

    XMLWordPrintable

Details

    Description

      import QtQuick 2.0
      
      Rectangle {
          visible: true
          width: 1024
          height: 768
      
          Text {
              anchors.fill: parent
              text: "Select Loader1"
              styleColor: "#d95050"
              style: Text.Outline
              font {
                  id: text_font
                  pointSize: 16
                  NumberAnimation on pointSize {
                      easing.type: Easing.InQuad;
                      duration: 200
                      from: 16
                      to: 20
                      // onStopped generates the crash, text_font access i think
                      onStopped: text_font.pointSize = 16
                  }
              }
              onFontChanged: console.log( "font.pointSize: " + font.pointSize )
      
              horizontalAlignment: Text.AlignHCenter
              verticalAlignment: Text.AlignVCenter
          }
      }
      

      Backtrace:

      #0  0x00007ffff68adc14 in QQmlPropertyCache::property (this=0x0, index=8) at /home/simon/dev/qt-5.9/qtbase/include/QtQml/5.9.5/QtQml/private/../../../../../../qtdeclarative/src/qml/qml/qqmlpropertycache_p.h:706
      #1  0x00007ffff6a3202f in QV4::QObjectWrapper::setProperty (engine=0x55555560b220, object=0x55555570fbc0, propertyIndex=8, value=...) at jsruntime/qv4qobjectwrapper.cpp:590
      #2  0x00007ffff6a31fbd in QV4::QObjectWrapper::setProperty (this=0x7fffde92d3e0, engine=0x55555560b220, propertyIndex=8, value=...) at jsruntime/qv4qobjectwrapper.cpp:574
      #3  0x00007ffff6a614b6 in QV4::Runtime::method_setQmlQObjectProperty (engine=0x55555560b220, object=..., propertyIndex=8, value=...) at jsruntime/qv4runtime.cpp:1571
      #4  0x00007ffff7fce3b0 in ?? ()
      #5  0x00007fffffffb920 in ?? ()
      #6  0x00007ffff6969415 in QV4::ExecutionEngine::pushContext (this=0x3200000000010, context=0x7fffdf130400) at jsruntime/qv4engine_p.h:493
      #7  0x00007ffff697a55d in QV4::ExecutionContext::simpleCall (this=0x7ffff7fc8040, scope=..., callData=0x7fffde92d328, function=0x5555556f3450) at jsruntime/qv4context.cpp:347
      #8  0x00007ffff6b2a24c in QQmlJavaScriptExpression::evaluate (this=0x55555570ff00, callData=0x7fffde92d328, isUndefined=0x0, scope=...) at qml/qqmljavascriptexpression.cpp:223
      #9  0x00007ffff6aa0e46 in QQmlBoundSignalExpression::evaluate (this=0x55555570ff00, a=0x0) at qml/qqmlboundsignal.cpp:223
      #10 0x00007ffff6aa1419 in QQmlBoundSignal_callback (e=0x555555710a80, a=0x0) at qml/qqmlboundsignal.cpp:355
      #11 0x00007ffff6b06c67 in QQmlNotifier::emitNotify (endpoint=0x0, a=0x0) at qml/qqmlnotifier.cpp:106
      #12 0x00007ffff6a74b01 in QQmlData::signalEmitted (object=0x555555711c60, index=4, a=0x0) at qml/qqmlengine.cpp:854
      #13 0x00007ffff648e85f in QMetaObject::activate (sender=sender@entry=0x555555711c60, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3644
      #14 0x00007ffff648f6f7 in QMetaObject::activate (sender=sender@entry=0x555555711c60, m=m@entry=0x7ffff7db0360 <QQuickAbstractAnimation::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0)
          at kernel/qobject.cpp:3629
      #15 0x00007ffff7a80303 in QQuickAbstractAnimation::stopped (this=this@entry=0x555555711c60) at .moc/moc_qquickanimation_p.cpp:304
      #16 0x00007ffff7a856bd in QQuickAbstractAnimation::setRunning (this=this@entry=0x555555711c60, r=r@entry=false) at util/qquickanimation.cpp:291
      #17 0x00007ffff7a85817 in QQuickAbstractAnimationPrivate::animationFinished (this=0x555555711d20) at util/qquickanimation.cpp:652
      #18 0x00007ffff6b6e2bb in QAbstractAnimationJob::finished (this=0x555555792e50) at animations/qabstractanimationjob.cpp:588
      #19 0x00007ffff6b6da29 in QAbstractAnimationJob::setState (this=0x555555792e50, newState=QAbstractAnimationJob::Stopped) at animations/qabstractanimationjob.cpp:394
      #20 0x00007ffff6b6e048 in QAbstractAnimationJob::stop (this=0x555555792e50) at animations/qabstractanimationjob.cpp:531
      #21 0x00007ffff6b6df0f in QAbstractAnimationJob::setCurrentTime (this=0x555555792e50, msecs=200) at animations/qabstractanimationjob.cpp:503
      #22 0x00007ffff6b6c9be in QQmlAnimationTimer::updateAnimationsTime (this=0x55555583ea30, delta=25) at animations/qabstractanimationjob.cpp:116
      #23 0x00007ffff624c1b8 in QUnifiedTimer::updateAnimationTimers (this=0x555555608040, currentTick=<optimized out>) at animation/qabstractanimation.cpp:333
      #24 0x00007ffff624cb8c in QAnimationDriver::advanceAnimation (this=<optimized out>, timeStep=-1) at animation/qabstractanimation.cpp:831
      #25 0x00007ffff648fb4b in QObject::event (this=0x555555608058, e=<optimized out>) at kernel/qobject.cpp:1269
      #26 0x00007ffff746592c in QApplicationPrivate::notify_helper (this=this@entry=0x55555557ab90, receiver=receiver@entry=0x555555608058, e=e@entry=0x7fffffffdbc0) at kernel/qapplication.cpp:3722
      #27 0x00007ffff746d1f4 in QApplication::notify (this=0x7fffffffdf80, receiver=0x555555608058, e=0x7fffffffdbc0) at kernel/qapplication.cpp:3481
      #28 0x00007ffff6460498 in QCoreApplication::notifyInternal2 (receiver=0x555555608058, event=event@entry=0x7fffffffdbc0) at kernel/qcoreapplication.cpp:1016
      #29 0x00007ffff64b856e in QCoreApplication::sendEvent (event=0x7fffffffdbc0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
      #30 QTimerInfoList::activateTimers (this=0x5555555d5950) at kernel/qtimerinfo_unix.cpp:643
      #31 0x00007ffff64b8d31 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
      #32 0x00007ffff3c97fb7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #33 0x00007ffff3c981f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #34 0x00007ffff3c9827c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #35 0x00007ffff64b90cf in QEventDispatcherGlib::processEvents (this=0x5555555c56c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
      #36 0x00007ffff645e4da in QEventLoop::exec (this=this@entry=0x7fffffffde10, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
      #37 0x00007ffff6467574 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1289
      #38 0x0000555555559b10 in main (argc=<optimized out>, argv=<optimized out>) at main.cpp:633
      

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            gavin786 Gavin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes