Open Bug 1816288 Opened 2 years ago Updated 4 months ago

Crash in [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid] when checking image

Categories

(Firefox for Android :: QR, defect, P2)

Firefox 110
All
Android
defect

Tracking

()

Tracking Status
firefox110 --- affected
firefox111 --- affected

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.

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)

Thanks for the bug report and steps to reproduce. I'll send this bug to the engineering team.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Crash Signature: [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid(Image.java)]
Component: General → QR
Ever confirmed: true
Flags: needinfo?(cpeterson)
Priority: -- → P2
Whiteboard: [fxdroid]
Crash Signature: [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid(Image.java)] → [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid]
Summary: Crash in [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid(Image.java)] when checking image → Crash in [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid] when checking image
Crash Signature: [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid] → [@ java.lang.IllegalStateException: at android.media.Image.throwISEIfImageIsInvalid(Image.java)]
Duplicate of this bug: 1949941
You need to log in before you can comment on or make changes to this bug.