Crash when changing orientation during startup

RESOLVED FIXED

Status

B2GDroid Graveyard
General
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: fabrice, Assigned: jchen)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
10-05 11:52:47.793 E/art     (17337): No implementation found for void org.mozilla.gecko.GeckoView$Window.disposeNative() (tried Java_org_mozilla_gecko_GeckoView_00024Window_disposeNative and Java_org_mozilla_gecko_GeckoView_00024Window_disposeNative__)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
10-05 11:52:47.798 E/GeckoCrashHandler(17337): java.lang.UnsatisfiedLinkError: No implementation found for void org.mozilla.gecko.GeckoView$Window.disposeNative() (tried Java_org_mozilla_gecko_GeckoView_00024Window_disposeNative and Java_org_mozilla_gecko_GeckoView_00024Window_disposeNative__)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at org.mozilla.gecko.GeckoView$Window.disposeNative(Native Method)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at org.mozilla.gecko.GeckoView.onDetachedFromWindow(GeckoView.java:226)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.View.dispatchDetachedFromWindow(View.java:13568)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2838)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:2984)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5502)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.ViewRootImpl.die(ViewRootImpl.java:5479)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:369)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:324)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:116)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3774)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3956)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.app.ActivityThread.access$1000(ActivityThread.java:154)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1327)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.os.Handler.dispatchMessage(Handler.java:102)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.os.Looper.loop(Looper.java:135)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at android.app.ActivityThread.main(ActivityThread.java:5291)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at java.lang.reflect.Method.invoke(Native Method)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at java.lang.reflect.Method.invoke(Method.java:372)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
10-05 11:52:47.798 E/GeckoCrashHandler(17337): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
10-05 11:52:47.800 E/AndroidRuntime(17337): java.lang.UnsatisfiedLinkError: No implementation found for void org.mozilla.gecko.GeckoView$Window.disposeNative() (tried Java_org_mozilla_gecko_GeckoView_00024Window_disposeNative and Java_org_mozilla_gecko_GeckoView_00024Window_disposeNative__)
10-05 11:52:47.800 E/AndroidRuntime(17337): 	at org.mozilla.gecko.GeckoView$Window.disposeNative(Native Method)
10-05 11:52:47.800 E/AndroidRuntime(17337): 	at org.mozilla.gecko.GeckoView.onDetachedFromWindow(GeckoView.java:226)
10-05 11:52:47.984 W/GeckoLinker(17337): /data/app/org.mozilla.b2gdroid-1/base.apk!/assets/armeabi-v7a/libxul.so: unhandled flags #8 not handled
10-05 11:52:47.986 W/GeckoLinker(17337): /data/app/org.mozilla.b2gdroid-1/base.apk!/assets/armeabi-v7a/liblgpllibs.so: unhandled flags #8 not handled
10-05 11:52:47.986 W/GeckoLinker(17337): /data/app/org.mozilla.b2gdroid-1/base.apk!/assets/armeabi-v7a/liblgpllibs.so: Relocation to NULL @0x00006f6c
10-05 11:52:47.986 W/GeckoLinker(17337): /data/app/org.mozilla.b2gdroid-1/base.apk!/assets/armeabi-v7a/liblgpllibs.so: Relocation to NULL @0x00006fdc for symbol "__cxa_begin_cleanup"
(Reporter)

Comment 1

2 years ago
snorp, fyi.
Flags: needinfo?(snorp)
Looks like the view is being torn down before Gecko is up. Jim, I guess you need to check for that before you call disposeNative?
Assignee: nobody → nchen
Flags: needinfo?(snorp) → needinfo?(nchen)
(Assignee)

Comment 3

2 years ago
Created attachment 8670778 [details] [diff] [review]
Queue disposeNative call for GeckoView if Gecko is not ready (v1)

I think this will fix it. If Gecko is not ready, we should queue the
disposeNative call in GeckoView.onDetachedFromWindow instead of calling it
right away. We use the PROFILE_READY state here to correspond to
GeckoView.onAttachedToWindow, where we make the open call on PROFILE_READY.
Attachment #8670778 - Flags: review?(snorp)
Attachment #8670778 - Flags: review?(snorp) → review+
https://hg.mozilla.org/mozilla-central/rev/150025b96b84
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
(Assignee)

Updated

2 years ago
Flags: needinfo?(nchen)
You need to log in before you can comment on or make changes to this bug.