Bug 480800

Summary: Krunner wayland intermitently not opening with eglSwapBuffers errors
Product: [Plasma] krunner Reporter: gtpepi
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CLOSED UPSTREAM    
Severity: normal CC: alexander.lohnau, krystian, leanguedes, natalie_clarius, nate, nishant.119, wank_my_willy1, xaver.hugl
Priority: NOR Keywords: wayland
Version: 5.93.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=490813
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description gtpepi 2024-02-03 19:55:23 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

I cannot reproduce the start condition, but sometimes krunner does not open and each shortcut keypress leaves this log:

Feb 03 16:44:52 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0dc9e70
Feb 03 16:44:52 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0dc9e70
Feb 03 16:44:53 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0dc9e70
Feb 03 16:44:53 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0dc9e70
Feb 03 16:44:53 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0dc9e70
Feb 03 16:44:54 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0dc9e70
// After some time, it returns on its own. And then it randomly stops, and again each keypress leaves something in the log: 
Feb 03 16:49:43 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0d676c0
Feb 03 16:49:52 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0d676c0
Feb 03 16:49:53 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0d676c0
Feb 03 16:49:54 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0d676c0
Feb 03 16:50:07 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0d676c0
Feb 03 16:50:07 arch krunner[4832]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x7ca8d0d676c0





STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
Linux arch 6.7.3-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 01 Feb 2024 10:30:25 +0000 x86_64 GNU/Linux
(available in About System)
KDE Plasma Version: 
5.93.0
KDE Frameworks Version: 
5.249.0
Qt Version: 
6.7.0
Nvidia
545.29.06-3

ADDITIONAL INFORMATION
- Did not happen in x11
- pkilling krunner makes it work again instantly
Comment 1 gtpepi 2024-02-04 19:59:43 UTC
Additional info: this also happens in 5.27;  although less frequently
Comment 2 Zamundaaa 2024-02-13 16:03:40 UTC
The error code means EGL_BAD_SURFACE. I don't think this is a problem in KRunner, but might be in Qt or the NVidia driver. Please try to reproduce the issue with an older driver version, and if it happens there too, report it to Qt, if it doesn't, report it to NVidia.
Comment 3 Nate Graham 2024-08-13 19:20:16 UTC
*** Bug 491530 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2024-08-13 19:20:42 UTC
*** Bug 491380 has been marked as a duplicate of this bug. ***
Comment 5 krystian 2024-08-14 14:38:08 UTC
I have created a workaround for those who are addicted to krunner, because I don't see there will be a patch soon.

https://github.com/kpostekk/krunner-restarter
Comment 6 Nate Graham 2024-08-20 21:26:21 UTC
*** Bug 491483 has been marked as a duplicate of this bug. ***