Bug 2338779 - EGL allocation problem with AMD graphics card resulting in crash - downgrading fixes the problem
Summary: EGL allocation problem with AMD graphics card resulting in crash - downgradin...
Keywords:
Status: CLOSED DUPLICATE of bug 2337385
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 41
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-18 22:25 UTC by Zane Godden
Modified: 2025-01-20 15:42 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-01-20 15:42:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zane Godden 2025-01-18 22:25:40 UTC
After a recent update from 24.2.4-1 to 24.3.3-2 to the mesa drivers, Window Managers that depended on wayland wlroots failed to launch. Cosmic Alpha Desktop also failed to launch (I'm unsure if this uses wlroots)

KDE Plasma works fine, which is why I'm thinking a possible link between wlroots and the mesa drivers.

Error messages from Sway WM and Hyprland point to a problem with OpenGL / EGL & the dri2_create_context allocation.

Sway:

00:00:00.040 [ERROR] [wlr] [EGL] command: eglCreateContext, error: EGL_BAD_ALLOC (0x3003), message: "dri2_create_context"
00:00:00.040 [ERROR] [wlr] [render/egl.c:424] Failed to create EGL context
00:00:00.040 [ERROR] [wlr] [render/egl.c:572] Failed to initialize EGL context
00:00:00.040 [ERROR] [wlr] [render/fx_renderer/fx_renderer.c:607] Could not initialize EGL
00:00:00.041 [ERROR] [sway/server.c:150] Failed to create fx_renderer

Hyprland (end of log):
[CRITICAL] [EGL] Command eglCreateContext errored out with EGL_BAD_ALLOC (0x12291): dri2_create_context
[WARN] EGL: Failed to create a context with GLES3.2, retrying 3.0
[CRITICAL] [EGL] Command eglCreateContext errored out with EGL_BAD_ALLOC (0x12291): dri2_create_context
[CRITICAL] 

ASSERTION FAILED! 

EGL: failed to create a context with either GLES3.2 or 3.0


The ultimate results are that the DE or WMs crash and return to the Display Manager. LightDM and SDDM are the same. If started from a tty, the crash still happens

Graphics card is an AMD Radeon RX 6400, Fedora 41

Reproducible: Always

Steps to Reproduce:
1. Install the latest mesa-dri-drivers (24.2.4-1 as of this report)
2. Run Sway WM or Hyprland
Actual Results:  
The WM or DE fails to start, resulting in an error log in tty being created, or a crash back to the Display Manager for SDDM, LightDM and ly

Expected Results:  
To start the DE or WM.

Downgrading to 24.2.4-1 and excluding the packages from updates solves the problem.

Comment 1 Michel Dänzer 2025-01-20 15:42:58 UTC

*** This bug has been marked as a duplicate of bug 2337385 ***


Note You need to log in before you can comment on or make changes to this bug.