Bug 478601

Summary: Each unlock "qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)"
Product: [Plasma] plasmashell Reporter: Stefan Hoffmeister <stefan.hoffmeister>
Component: Screen lockingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: minor CC: eylem.akcay, it, kde, kostadinshishmanov, muesli, nate, physkets, postix, rhld016, smowtenshi, xaver.hugl
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Stefan Hoffmeister 2023-12-16 10:43:32 UTC
SUMMARY

On KDE Plasma 6 Beta 1 (Fedora Rawhide 40) every screen unlock yields log entries

```
Dec 16 11:33:12 fedora kscreenlocker_greet[13371]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
Dec 16 11:33:12 fedora kscreenlocker_greet[13371]: Failed to write to the pipe: Bad file descriptor.
```

STEPS TO REPRODUCE
1. KDE Plasma 6 Beta 1 (Fedora Rawhide 40)
2. log into a Wayland session
3. lock screen
4. unlock screen
5. `journalctl -xe`

OBSERVED RESULT

Log entries

```
Dec 16 11:33:12 fedora kscreenlocker_greet[13371]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
Dec 16 11:33:12 fedora kscreenlocker_greet[13371]: Failed to write to the pipe: Bad file descriptor.
```

EXPECTED RESULT

No log entries (which is not to mean that the log entries get a lower log level, but that any presumed root cause be removed)

ADDITIONAL INFORMATION

FWIW, 0x3000 == EGL_SUCCESS, so I am a bit surprised about the log message?

Note that this is running inside a virtual machine, on the vmwgfx Linux kernel drm driver, with atomic mode-setting explicitly enabled, and with software cursors forced on. I would speculate that this is not relevant to the issue.
Comment 1 Christian Muehlhaeuser 2024-03-11 07:02:20 UTC
Can confirm, seeing the same thing.
Comment 2 Georg Zachl 2024-03-13 15:17:31 UTC
I'm seeing the same errors. Log looks like:
kscreenlocker_greet	qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
kscreenlocker_greet	qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
kscreenlocker_greet	Failed to write to the pipe: Ungültiger Dateideskriptor.

Also, it takes forever for the kscreenlocker to show an image, after the displays were turned off for a while. I'm not sure if that is connected.

My system info:
Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-10210U CPU @ 1.60GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: HP
Product Name: HP EliteBook 840 G7 Notebook PC
System Version: SBKPF
Comment 3 eylem akçay 2025-11-29 09:01:55 UTC
Seeing the same error.  Sometimes (not always) when the screen is locked, i move the mouse, the login screen appears, type in my password, hit return and nothing happen, no response. I'm using two monitors.

Then, if i hit Esc, then move the mouse again, type in my password and it works. I do not have to restart my system.

system info:
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.17.1-0-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 19,3 GiB of RAM
Graphics Processor 1: Mesa Intel® Iris® Xe Graphics
Graphics Processor 2: llvmpipe
Manufacturer: LENOVO
Product Name: 82H9
System Version: IdeaPad 3 17ITL6
Comment 4 Zamundaaa 2025-12-05 16:59:18 UTC
That warning is just a nonsensical thing Qt prints, it's harmless - EGL "error" 0x3000 means success. Any issues you may have with the screenlocker are unrelated and should get their own bug reports.