Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.6.0 Beta4
-
None
-
-
2023wk40FOQtforAndroid
Description
MacOS 13.5.1
Qt Creator 11.0.3
Device: Google Pixel 3a A12
Steps to reproduce:
- Open the declarative camera example.
- Quickly tap on the capture button several times.
- Switch to video.
- Tap on Record button.
Expected: The app should switch to video without any issues.
Actual: The app crashes.
Reproducibility: 100% **
D CCodecBuffers: [c2.qti.hevc.encoder#514:2D-BB-Input] updating vstride = 1088
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.declarative_camera, PID: 1092
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:560)
E AndroidRuntime: at android.media.ImageReader.acquireLatestImage(ImageReader.java:441)
E AndroidRuntime: at org.qtproject.qt.android.multimedia.QtCamera2$5.onImageAvailable(QtCamera2.java:236)
E AndroidRuntime: at android.media.ImageReader$1.run(ImageReader.java:837)
E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)
D C2Store : Using ION
E ion : ioctl c0044901 failed with code -1: Invalid argument
Attachments
Issue Links
- duplicates
-
QTBUG-115460 Camera crash on image acquire on Android
- Closed
-
QTBUG-116526 Android camera crash in example project
- Closed
-
QTBUG-114932 [DeclarativeCamera] Capture crashes the example
- Closed
- is cloned by
-
QTBUG-117665 [DeclarativeCamera] Recording and viewing the video multiple times causes the app to crash
- Reported
- relates to
-
QTQAINFRA-5799 Qt Test Attack - Q3, 2023
- Open