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

[Reg 6.8 -> 6.9] QML: compiler: methods crash in (nested) QQmlPrivate::callArrowFunction

    XMLWordPrintable

Details

    Description

      The stack is very strange but reproducible, making small changes to structure, that method non-compilable, the destruction way does not crash.

       

                      var newWindow = windowComp.createObject(null, {})
                      // newWindow.show()
                      Qt.callLater(()=>gc()) // does crash when compiled
                      // Qt.callLater(()=>newWindow.destroy()) // does not crash 
      Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
      0   qmllistbug                               0x1038a35b8 QQmlPrivate::callArrowFunction(QV4::ExecutionEngine*, QV4::ArrowFunction*, QObject*, void**, int) + 64
      1   qmllistbug                               0x1038a412c QQmlPrivate::AOTCompiledContext::callObjectPropertyLookup(unsigned int, QObject*, void**, int) const + 832
      2   qmllistbug                               0x1029a9fa8 QmlCacheGeneratedCode::_qt_qml_main_main1_qml::$_13::__invoke(QQmlPrivate::AOTCompiledContext const*, void**) + 260
      3   qmllistbug                               0x103871b8c void QV4::coerceAndCall<AOTCompiledMetaMethod, QV4::Moth::VME::exec(QV4::MetaTypesStackFrame*, QV4::ExecutionEngine*)::$_0>(QV4::ExecutionEngine*, AOTCompiledMetaMethod const*, void**, QMetaType const*, int, QV4::Moth::VME::exec(QV4::MetaTypesStackFrame*, QV4::ExecutionEngine*)::$_0) + 2124
      4   qmllistbug                               0x103871270 QV4::Moth::VME::exec(QV4::MetaTypesStackFrame*, QV4::ExecutionEngine*) + 232
      5   qmllistbug                               0x1037c62c8 QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) + 156
      6   qmllistbug                               0x1039120d4 QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) + 316
      7   qmllistbug                               0x1038baa8c 
      ...
      11  qmllistbug                               0x1038d64f0 QQmlContextData::emitDestruction() + 52
      12  qmllistbug                               0x1038e0fe4 QQmlData::setQueuedForDeletion(QObject*) + 88
      13  qmllistbug                               0x1038e00ec QQmlData::markAsDeleted(QObject*) + 128
      14  qmllistbug                               0x102dc52f4 QQmlPrivate::QQmlElement<QQuickApplicationWindow>::~QQmlElement() + 20
      15  qmllistbug                               0x103be8a94 
      ...
      20  qmllistbug                               0x103ba9210 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 524

       

      Attachments

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

        Activity

          People

            olivier.decanniere Olivier De Cannière
            antony.kikaxa A I
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes