Open Bug 1713002 Opened 3 years ago Updated 2 months ago

Hang when loading https://www.monbureaunumerique.fr/ on Fenix because of SVG filters

Categories

(Core :: Graphics: WebRender, defect, P3)

Unspecified
Android
defect

Tracking

()

People

(Reporter: kbrosnan, Unassigned)

References

(Depends on 2 open bugs, Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

From github: https://github.com/mozilla-mobile/fenix/issues/19678.

Steps to reproduce

Expected behavior

be able to navigate on the site as on firefox desktop

Actual behavior

firefox has a weird bug, the page is not displayed and cannot close the tab or change the url

Device information

  • Device vendor / model and Android version: tested on Pixel XL android 9 and 10
  • Firefox for Android version: 88.1.3

Change performed by the Move to Bugzilla add-on.

I can confirm this bug with Firefox Nightly 90.0a1 on my Google Pixel XL android 10
my phone is not very powerful it may be related to the bug

The website works perfectly on a virtual device: Google Pixel 4XL, Android 11, Firefox Nightly 90.0a1

As I had written yesterday in the Github Issue Tracker:

I can confirm this issue only with my smartphone (Huawei P smart (2017, 3GB, Android 9.1.0) and the latest Play Store version.
But not complete as the opener has reported. The firsts moments while and after loading the tab Firefox didn't react.
After a few seconds and a previous click on a button Firefox react and the site will be displayed.

On my Chromebook with Intel i5 (8GB) and Android 11 Firefox 89.1.0 and nightly I don't have any problems with the reported site.

Aaron, can you help figure out where this should be redirected.

Flags: needinfo?(aklotz)

I see a 10.9s hang on the compositor thread.

Component: General → Graphics: WebRender
Flags: needinfo?(aklotz)
Product: GeckoView → Core
Severity: -- → S1

(In reply to Kevin Brosnan [:kbrosnan] from comment #1)

Profile is https://share.firefox.dev/3fokTTB

WRWorker#7 was very busy by the following functions. In the functions, gfx::FilerNode functions were called. I wonder if it might be a regression by Bug 1704792.

  • mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)
  • wr_moz2d_render_cb
Regressed by: 1704792
Has Regression Range: --- → yes

:aosmond, can you comment to the bug?

Flags: needinfo?(aosmond)

does bug 1713350 improve things?

The original issue was filed against release Firefox 88. It is possible I made it worse but it seems unlikely that was the original issue. Can we get a profile from 88 and/or 89, and a new profile from the latest 90?

I tested with WR (Z3C + LineageOS / Android 10 -- not particularly powerful) on the latest nightly, which includes the patch from bug 1713350, and it seems fine.

Flags: needinfo?(aosmond) → needinfo?(kbrosnan)
Priority: -- → P1
Priority: -- → P1
Priority: -- → P1
Priority: P2 → P1
Priority: -- → P1
Severity: S1 → S3
Priority: P1 → P3

Bug 1713651 turned off bug 1704792 in both nightly and beta so it should no longer be a factor in this performance issue.

Using a Pixel 2XL on Android 11

Make sure that even when the throbber shows that the page is loaded that the images below the fold are loaded and the page scrolls smoothly.

Flags: needinfo?(kbrosnan)

This is happening because of SVG filters.

Summary: Hang when loading https://www.monbureaunumerique.fr/ on Fenix → Hang when loading https://www.monbureaunumerique.fr/ on Fenix because of SVG filters

Here's the filter in question:

    <defs>
        <filter id="filter--blur" x="0" y="0">
            <feGaussianBlur in="SourceGraphic" stdDeviation="20"></feGaussianBlur>
            <feMorphology operator="dilate" radius="16"></feMorphology>
            <feMorphology operator="dilate" radius="6"></feMorphology>
        </filter>
    </defs>

We do not accelerate feMorphology. All that being said, it does seem like this is showing up as more expensive than it should be.

No longer blocks: gfx-triage
Depends on: 1896740
You need to log in before you can comment on or make changes to this bug.