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

[REG 5.12.3 -> 5.12.4] Crash after setting QAccelerometer mode to gravity on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 5.12.4
    • Sensors
    • Android
    • 154ecd7b3048f22ee549c3838cc153cbc8cd33d2

    Description

      Since Qt 5.12.4, a crash occurs when applications try to call QAccelerometer::setAccelerationMode(QAccelerometer::Gravity) on a device which has no Gravity sensor.

      The triggers are the same as the crash reported in QTBUG-39335, but:
      Despite being a patch release in a LTS branch, Qt 5.12.4 came with a complete rewrite of the Android sensors plugin. The new code in AndroidAccelerometer::applyAccelerationMode(...) does warn about the missing sensor, but continues to apply the mode anyway. According to the documentation, it should not change the mode.

      Attachments

        For Gerrit Dashboard: QTBUG-76862
        # Subject Branch Project Status CR V

        Activity

          People

            lpotter Lorn Potter
            dg0yt Kai Pastor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes