Closed Bug 1740260 Opened 3 years ago Closed 3 years ago

[X11][EGL] Firefox 94 freezes seemingly randomly on Linux with EGL enabled (Rust crate bug on Debian and OpenSUSE)

Categories

(Firefox Build System :: Toolchains, defect)

Firefox 94
x86_64
Linux
defect

Tracking

(firefox94 affected)

RESOLVED DUPLICATE of bug 1735905
Tracking Status
firefox94 --- affected

People

(Reporter: rca, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: hang)

Attachments

(2 files)

Attached file Output of dpkg -l

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Steps to reproduce:

Started Firefox, opened 10 tabs from some heavier sites (AliExpress, Wikipedia, YouTube).

This is on Debian sid, kernel 5.14.0, Mesa 21.2.5, KDE/Plasma 5.23.2 with compositing on and OpenGL as compositor, Xorg 7.7.

Actual results:

After about 2-5 minutes, Firefox freezes. Tabs can't be switched anymore and any new tabs that were freshly opened just display a dark gray area (using dark theme).

Strace of the Firefox processes at that point show nothing too interesting except for:

ioctl(39, DRM_IOCTL_AMDGPU_CTX or DRM_IOCTL_ETNAVIV_GEM_NEW or DRM_IOCTL_LIMA_GEM_INFO or DRM_IOCTL_MSM_GEM_NEW or DRM_IOCTL_V3D_CREATE_BO or DRM_IOCTL_VC4_WAIT_BO <unfinished ...>

Disabling EGL via gfx.x11-egl.force-disabled fixes the problem.

Expected results:

Firefox should continue being responsive and render tabs.

I've also noticed that:

  • Videos playing while other pages are rendering may have choppy audio before things freeze completely
  • The console Firefox was launched from will say:
ATTENTION: default value of option mesa_glthread overridden by environment.
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or one times!

With EGL off, this does not happen.

Thanks for the report! Please open about:support, click on "Copy text to clipboard" and paste it here.

Blocks: linux-egl
Keywords: hang
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Attached file about:support

The fact that disabling EGL works around the issue may be a coincidence. The symptoms are the same as for these bugs reported for Debian and openSUSE. The crackling audio problem is the same as well:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998108
https://bugzilla.opensuse.org/show_bug.cgi?id=1192067

This seems to be related to the toolchains used to build Firefox, Mesa and the use of LLVM version 2 vs. 3.

I meant LLVM 12 vs. 13 of course.
I've also now tested extensively with EGL enabled but using Mozilla's own build of Firefox. The problem never appeared, it only appears with the Firefoxes built by Debian or SuSE.
Should this be resolved as invalid or should it remain open until the distro maintainers find out what exactly triggers the issue?

Component: Graphics: WebRender → Toolchains
Product: Core → Firefox Build System
Summary: [X11][EGL] Firefox 94 freezes seemingly randomly on Linux with EGL enabled → [X11][EGL] Firefox 94 freezes seemingly randomly on Linux with EGL enabled (Miscompilation on Debian and OpenSUSE)
See Also: → 1740973
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Summary: [X11][EGL] Firefox 94 freezes seemingly randomly on Linux with EGL enabled (Miscompilation on Debian and OpenSUSE) → [X11][EGL] Firefox 94 freezes seemingly randomly on Linux with EGL enabled (Rust crate bug on Debian and OpenSUSE)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: