Priority: P1: Critical
Affects Version/s: 5.2.0
Fix Version/s: 5.6.2
Environment:Android Virtual Device: Android 5.0.1 / Google APIs Intel Atom (x86)
Smartphone CAT B15Q (Android 4.4)
I have used QCamera, based on QML example given in documentation (http://doc.qt.io/qt-5/qml-qtmultimedia-camera.html).
I removed the video part which isn't relevant for my needs. I add on onImageSaved() event call to a QObject class which generates a compressed image (in RAM).
I have made some basic tests, and all seems to work well. But, if I take about 5 pictures, the app stops working (deadlock).
And after that, the Camera sensor is locked, event the standard Android Camera App cannot start and display an error message "Unfortunately, Camera has stopped.".
The only way to get out of this situation is to restart the device.
I've got the same issue on emulator (API level 21) and on "real" device (API Level 19).
On smartphone, the lock seems to be release when I reboot it, because I can hear the typical sound emitted when taking a picture.
This issue is very easy to reproduce on emulator (just take 5 Pictures) but more spuriously on my smartphone.
|For Gerrit Dashboard: QTBUG-54709|
|165035,2||Android: fix freeze when taking pictures on some devices||5.6||qt/qtmultimedia||Status: MERGED||+2||0|