Closed
Bug 1384828
Opened 7 years ago
Closed 7 years ago
MOZ_RELEASE_ASSERT(isOnUiThread) crash for CreateCompositor
Categories
(Core Graveyard :: Widget: Android, defect)
Tracking
(firefox-esr52 unaffected, firefox55 wontfix, firefox56 wontfix, firefox57 fixed)
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox55 | --- | wontfix |
firefox56 | --- | wontfix |
firefox57 | --- | fixed |
People
(Reporter: jchen, Assigned: jchen)
Details
(Keywords: crash, topcrash)
Crash Data
Attachments
(1 file, 1 obsolete file)
12.02 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is report bp-6a9f0bf1-8ad4-49db-9375-4b66e0170727. ============================================================= I think the CreateCompositor call is being executed before we've had a chance to register the UI thread in Gecko, so Gecko thinks we're not on the UI thread.
Assignee | ||
Comment 2•7 years ago
|
||
Use the UI thread's tid for checking if we're on the UI thread in Gecko. This lets us get rid of `GeckoThread.registerUiThread`, in order to avoid a race where we check for UI thread before `registerUiThread` is called.
Attachment #8892200 -
Flags: review?(esawin)
Comment 3•7 years ago
|
||
Comment on attachment 8892200 [details] [diff] [review] Use tid for UI thread detection (v1) Review of attachment 8892200 [details] [diff] [review]: ----------------------------------------------------------------- Nice! ::: mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoThread.java @@ +109,5 @@ > private static final ClassLoader clsLoader = GeckoThread.class.getClassLoader(); > @WrapForJNI > private static MessageQueue msgQueue; > + @WrapForJNI > + private static int uiThreadTid; I think it should be uiThreadId, the T is redundant (throughout the patch).
Attachment #8892200 -
Flags: review?(esawin) → review+
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2ddc27194c0e Use tid for UI thread detection; r=esawin
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2ddc27194c0e
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Comment 6•7 years ago
|
||
Please request Beta approval on this when you get a chance.
status-firefox55:
--- → wontfix
status-firefox56:
--- → affected
status-firefox-esr52:
--- → unaffected
Flags: needinfo?(nchen)
Assignee | ||
Comment 7•7 years ago
|
||
Use tid for UI thread detection (v1.1)
Attachment #8895115 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8892200 -
Attachment is obsolete: true
Assignee | ||
Comment 8•7 years ago
|
||
I just remembered this crash is a diagnostic crash that only affects Nightly and shouldn't have any negative impact on Beta, so it's okay to wontfix on 56 and not uplift the patch.
Flags: needinfo?(nchen)
Comment 9•7 years ago
|
||
https://hg.mozilla.org/projects/date/rev/2ddc27194c0eaa302a394ab38eea07936cec837b Bug 1384828 - Use tid for UI thread detection; r=esawin
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•