Closed Bug 1384828 Opened 7 years ago Closed 7 years ago

MOZ_RELEASE_ASSERT(isOnUiThread) crash for CreateCompositor

Categories

(Core Graveyard :: Widget: Android, defect)

Unspecified
Android
defect
Not set
critical

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)

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.
This signature is ranked #3 in top-crashers.
Keywords: topcrash
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 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
https://hg.mozilla.org/mozilla-central/rev/2ddc27194c0e
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Please request Beta approval on this when you get a chance.
Flags: needinfo?(nchen)
Attachment #8892200 - Attachment is obsolete: true
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)
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: