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

Categories

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

All
Android
defect

Tracking

()

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

People

(Reporter: sebastian, Assigned: jchen)

References

Details

Attachments

(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(MediaPlayerManager.java:82)
>                         E      at android.support.v4.app.Fragment.performCreate(Unknown Source)
>                         E      at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source)
>                         E      at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source)
>                         E      at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source)
>                         E      at android.support.v4.app.FragmentManagerImpl.dispatchCreate(Unknown Source)
>                         E      at android.support.v4.app.FragmentController.dispatchCreate(Unknown Source)
>                         E      at android.support.v4.app.FragmentActivity.onCreate(Unknown Source)
>                         E      at android.support.v7.app.AppCompatActivity.onCreate(Unknown Source)
>                         E      at org.mozilla.gecko.GeckoActivity.onCreate(GeckoActivity.java:45)
>                         E      at org.mozilla.gecko.GeckoApp.onCreate(GeckoApp.java:1222)
>                         E      at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java:612)
>                         E      at android.app.Activity.performCreate(Activity.java:6679)
>                         E      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
> [..]
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 nchen@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5bc8f7e5e1d2
Register MediaPlayerManager events later; r=sebastian
https://hg.mozilla.org/mozilla-central/rev/5bc8f7e5e1d2
https://hg.mozilla.org/mozilla-central/rev/3a2815ffb71e
Status: NEW → RESOLVED
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.