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

crash/missing update of position after dialog "Improve location accuracy" appears

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.11.1
    • Positioning
    • Tested on LGE LG G6 (lucye), Samsung Galaxy A3(2017)
      Android 8
    • Android

    Description

      On many smartphones the dialog "Improve location accuracy" always appears after activating the location (mostly after deleting the data/cache of the google services app). If this is the case then the QGeoPositionInfoSource does not update the new position and QGeoPositionInfoSource leads to a crash after quit().

      1. start app
      2. activate the location
      3. agree/deny to the dialog "Improve location accuracy"
      -> position is not updated
      4. quit the app via QGuiApplication::instance()->quit()
      -> App crashes dialog appears

      SPos::SPos(QObject *parent) : QObject(parent)
      {
      // Position
      m_pQGpis = QGeoPositionInfoSource::createDefaultSource(this);
      if (m_pQGpis)

      { m_pQGpis->setPreferredPositioningMethods(QGeoPositionInfoSource::AllPositioningMethods); m_pQGpis->setUpdateInterval(1000); m_pQGpis->startUpdates(); }

      // Satellite
      m_pQGsis = QGeoSatelliteInfoSource::createDefaultSource(this);
      if (m_pQGsis)

      { m_pQGsis->setUpdateInterval(1000); m_pQGsis->startUpdates(); }

      }

      // place somewhere in the code
      QGuiApplication::instance()->quit();

      // error
      W libapp.so: (null):0 ((null)): exit app 0
      F libapp.so: (null):0 ((null)): satelliteUpdated: source == 0
      F libc : Fatal signal 6 (SIGABRT), code -6 in tid 3670 (Thread-6)

      Attachments

        Activity

          People

            ablasche Alex Blasche
            tiroler Armin Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: