Closed Bug 1319173 Opened 3 years ago Closed 3 years ago

Crash reporter crash loop: NullPointerException: 'void org.mozilla.gecko.EventDispatcher.registerGeckoThreadListener(org.mozilla.gecko.util.NativeEventListener, java.lang.String[])' on a null object reference


(Firefox for Android :: General, defect, P1)




Firefox 53
Tracking Status
fennec + ---
firefox53 --- fixed


(Reporter: sebastian, Assigned: jchen)




(1 file)

In Nightly I see a crash loop: Whenever the crash report shows up and I press "Close" then immediately a new instance of the crash reporter is shown.

No crash report is ever send but with logcat I see:

>      GeckoCrashHandler  E  >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
>                         E  java.lang.NullPointerException: Attempt to invoke virtual method 'void org.mozilla.gecko.EventDispatcher.registerGeckoThreadListener(org.m
>                            ozilla.gecko.util.NativeEventListener, java.lang.String[])' on a null object reference
>                         E      at org.mozilla.gecko.MediaPlayerManager.onCreate(
>                         E      at Source)
>                         E      at Source)
>                         E      at Source)
>                         E      at Source)
>                         E      at Source)
>                         E      at Source)
>                         E      at Source)
>                         E      at Source)
>                         E      at org.mozilla.gecko.GeckoActivity.onCreate(
>                         E      at org.mozilla.gecko.GeckoApp.onCreate(
>                         E      at org.mozilla.gecko.BrowserApp.onCreate(
>                         E      at
>                         E      at
> [..]
tracking-fennec: --- → ?
Priority: -- → P1
I think I'm seeing this too. If I remove Nightly from the list of running apps, and then restart, I'm able to get Nightly to run.
@jim: Could this be caused by the recent event dispatcher changes?
Flags: needinfo?(nchen)
Yeah, looks like regression from bug 1307820.
Assignee: nobody → nchen
Blocks: 1307820
Flags: needinfo?(nchen)
Wait to register MediaPlayerManager events until we have a GeckoApp
EventDispatcher. Use onStart/onStop because we only have an EventDispatcher
after we create the GeckoView in onCreate. onDestroy was annotated as
JNITarget, but I couldn't find where it's used, so I removed it.
Attachment #8812933 - Flags: review?(s.kaspari)
Attachment #8812933 - Flags: review?(s.kaspari) → review+
See Also: → 1318074
Duplicate of this bug: 1318074
Pushed by
Register MediaPlayerManager events later; r=sebastian
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
tracking-fennec: ? → +
Duplicate of this bug: 1319969
Depends on: 1320602
You need to log in before you can comment on or make changes to this bug.