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

Leaving a "target" away from AnchorChanges makes Qt Quick application to crash.

    XMLWordPrintable

Details

    • 71a328397720af7229fd6ee48acaa19f7339a8de

    Description

      The following code example makes QML application to crash:

      ....
      State{
      name: 'ImageLoaded';

      AnchorChanges

      { //target: backButton top: fullScreenDelegate.bottom }

      }
      ...

      And when uncommenting the target, application doesn't crash. Added the bt from OS X error report below.

      Process: quickflickr_ [29845]
      Path: /Users/markomattila/Work/QML/quickflickr/quickflickr_
      Identifier: quickflickr_
      Version: ??? (???)
      Code Type: X86-64 (Native)
      Parent Process: Qt Creator [297]

      Date/Time: 2010-04-04 02:47:06.050 +0300
      OS Version: Mac OS X 10.6.2 (10C540)
      Report Version: 6

      Interval Since Last Report: 338801 sec
      Crashes Since Last Report: 4
      Per-App Crashes Since Last Report: 2
      Anonymous UUID: B433CEDE-D5FB-4B7F-9F2C-634396222171

      Exception Type: EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018
      Crashed Thread: 0 Dispatch queue: com.apple.main-thread

      Thread 0 Crashed: Dispatch queue: com.apple.main-thread
      0 QtDeclarative 0x00000001000e0a94 QDeclarativeItem::anchors() + 20
      1 QtDeclarative 0x0000000100072e8e QDeclarativeAnchorChanges::saveOriginals() + 30
      2 QtDeclarative 0x000000010006c119 QDeclarativeState::apply(QDeclarativeStateGroup*, QDeclarativeTransition*, QDeclarativeState*) + 2441
      3 QtDeclarative 0x000000010007d8fb QDeclarativeStateGroupPrivate::setCurrentStateInternal(QString const&, bool) + 843
      4 QtDeclarative 0x00000001000e5b64 QDeclarativeItem::qt_metacall(QMetaObject::Call, int, void**) + 1092
      5 QtDeclarative 0x000000010021bef5 QDeclarativeRectangle::qt_metacall(QMetaObject::Call, int, void**) + 37
      6 QtDeclarative 0x000000010014bdc2 QDeclarativePropertyPrivate::write(QObject*, QDeclarativePropertyCache::Data const&, QVariant const&, QDeclarativeContextData*, QFlags<QDeclarativePropertyPrivate::WriteFlag>) + 1202
      7 QtDeclarative 0x00000001001d5ead QDeclarativeObjectScriptClass::setProperty(QObject*, void* const&, QScriptValue const&, QDeclarativeContextData*) + 205
      8 QtScript 0x00000001005f4bfa QScript::DeclarativeObjectDelegate::put(QScriptObject*, QTJSC::ExecState*, QTJSC::Identifier const&, QTJSC::JSValue, QTJSC::PutPropertySlot&) + 378
      9 QtScript 0x00000001004df1d3 cti_op_put_by_id + 99
      10 ??? 0x00000001027ad87b 0 + 4336572539
      11 QtScript 0x00000001004918cd QTJSC::Interpreter::execute(QTJSC::FunctionExecutable*, QTJSC::ExecState*, QTJSC::JSFunction*, QTJSC::JSObject*, QTJSC::ArgList const&, QTJSC::ScopeChainNode*, QTJSC::JSValue*) + 637
      12 QtScript 0x000000010052f709 QTJSC::JSFunction::call(QTJSC::ExecState*, QTJSC::JSValue, QTJSC::ArgList const&) + 153
      13 QtScript 0x0000000100506442 QTJSC::call(QTJSC::ExecState*, QTJSC::JSValue, QTJSC::CallType, QTJSC::CallData const&, QTJSC::JSValue, QTJSC::ArgList const&) + 34
      14 QtScript 0x00000001005d76b5 QScriptValue::call(QScriptValue const&, QList<QScriptValue> const&) + 949
      15 QtDeclarative 0x0000000100144d66 QDeclarativeExpressionPrivate::evalQtScript(QObject*, bool*) + 230
      16 QtDeclarative 0x0000000100146ade QDeclarativeExpressionPrivate::value(QObject*, bool*) + 302
      17 QtDeclarative 0x000000010017bb0c QDeclarativeBoundSignal::qt_metacall(QMetaObject::Call, int, void**) + 156
      18 QtCore 0x0000000101d89bfb QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 603
      19 QtDeclarative 0x0000000100217080 QDeclarativeImageBase::statusChanged(QDeclarativeImageBase::Status) + 48
      20 QtDeclarative 0x00000001000dad97 QDeclarativeImageBase::requestFinished() + 167
      21 QtDeclarative 0x00000001002171c5 QDeclarativeImageBase::qt_metacall(QMetaObject::Call, int, void**) + 261
      22 QtDeclarative 0x0000000100216dd5 QDeclarativeImage::qt_metacall(QMetaObject::Call, int, void**) + 37
      23 QtCore 0x0000000101d89bfb QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 603
      24 QtDeclarative 0x00000001000946f9 QDeclarativePixmapReply::event(QEvent*) + 361
      25 QtGui 0x0000000100ff71ed QApplicationPrivate::notify_helper(QObject*, QEvent*) + 189
      26 QtGui 0x0000000100ffccc4 QApplication::notify(QObject*, QEvent*) + 2036
      27 QtCore 0x0000000101d83cdc QCoreApplication::notifyInternal(QObject*, QEvent*) + 124
      28 QtCore 0x0000000101e5ff1d QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 653
      29 com.apple.CoreFoundation 0x00007fff84a5f271 __CFRunLoopDoSources0 + 1361
      30 com.apple.CoreFoundation 0x00007fff84a5d469 __CFRunLoopRun + 873
      31 com.apple.CoreFoundation 0x00007fff84a5cc2f CFRunLoopRunSpecific + 575
      32 com.apple.HIToolbox 0x00007fff804d0a4e RunCurrentEventLoopInMode + 333
      33 com.apple.HIToolbox 0x00007fff804d0853 ReceiveNextEventCommon + 310
      34 com.apple.HIToolbox 0x00007fff804d070c BlockUntilNextEventMatchingListInMode + 59
      35 com.apple.AppKit 0x00007fff80a951f2 _DPSNextEvent + 708
      36 com.apple.AppKit 0x00007fff80a94b41 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
      37 com.apple.AppKit 0x00007fff80a5a747 -[NSApplication run] + 395
      38 QtGui 0x0000000100fb3f94 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1588
      39 QtCore 0x0000000101e5eb14 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
      40 QtCore 0x0000000101e5ee24 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 180
      41 QtCore 0x0000000101e6021c QCoreApplication::exec() + 188
      42 quickflickr_ 0x0000000100005075 main + 80 (main.cpp:12)
      43 quickflickr_ 0x0000000100004eec start + 52

      Attachments

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

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            zchydem Marko Mattila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes