Crash in [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid] when checking image
Categories
(Firefox for Android :: QR, defect, P2)
Tracking
()
People
(Reporter: 1782769091, Unassigned)
References
Details
(Whiteboard: [fxdroid])
Crash Data
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
Steps to reproduce:
The last step was clicking the scan button after creating a new private tab, then the camera appeared and soon crashed.
The steps before were not clear.
I have found that others may have the same problem: https://crash-stats.mozilla.org/signature/?signature=java.lang.IllegalStateException%3A%20at%20android.media.Image.throwISEIfImageIsInvalid%28Image.java%29&date=%3E%3D2023-02-05T07%3A54%3A00.000Z&date=%3C2023-02-12T07%3A54%3A00.000Z&_columns=date&_columns=product&_columns=version&_columns=build_id&_columns=platform&_columns=reason&_columns=address&_columns=install_time&_columns=startup_crash&_sort=-date&page=1#summary
Actual results:
The app crashed and returned to the home page of the phone.
FATAL EXCEPTION: CameraBackground
Process: org.mozilla.fenix, PID: 11444
java.lang.IllegalStateException: Image is already closed
at android.media.Image.throwISEIfImageIsInvalid(Image.java:70)
at android.media.ImageReader$SurfaceImage$SurfacePlane.getBuffer(ImageReader.java:963)
at mozilla.components.feature.qr.QrFragment$Companion.readImageSource$feature_qr_release(QrFragment.kt:691)
at mozilla.components.feature.qr.QrFragment$imageAvailableListener$1.onImageAvailable(QrFragment.kt:219)
at android.media.ImageReader$ListenerHandler.handleMessage(ImageReader.java:800)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
Expected results:
Normal operation without crash.
Comment 1•2 years ago
|
||
The severity field is not set for this bug.
:cpeterson, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 2•2 years ago
|
||
Thanks for the bug report and steps to reproduce. I'll send this bug to the engineering team.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•