Closed Bug 1903810 Opened 2 years ago Closed 2 years ago

Crash in [@ libGLESv2_samsung.so] with Android API 34 (Android 14)

Categories

(Core :: Graphics, defect)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox127 --- wontfix
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: aryx, Assigned: jnicol)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Attachments

(2 external files)

450 crash reports from 306 installs of Firefox 127.0 so far, all with Android API 34 (= Android 14)

Crash report: https://crash-stats.mozilla.org/report/index/42363c7b-31dd-4bec-87ea-7341a0240620

Reason: SIGSEGV / SEGV_MAPERR

Top 10 frames:

0  libGLESv2_samsung.so  libGLESv2_samsung.so@0x2c515c
1  libGLESv2_samsung.so  libGLESv2_samsung.so@0x3b96f4
2  libGLESv2_samsung.so  libGLESv2_samsung.so@0x2ae9a4
3  libGLESv2_samsung.so  libGLESv2_samsung.so@0x257550
4  libGLESv2_samsung.so  libGLESv2_samsung.so@0x256c98
5  libGLESv2_samsung.so  libGLESv2_samsung.so@0x257e60
6  libGLESv2_samsung.so  libGLESv2_samsung.so@0x1e2940
7  libGLESv2_samsung.so  libGLESv2_samsung.so@0x1e408c
8  libEGL_samsung.so  libEGL_samsung.so@0x18840
9  libEGL.so  libEGL.so@0x32c7c
Flags: needinfo?(jnicol)

This appears to be another instance of bug 1868825, so we need to apply its workaround to all devices with Samsung Xclipse GPUs

Flags: needinfo?(jnicol)
See Also: → 1868825
Assignee: nobody → jnicol

In bug 1868825 we encountered crashes on a specific device when
calling eglTerminate. As a workaround, we avoided calling eglTerminate
and instead deliberately leaked the EGLDisplay. As we had only
encountered this crash on a specific device, we limited the workaround
to just that device.

We are now seeing the same crash on a range of devices, all with
Samsung Xclipse GPUs. This patch therefore makes us leak the
EGLDisplays on all devices with an Xclipse GPU.

As the GPU model is not available in EglDisplay code, we instead set a
flag on the EglDisplay object when the GLContext is initialized. Prior
to terminated the display we check whether this flag has been set.
Terminating a display which has not had a context created does not
reproduce the crash, so this is sufficient.

Pushed by jnicol@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/58c05207ff0b Leak EGLDisplays on all Samsung Xclipse GPUs. r=gfx-reviewers,nical
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

The patch landed in nightly and beta is affected.
:jnicol, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox128 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(jnicol)

In bug 1868825 we encountered crashes on a specific device when
calling eglTerminate. As a workaround, we avoided calling eglTerminate
and instead deliberately leaked the EGLDisplay. As we had only
encountered this crash on a specific device, we limited the workaround
to just that device.

We are now seeing the same crash on a range of devices, all with
Samsung Xclipse GPUs. This patch therefore makes us leak the
EGLDisplays on all devices with an Xclipse GPU.

As the GPU model is not available in EglDisplay code, we instead set a
flag on the EglDisplay object when the GLContext is initialized. Prior
to terminating the display we check whether this flag has been set.
Terminating a display which has not had a context created does not
reproduce the crash, so this is sufficient.

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

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

beta Uplift Approval Request

  • User impact if declined: Crashes for users on various recent Samsung devices after playing webgl content
  • 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: We already use this workaround on the Samsung S24, this just expands it to additional devices
  • String changes made/needed: N/A
  • Is Android affected?: yes
Attachment #9409374 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified on the Firefox for Android 127.0.2, Fenix Nightly 129.0a1 from 7/1, and the latest Beta 128.0b9, with the following devices:

  • Google Pixel 8 (Android 14),
  • Oppo Find N2 Flip (Android 14),
  • Samsung Galaxy S24 (Android 14), and
  • Google Pixel 6 (Android 15),

and I was not able to trigger any crash while using Fenix.

Flags: needinfo?(jnicol)
See Also: → 1826257
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: