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

Crash when peripheral randomly disconnects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.11.2
    • 5.11.0
    • None

    Description

      Connecting to the CC2650 of the sensor tag demo might end up in a crash using Embedded Linux and Bluez with the following stack trace:

       

      1   std::__atomic_base<int>::operator++                                 atomic_base.h                      296  0x760aa9c8
      2   QAtomicOps<int>::ref<int>                                           qatomic_cxx11.h                    265  0x760aa9c8
      3   QBasicAtomicInteger<int>::ref                                       qbasicatomic.h                     102  0x760aa9c8
      4   QtPrivate::RefCount::ref                                            qrefcount.h                        61   0x760aa9c8
      5   QByteArray::QByteArray                                              qbytearray.h                       499  0x76106870
      6   QLowEnergyControllerPrivateBluezDBus::GattJob::GattJob              qlowenergycontroller_bluezdbus_p.h 164  0x76106870
      7   QVector<QLowEnergyControllerPrivateBluezDBus::GattJob>::erase       qvector.h                          823  0x761081c4
      8   QVector<QLowEnergyControllerPrivateBluezDBus::GattJob>::erase       qvector.h                          233  0x76101540
      9   QVector<QLowEnergyControllerPrivateBluezDBus::GattJob>::removeFirst qvector.h                          148  0x76101540
      10  QVector<QLowEnergyControllerPrivateBluezDBus::GattJob>::takeFirst   qvector.h                          150  0x76101540
      11  QLowEnergyControllerPrivateBluezDBus::prepareNextJob                qlowenergycontroller_bluezdbus.cpp 552  0x76101540
      12  QLowEnergyControllerPrivateBluezDBus::onCharWriteFinished           qlowenergycontroller_bluezdbus.cpp 676  0x76103bb0
      13  QtPrivate::QSlotObjectBase::call                                    qobjectdefs_impl.h                 376  0x75912810
      14  QMetaObject::activate                                               qobject.cpp                        3754 0x75912810
      15  QMetaObject::activate                                               qobject.cpp                        3633 0x75912c5c
      16  QDBusPendingCallWatcher::finished                                   moc_qdbuspendingcall.cpp           153  0x75289e58
      17  QDBusPendingCallWatcherPrivate::_q_finished                         qdbuspendingcall.cpp               494  0x75289ed4
      18  QDBusPendingCallWatcher::qt_static_metacall                         moc_qdbuspendingcall.cpp           85   0x75289ed4
      19  QObject::event                                                      qobject.cpp                        1251 0x759133f4
      20  QApplicationPrivate::notify_helper                                  qapplication.cpp                   3713 0x76a53f60
      ... <More>                                                                                                                

       

      Note that 

      void QLowEnergyControllerPrivateBluezDBus::prepareNextJob()

      calls jobs.takeFirst() while jobs is empty according to the debugger.

       

      Attachments

        Issue Links

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

          Activity

            People

              ablasche Alex Blasche
              mkalinow Maurice Kalinowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes