android-components icon indicating copy to clipboard operation
android-components copied to clipboard

[Crash] RuntimeException in GeckoEngine.onShutdown

Open eliserichards opened this issue 5 years ago • 5 comments

Crash report: https://crash-stats.mozilla.org/report/index/5eeb97c6-0717-433a-a6a7-1d4a00210412

Java stack trace:

java.lang.RuntimeException
	at mozilla.components.browser.engine.gecko.GeckoEngine$2.onShutdown(GeckoEngine.kt:1)
	at org.mozilla.geckoview.GeckoRuntime$1.handleMessage(GeckoRuntime.java:3)
	at org.mozilla.gecko.EventDispatcher$3.run(EventDispatcher.java:1)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:220)
	at android.app.ActivityThread.main(ActivityThread.java:7437)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:500)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865)

┆Issue is synchronized with this Jira Task

eliserichards avatar Apr 12 '21 18:04 eliserichards

I think this crash is intentional, RuntimeException is thrown when the GeckoRuntime is in an unrecoverable state. The exception detail message is related in this report but in Sentry it should be "GeckoRuntime is shutting down" ( confirmed that java.lang.RuntimeException: GeckoRuntime is shutting down shown in Socorro for this crash report).

Maybe @pocmo can also confirm this is intentional. Thank you!

mcarare avatar Apr 15 '21 14:04 mcarare

Yes, that was added intentionally. Let's involve the GeckoView team and see if they can help figure out why this is happening.

CC @agi

pocmo avatar Apr 19 '21 12:04 pocmo

Waiting on feedback from the GeckoView team.

mcarare avatar Apr 22 '21 07:04 mcarare

Sorry I completely missed this! Yes this is intentional, unfortunately it's not easy to know what's going on here. I think we need to add more metadata to this so that we can understand why this is happening, I opened https://bugzilla.mozilla.org/show_bug.cgi?id=1708580 for that.

agi avatar Apr 30 '21 00:04 agi

Duping to https://bugzilla.mozilla.org/show_bug.cgi?id=1708580.

csadilek avatar Oct 13 '22 22:10 csadilek