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

Using Plugin in QML crashes an application

    XMLWordPrintable

Details

    • e211ab76d766878b4dbe88901b9a7a4a70ce7332

    Description

      I've downloaded the new 5.10 and try to run the simple map application. 
      The code just copied from the documentation:

      import QtQuick 2.0
      import QtQuick.Window 2.0
      import QtLocation 5.6
      import QtPositioning 5.6
      
      Window {
          width: 512
          height: 512
          visible: true
      
          Plugin {
              id: mapPlugin
              name: "osm"
          }
      
          Map {
              anchors.fill: parent
              plugin: mapPlugin
              center: QtPositioning.coordinate(59.91, 10.75) // Oslo
              zoomLevel: 14
          }
      }
      

      The application crashed with VC++ runtime error message box.
      Running in Debug mode gives this error in console:

      ASSERT: "!m_thread.isRunning()" in file qqmldebugserver.cpp, line 655
      

      Call stack:

      1   std::__atomic_base<QMutexData *>::compare_exchange_strong    atomic_base.h        752  0x6b999659 
      2   std::atomic<QMutexData *>::compare_exchange_strong           atomic               462  0x6b999659 
      3   QAtomicOps<QMutexData *>::testAndSetAcquire<QMutexData *>    qatomic_cxx11.h      290  0x6b999659 
      4   QBasicAtomicPointer<QMutexData>::testAndSetAcquire           qbasicatomic.h       262  0x6b999659 
      5   QBasicMutex::fastTryLock                                     qmutex.h             107  0x6b999659 
      6   QMutex::lock                                                 qmutex.cpp           224  0x6b999659 
      7   (anonymous namespace)::QQmlValueTypeFactoryImpl::valueType   qqmlvaluetype.cpp    140  0x14b03ba  
      8   (anonymous namespace)::QQmlValueTypeFactoryImpl::isValueType qqmlvaluetype.cpp    86   0x14b05b1  
      9   QQmlValueTypeFactory::isValueType                            qqmlvaluetype.cpp    175  0x14b0680  
      10  QQmlWatchProxy::notifyValueChanged                           qqmlwatcher.cpp      115  0x35d99b25 
      11  QQmlWatchProxy::qt_static_metacall                           qqmlwatcher.moc      70   0x35d99c1c 
      12  QQmlWatchProxy::qt_metacall                                  qqmlwatcher.moc      103  0x35d9a5ff 
      13  QMetaObject::metacall                                        qmetaobject.cpp      301  0x6bb14231 
      14  QMetaObject::activate                                        qobject.cpp          3781 0x6bb3272b 
      15  QMetaObject::activate                                        qobject.cpp          3628 0x6bb32921 
      16  QQuickWindow::activeFocusItemChanged                         moc_qquickwindow.cpp 535  0x242c4c74 
      17  QQuickWindow::qt_static_metacall                             moc_qquickwindow.cpp 248  0x242c8740 
      18  QMetaObject::activate                                        qobject.cpp          3766 0x6bb3268d 
      19  QMetaObject::activate                                        qobject.cpp          3628 0x6bb32921 
      20  QWindow::focusObjectChanged                                  moc_qwindow.cpp      782  0xcf0cf82  
      ... <More>  
      

      Attachments

        Issue Links

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

          Activity

            People

              anrocha André De La Rocha (Inactive)
              folibis ruslan
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes