Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.2
-
-
c5e5d6191 (dev), 2ccb6a50f (6.6), 507c3908b (6.5)
-
2023wk36FOQtforAndroid
Description
Just try the "camera" example on Android to experiment a crash at startup with the following error:
W ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
W ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
E AndroidRuntime: FATAL EXCEPTION: CameraBackground
E AndroidRuntime: Process: org.qtproject.example.camera, PID: 16762
E AndroidRuntime: java.lang.IllegalStateException: maxImages (10) has already been acquired, call #close before acquiring more.
E AndroidRuntime: at android.media.ImageReader.acquireNextImage(ImageReader.java:501)
E AndroidRuntime: at android.media.ImageReader.acquireLatestImage(ImageReader.java:386)
E AndroidRuntime: at org.qtproject.qt.android.multimedia.QtCamera2$4.onImageAvailable(QtCamera2.java:157)
E AndroidRuntime: at android.media.ImageReader$ListenerHandler.handleMessage(ImageReader.java:812)
E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:108)
E AndroidRuntime: at android.os.Looper.loop(Looper.java:166)
E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:65)
Same error also with try to acquire image using QML component.
Attachments
Issue Links
- is duplicated by
-
QTBUG-116526 Android camera crash in example project
- Closed
-
QTBUG-117477 [DeclarativeCamera] The app is crashing when capture photo and switch to video
- Closed
-
QTBUG-114932 [DeclarativeCamera] Capture crashes the example
- Closed