Closed Bug 1881927 Opened 1 year ago Closed 1 year ago

Crash in [@ java.lang.NullPointerException: at org.mozilla.geckoview.ContentInputStream.isReadable(ContentInputStream.java)]

Categories

(GeckoView :: PDF Viewer, defect, P1)

Unspecified
Android
defect

Tracking

(firefox123 wontfix, firefox124 fixed, firefox125 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
firefox123 --- wontfix
firefox124 --- fixed
firefox125 --- fixed

People

(Reporter: cpeterson, Assigned: calixte)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

https://crash-stats.mozilla.org/report/index/b2d7eb9b-64f8-4dde-ae90-d1b520240205

This crash looks like a regression in 122.

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.res.AssetFileDescriptor.close()' on a null object reference
	at org.mozilla.geckoview.ContentInputStream.isReadable(ContentInputStream.java:37)
	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:611)

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

For more information, please visit BugBot documentation.

Flags: needinfo?(bugzeeeeee)

I think ContentIntputStream is currently only(?) used for reading content URI PDFs to show in the PDF viewer.

Component: General → PDF Viewer
Assignee: nobody → cdenizet
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1
Flags: needinfo?(bugzeeeeee)
Pushed by cdenizet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4e61c3ac3f94 Don't crash when the file descriptor for a content:// uri is null r=geckoview-reviewers,amejiamarmol
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch

The patch landed in nightly and beta is affected.
:calixte, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox124 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(cdenizet)

Comment on attachment 9390596 [details]
Bug 1881927 - Don't crash when the file descriptor for a content:// uri is null r=#geckoview-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: Some users could have some crash when they try to open a pdf from another app
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small change which adds a null check
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(cdenizet)
Attachment #9390596 - Flags: approval-mozilla-release?

Comment on attachment 9390596 [details]
Bug 1881927 - Don't crash when the file descriptor for a content:// uri is null r=#geckoview-reviewers

Approved for 124.0.2 dot release

Attachment #9390596 - Flags: approval-mozilla-release? → approval-mozilla-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: