Closed Bug 1892601 Opened 2 years ago Closed 2 years ago

Graphical glitches on Mali GPU (Android)

Categories

(Firefox for Android :: General, defect)

Firefox 125
defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox126 --- verified
firefox127 --- verified

People

(Reporter: u753344, Assigned: jnicol)

References

Details

Attachments

(3 files, 2 external files)

User Agent: Mozilla/5.0 (Android 14; Mobile; rv:125.0) Gecko/125.0 Firefox/125.0
Firefox for Android

Steps to reproduce:

  1. Go to https://lihkg.com/recall
  2. Press on the bottom-left menu button
  3. Scroll up and down
  4. Get graphical glitches and lags

Actual results:

The website started having tons of graphical glitches, flashing and lagging

Expected results:

The website should not be flashing, lagging or glitching at all.

The Bugbug bot thinks this bug should belong to the 'Fenix::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Fenix
See Also: → 1849962, 1859278

I also encountered this similar error, which I logged in Webcompat, here: https://github.com/webcompat/web-bugs/issues/134949 , but the error was closed, I think it would be worth attention. On the website htts://www.nperf.com I saw this graphical glitches, flashing. The most I have seen on a Samsung Galaxy A20E phone model.

(In reply to eclaudiu64 from comment #2)

Created attachment 9397766 [details]
315272941-426ecaae-f1cb-4948-adac-330bab1c21a2.mp4

I also encountered this similar error, which I logged in Webcompat, here: https://github.com/webcompat/web-bugs/issues/134949 , but the error was closed, I think it would be worth attention. On the website htts://www.nperf.com I saw this graphical glitches, flashing. The most I have seen on a Samsung Galaxy A20E phone model.

Yeah, I believe it's worth attention, as I don't remember this happening on my Redmi Note 10 Pro, which had a Qualcomm Snapdragon 732G and a Adreno 618, but it started happening on my new Redmi Note 13 Pro+ with a Mediatek Dimensity 7200 Ultra and Mali-G610 MC4. I believe this could be something with the Mali drivers that Firefox uses, or something related to Mali GPUs

Thank you for the bug report. Marcin, could you please navigate to about:support, click "copy text to clipboard", and attach the contents to this bug.

eclaudiu64, I think your issue looks like a separate issue, but if you could provide the same information that would be really helpful too. Thanks!

Flags: needinfo?(jbm.pl34)
Flags: needinfo?(emanuellclaudiu)

Here is my about:support output.

Flags: needinfo?(jbm.pl34)

Emanuell, your issue does indeed appear to be unrelated to the original report in this bug, so I have filed bug 1892716 for that. I can reproduce it on a range of Mali devices.

Unfortunately I cannot reproduce Marcin's issue on any of my devices. It may be specific to the Mali-G61. I will get my hands on one then can investigate further.

Flags: needinfo?(emanuellclaudiu)

My Redmi Note 13 Pro Plus arrived, and I can reproduce the glitches.

This is actually a Mali driver bug that we have already discovered and fixed on other devices: bug 1787520, bug 1795614, etc. We already apply the workaround to this bug on Mali Valhall GPUs when the driver version is r36p0 or later. This is why I could not reproduce on any of my other devices.

On this device, however, the driver version is reported slightly differently than on all others I've seen.

Usually it looks something like this: OpenGL ES 3.2 v1.r36p0-01eac0.28ab3a577f105e026887e2b4c93552fb, but on this device it is reported as: OpenGL ES 3.2 v1.r38p1.

Note it doesn't have the big string of characters at the end beginning with a "-". If we handle that case correctly when parsing the driver version, then we will apply the existing workaround on this device to, and the glitches will disappear.

To determine whether to work around a known driver bug (bug 1787520)
affecting certain Mali drivers, we parse the GL_VERSION string which
follows a common format on Mali devices.

In this bug, however, we encountered a device with a slightly
different version format. The "v", "r" and "p" numbers we care about
are still present, but the trailing string that begins with a "-" was
not. This was tripping up our parsing logic even though we ignore its
value. This patch handles the case where the trailing string is not
present, meaning we correctly apply the existing workaround, and avoid
the bug on this device.

Assignee: nobody → jnicol
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by jnicol@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/148a7d49cfeb Fix parsing of Mali driver version without trailing characters. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch

To determine whether to work around a known driver bug (bug 1787520)
affecting certain Mali drivers, we parse the GL_VERSION string which
follows a common format on Mali devices.

In this bug, however, we encountered a device with a slightly
different version format. The "v", "r" and "p" numbers we care about
are still present, but the trailing string that begins with a "-" was
not. This was tripping up our parsing logic even though we ignore its
value. This patch handles the case where the trailing string is not
present, meaning we correctly apply the existing workaround, and avoid
the bug on this device.

Original Revision: https://phabricator.services.mozilla.com/D209004

Attachment #9399992 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Glitches for users with certain Mali GPUs
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low
  • Explanation of risk level: Applies an existing workaround to another driver version
  • String changes made/needed: None
  • Is Android affected?: yes
Attachment #9399992 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed on Firefox 126.0b9 and Firefox 126 with the following devices:

  • Samsung Galaxy Note 8 (Android 9) GPU Mali-G71
  • Oppo Fin N2 Flip (Android 14) GPU Mali-G710
  • Google Pixel 6 (Android 14) GPU Mali-G78
  • Samsung Galaxy A14 (Android 13) GPU Mali-G52
  • OPPO A58 ( Android 13) GPU Mali-G52 MC2
  • Google Pixel 7 Pro ( Android 14) GPU Mali-G710 MP7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: