Bug 498726 - Could not create EGL surfaceless context: EGL_BAD_ALLOC.
Summary: Could not create EGL surfaceless context: EGL_BAD_ALLOC.
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: generic-crash (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-16 09:26 UTC by slartibart70
Modified: 2025-01-19 12:51 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description slartibart70 2025-01-16 09:26:37 UTC
Not sure, if this belongs here, but
calibre ebook-viewer and
foliate ebook-viewer (did not try others yet)

complain with this error:
Could not create EGL surfaceless context: EGL_BAD_ALLOC.

e.g. calibre:

./ebook-viewer 
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/claus/Tools/calibre-7.24.0/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/claus/Tools/calibre-7.24.0/libexec/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/claus/Tools/calibre-7.24.0/libexec/qtwebengine_dictionaries'
[1230876:1230927:0116/092932.321538:ERROR:gl_context_egl.cc(393)] eglCreateContext failed with error EGL_BAD_ALLOC
Segmentation fault (core dumped)

Plasma or mesa faults?
How to fix this bug (or, who to delegate to?)

--- 
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-200.fc41.x86_64 (64-bit)
Comment 1 Nate Graham 2025-01-16 17:08:29 UTC
If something crashed, we need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the `coredumpctl` command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?
Comment 2 Kevin Burns 2025-01-16 20:50:46 UTC
Fedora 41, KDE Wayland, and I updated from plasma 6.2.1-1 to 6.2.5-1 this morning (Jan 16th, 2025).  

If I don't see a global environment variable set to QT_QPA_PLATFORM=xcb, everything crashes, and I get a blank screen. Luckily, I have a shortcut for Konsole that will open even though the entire desktop is black (no background, no panels).

My laptop has a AMD 780m (iGPU,) 6500xt (dGpu,) and a 7800xt (eGPU,) all the same results with all of the mesa packages version 24.3.3-2.

Nothing is showing up in coredumps, and the logs only show the error : eglCreateContext failed with error EGL_BAD_ALLOC.

Is there anything else I can do to get information to help out?
Comment 3 slartibart70 2025-01-16 21:25:14 UTC
well, i somehow fixed the problem by downgrading mesa\*
It's all on 24.2.4 now and back in a working state.

Seems like mesa 24.3.x is in a pretty bad shape (as can also be seen by issues in their gitlab tracker)
Comment 4 slartibart70 2025-01-19 12:51:40 UTC
i created 
https://gitlab.freedesktop.org/mesa/mesa/-/issues/12491

@kevin maybe you cloud join in?