Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
None
-
5.12.4
-
-
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.