Closed
Bug 1435500
Opened 7 years ago
Closed 7 years ago
Crash in java.lang.IllegalStateException: Current session is open at org.mozilla.gecko.GeckoView.setSession(GeckoView.java)
Categories
(GeckoView :: General, defect)
Tracking
(firefox58 wontfix, firefox59 fixed, firefox60 fixed)
RESOLVED
FIXED
mozilla60
People
(Reporter: philipp, Assigned: droeh)
References
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file, 2 obsolete files)
|
1.45 KB,
patch
|
jchen
:
review+
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-release+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-e2947432-16b7-434b-820f-7fd7b0180131.
=============================================================
Java Stack Trace
java.lang.IllegalStateException: Current session is open
at org.mozilla.gecko.GeckoView.setSession(GeckoView.java:194)
at org.mozilla.gecko.GeckoApp.onCreate(GeckoApp.java:1037)
at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java:653)
at android.app.Activity.performCreate(Activity.java:6999)
at android.app.Activity.performCreate(Activity.java:6990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4699)
at android.app.ActivityThread.-wrap18(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:108)
=============================================================
this crash signature starting on fennec 58 seems to be a regression from bug 1413698
Comment 1•7 years ago
|
||
Snorp, is this important enough to try to get into 59?
Flags: needinfo?(snorp)
Should be an easy fix.
Dylan I think setSession() should be fine with a session that is already open. Can you write that patch and uplift to 59?
Flags: needinfo?(snorp) → needinfo?(droeh)
| Assignee | ||
Comment 3•7 years ago
|
||
I think it suffices here just to remove the existing check. I tested by modifying custom tabs to create a second GeckoSession and set the GeckoView's session to the new one -- things work as expected.
Attachment #8949415 -
Flags: review?(snorp) → review+
Comment 4•7 years ago
|
||
Comment on attachment 8949415 [details] [diff] [review]
Allow setting a new session on a GeckoView
We will leak an open session here meaning we will leak an open nsWindow, which is bad. We should investigate why this is happening rather than just ignore the leak.
Attachment #8949415 -
Flags: feedback-
| Assignee | ||
Comment 6•7 years ago
|
||
I can't reproduce this, but it seems like it may be similar to bug 1434126, where we were not closing the GeckoSession when PWAs/Custom Tabs were killed. If so, this should fix it.
Attachment #8949415 -
Attachment is obsolete: true
Attachment #8954448 -
Flags: review?(nchen)
Comment 7•7 years ago
|
||
Comment on attachment 8954448 [details] [diff] [review]
Call GeckoSession.closeWindow() in GeckoApp.onDestroy()
I'm not sure we want to always close the session. Why not do this in onCreate before `mLayerView.setSession`?
Attachment #8954448 -
Flags: review?(nchen) → feedback+
| Assignee | ||
Comment 8•7 years ago
|
||
Fair enough, is there something specific the session might need to do after onDestroy()?
Attachment #8954448 -
Attachment is obsolete: true
Attachment #8954842 -
Flags: review?(nchen)
Comment 9•7 years ago
|
||
Comment on attachment 8954842 [details] [diff] [review]
Close the existing GeckoSession (if any) in GeckoApp.onCreate()
Please add a comment.
Attachment #8954842 -
Flags: review?(nchen) → review+
Comment 10•7 years ago
|
||
Pushed by droeh@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e9f4d34d9451
Close the existing GeckoSession if it exists during GeckoApp.onCreate() r=jchen
Comment 11•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Comment 12•7 years ago
|
||
Please request release approval on this ASAP if you think it should be uplifted to 59 still.
Flags: needinfo?(droeh)
| Assignee | ||
Comment 13•7 years ago
|
||
Comment on attachment 8954842 [details] [diff] [review]
Close the existing GeckoSession (if any) in GeckoApp.onCreate()
Approval Request Comment
[Feature/Bug causing the regression]:
[User impact if declined]: Potential start-up crash
[Is this code covered by automated tests?]: No
[Has the fix been verified in Nightly?]: No
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: No
[Why is the change risky/not risky?]: Behavior should only change if we were in a state that would cause a crash.
[String changes made/needed]: None
Flags: needinfo?(droeh)
Attachment #8954842 -
Flags: approval-mozilla-release?
Attachment #8954842 -
Flags: approval-mozilla-beta?
Comment 14•7 years ago
|
||
Comment on attachment 8954842 [details] [diff] [review]
Close the existing GeckoSession (if any) in GeckoApp.onCreate()
Fixes a startup crash by adding code to check for being in a known-bad state. Approved for Fennec 59b15.
Attachment #8954842 -
Flags: approval-mozilla-release?
Attachment #8954842 -
Flags: approval-mozilla-release+
Attachment #8954842 -
Flags: approval-mozilla-beta?
Attachment #8954842 -
Flags: approval-mozilla-beta+
Comment 15•7 years ago
|
||
| bugherder uplift | ||
Updated•7 years ago
|
Product: Firefox for Android → GeckoView
Updated•7 years ago
|
Version: Firefox 58 → 58 Branch
Updated•7 years ago
|
Keywords: crash,
regression
Target Milestone: Firefox 60 → mozilla60
Updated•7 years ago
|
Keywords: crash,
regression
You need to log in
before you can comment on or make changes to this bug.
Description
•