Closed Bug 1468403 Opened 6 years ago Closed 6 years ago

Crash in java.lang.IllegalStateException: Current session is open at org.mozilla.geckoview.GeckoView.setSession(GeckoView.java)

Categories

(GeckoView :: General, defect, P2)

Unspecified
Android
defect

Tracking

(firefox-esr60 unaffected, firefox60 unaffected, firefox61 wontfix, firefox62 wontfix, firefox63 fixed)

RESOLVED FIXED
mozilla63
Tracking Status
firefox-esr60 --- unaffected
firefox60 --- unaffected
firefox61 --- wontfix
firefox62 --- wontfix
firefox63 --- fixed

People

(Reporter: calixte, Assigned: snorp)

References

(Blocks 1 open bug)

Details

Crash Data

This bug was filed from the Socorro interface and is
report bp-0efe5151-085f-486a-a17c-0c3700180611.
=============================================================

java.lang.IllegalStateException: Current session is open
	at org.mozilla.geckoview.GeckoView.setSession(GeckoView.java:246)
	at org.mozilla.geckoview.GeckoView.setSession(GeckoView.java:233)
	at org.mozilla.focus.web.WebViewProvider$GeckoWebView$1.onCrash(WebViewProvider.java:303)
	at org.mozilla.geckoview.GeckoSession$1.handleMessage(GeckoSession.java:125)
	at org.mozilla.geckoview.GeckoSession$1.handleMessage(GeckoSession.java:116)
	at org.mozilla.geckoview.GeckoSessionHandler.handleMessage(GeckoSessionHandler.java:79)
	at org.mozilla.gecko.EventDispatcher$2.run(EventDispatcher.java:344)
	at android.os.Handler.handleCallback(Handler.java:751)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6165)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)

=============================================================

There are 3 crashes (from 1 installation) in nightly 62 with buildid 20180611100107. In analyzing the backtrace, the regression may have been introduced by patch [1] to fix bug 1465480.

[1] https://hg.mozilla.org/mozilla-central/rev?node=d9d0a8abad40
Flags: needinfo?(snorp)
Assignee: nobody → snorp
Priority: -- → P2
This is a Focus bug. Not sure how it ended up getting reported here.

Emily, are you seeing Sentry reports as well?

WRT the crash, if you are calling open() on the crashed session, you should not call GeckoView.setSession() afterwards.
Flags: needinfo?(snorp) → needinfo?(ekager)
I can't get the crashed session to reopen at all. I am currently closing the current session, creating a new session, assigning delegates, setting the new session, opening the new session, and loading the current URL. This is the only series of calls I can get to work to load any page after onCrash.
Flags: needinfo?(ekager)
(pretty low volume, marking as fix-optional for 62)
See also "IllegalStateException: Current session is open" bug 1435500 fixed in Fennec 59.
See Also: → 1435500
Susheel, we're trying to figure out where focus front end bugs should be filed. Can you assist in moving this from android to an appropriate product/component?
Flags: needinfo?(sdaswani)
Emily do we have a bug in Focus Android for this?

Jim, Focus front end should be filed here: https://github.com/mozilla-mobile/focus-android/issues
Flags: needinfo?(sdaswani) → needinfo?(ekager)
I think I fixed this issue already and turned off these crashes for you all. Feel free to close and not refile.
Flags: needinfo?(ekager)
marking as fixed as per comment #7
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: Firefox for Android → GeckoView
Keywords: crash, regression
Target Milestone: Firefox 63 → mozilla63
You need to log in before you can comment on or make changes to this bug.