Closed
Bug 1171510
Opened 11 years ago
Closed 11 years ago
com.starkravingfinkle.geckobrowser E/GeckoCrashHandler﹕ >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(fennec-)
RESOLVED
WORKSFORME
| Tracking | Status | |
|---|---|---|
| fennec | - | --- |
People
(Reporter: Talhaali00, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36
Steps to reproduce:
Tried to run GeckoBrowser-master on Android emulator running API 22.
Actual results:
06-04 15:32:13.250 11600-11600/com.starkravingfinkle.geckobrowser E/GeckoCrashHandler﹕ >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
java.lang.NullPointerException: Attempt to invoke interface method 'android.content.Context org.mozilla.gecko.ContextGetter.getContext()' on a null object reference
at org.mozilla.gecko.GeckoAppShell.getContext(GeckoAppShell.java:2085)
at org.mozilla.gecko.GeckoAppShell.getDpi(GeckoAppShell.java:1383)
at org.mozilla.gecko.gfx.JavaPanZoomController.<clinit>(JavaPanZoomController.java:61)
at org.mozilla.gecko.gfx.PanZoomController$Factory.create(PanZoomController.java:29)
at org.mozilla.gecko.gfx.GeckoLayerClient.<init>(GeckoLayerClient.java:139)
at org.mozilla.gecko.gfx.LayerView.initializeView(LayerView.java:125)
at org.mozilla.gecko.GeckoView.init(GeckoView.java:125)
at org.mozilla.gecko.GeckoView.<init>(GeckoView.java:118)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:378)
at android.app.Activity.setContentView(Activity.java:2145)
at com.starkravingfinkle.geckobrowser.MainActivity.onCreate(MainActivity.java:32)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
06-04 15:32:13.276 11600-11600/com.starkravingfinkle.geckobrowser E/art﹕ No implementation found for void org.mozilla.gecko.GeckoAppShell.reportJavaCrash(java.lang.String) (tried Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash and Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash__Ljava_lang_String_2)
06-04 15:32:13.424 11600-11600/com.starkravingfinkle.geckobrowser E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.starkravingfinkle.geckobrowser, PID: 11600
java.lang.NullPointerException: Attempt to invoke interface method 'android.content.Context org.mozilla.gecko.ContextGetter.getContext()' on a null object reference
at org.mozilla.gecko.GeckoAppShell.getContext(GeckoAppShell.java:2085)
at org.mozilla.gecko.GeckoAppShell.getDpi(GeckoAppShell.java:1383)
at org.mozilla.gecko.gfx.JavaPanZoomController.<clinit>(JavaPanZoomController.java:61)
at org.mozilla.gecko.gfx.PanZoomController$Factory.create(PanZoomController.java:29)
at org.mozilla.gecko.gfx.GeckoLayerClient.<init>(GeckoLayerClient.java:139)
at org.mozilla.gecko.gfx.LayerView.initializeView(LayerView.java:125)
at org.mozilla.gecko.GeckoView.init(GeckoView.java:125)
at org.mozilla.gecko.GeckoView.<init>(GeckoView.java:118)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:378)
at android.app.Activity.setContentView(Activity.java:2145)
at com.starkravingfinkle.geckobrowser.MainActivity.onCreate(MainActivity.java:32)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Comment 1•11 years ago
|
||
Fabrice is this your project? If so where should bugs live?
Flags: needinfo?(fabrice)
Comment 2•11 years ago
|
||
com.starkravingfinkle -> mfinkle, how could I dare reusing that!
Flags: needinfo?(fabrice) → needinfo?(mark.finkle)
If API 22 is referring to the Android M preview (and not 5.1), I think we're currently crashing at runtime on M devices.
I'm using 5.1 right now. I followed this guide: http://www.ncalexander.net/blog/2014/07/10/build-your-own-browser-a-maven-repository-for-geckoview/ to create the project and then imported it into Android Studio. When I launch the app onto my avd, the app crashes. Am I doing something wrong or is this a known issue? I've looked everywhere for answers but there are no resolutions to this.
tracking-fennec: --- → ?
Are you confused by my last post? I'm sorry, I'm new to Bugzilla and still find it a little hard to understand Bugzilla lingo.
Comment 6•11 years ago
|
||
Looks like someone is using my github example, GeckoBrowser which uses GeckoView, and the code is crashing.
Maybe Jim's recent fixes to GeckoView have fixed this? Otherwise, we really don't track bugs for general GeckoView-based apps.
tracking-fennec: ? → -
Flags: needinfo?(mark.finkle) → needinfo?(nchen)
Comment 7•11 years ago
|
||
Yeah this should be fixed by bug 1166309 (different crash but same fix).
Blocks: 1158309
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Flags: needinfo?(nchen)
Resolution: --- → WORKSFORME
Talhaali, no, I understood - the tracking-fennec=? flag is set to add the bug to our triage queue (which we use to determine whether or not we should prioritize this bug for fixing).
It looks like your GeckoView resources may be out of date. You can download the latest here (assumes Android version > 2.3.x):
http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/latest-mozilla-central-android-api-11/
Try that out and let us know how it goes.
(In reply to Mark Finkle (:mfinkle) from comment #6)
> Looks like someone is using my github example, GeckoBrowser which uses
> GeckoView, and the code is crashing.
>
> Maybe Jim's recent fixes to GeckoView have fixed this? Otherwise, we really
> don't track bugs for general GeckoView-based apps.
Mark, can you update your github README for the new latest-moz-central split-APK URIs?
Flags: needinfo?(mark.finkle)
Comment 9•11 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #8)
> Mark, can you update your github README for the new latest-moz-central
> split-APK URIs?
Done
Flags: needinfo?(mark.finkle)
| Reporter | ||
Comment 10•11 years ago
|
||
Thanks Michael, I grabbed everything from the link and now I have it working. I appreciate all of the help!
| Assignee | ||
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•