Closed Bug 1689368 Opened 5 years ago Closed 4 years ago

Crash in [@ java.lang.NullPointerException: at org.mozilla.gecko.media.GeckoHLSResourceWrapper$Callbacks.onLoad(Native Method)]

Categories

(Core :: Audio/Video, defect, P2)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox87 --- wontfix
firefox88 --- verified
firefox89 --- verified

People

(Reporter: fluffyemily, Assigned: jhlin)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

Crash report: https://crash-stats.mozilla.org/report/index/38dc7f3a-3760-4d97-85c1-e0f2b0210128

Java stack trace:

java.lang.NullPointerException
	at org.mozilla.gecko.media.GeckoHLSResourceWrapper$Callbacks.onLoad(Native Method)
	at org.mozilla.gecko.media.GeckoHlsPlayer$SourceEventListener.onLoadStarted(GeckoHlsPlayer.java:3)
	at org.mozilla.thirdparty.com.google.android.exoplayer2.source.MediaSourceEventListener$EventDispatcher.lambda$loadStarted$2$MediaSourceEventListener$EventDispatcher(MediaSourceEventListener.java:1)
	at org.mozilla.thirdparty.com.google.android.exoplayer2.source.-$$Lambda$MediaSourceEventListener$EventDispatcher$a5_BIn2eObPe9e9fkCFXKfJPwq4.run(Unknown Source:8)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:214)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Component: General → Audio/Video
Product: GeckoView → Core

Seems really frequent.

Severity: -- → S2
Priority: -- → P2

John, any idea what might be going on here?

Flags: needinfo?(jolin)

I have been trying to reproduce this crash locally for quite some time but failed. After examining the reports and the source code, it seems to me that the only possible null Java object is the aUrl parameter though I cannot see how that could be null. Anyway, I will add a check in the Java callback method to avoid potential exceptions.

Flags: needinfo?(jolin)
Assignee: nobody → jolin
Status: NEW → ASSIGNED
Pushed by jolin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9b22705ac366 check state and URL before forwarding to native code. r=bryce
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch

Comment on attachment 9215344 [details]
Bug 1689368 - check state and URL before forwarding to native code. r?bryce

Beta/Release Uplift Approval Request

  • User impact if declined: Users encounter null pointer exception crashes when playing HLS contents sometimes.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • 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): The patch performs a sanity check on input parameters before calling the native method.
  • String changes made/needed:
Attachment #9215344 - Flags: approval-mozilla-beta?

Comment on attachment 9215344 [details]
Bug 1689368 - check state and URL before forwarding to native code. r?bryce

Approved for 88.0rc2, thanks.

Attachment #9215344 - Flags: approval-mozilla-beta? → approval-mozilla-release+

Verified as fixed on Firefox 88.1.0 and latest Nightly 4/19 with Google Pixel 4 XL (11).
I used examples from https://www.toptal.com/apple/introduction-to-http-live-streaming-hls for HLS videos.

See Also: → 1706380
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: