Bug 480800

Summary: On Wayland KRunner and other Plasma pop-ups are intermittently not opening with eglSwapBuffers errors
Product: [Plasma] krunner Reporter: gtpepi
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CLOSED UPSTREAM    
Severity: normal CC: achilleas.k, alexander.lohnau, aubergine, cummingcowgirl, kdedev, krystian, leanguedes, matt.fagnani, natalie_clarius, nate, nishant.119, rabin, vincent, wank_my_willy1, xaver.hugl
Priority: HI 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. ***
Comment 7 Nate Graham 2024-11-04 19:12:18 UTC
*** Bug 495776 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2024-11-14 18:23:45 UTC
*** Bug 496248 has been marked as a duplicate of this bug. ***
Comment 9 rabin 2024-12-15 13:11:40 UTC
Currently impacted by this issue, we are temporarily using a workaround script to monitor journal events and restart the service. Do you know when this bug will be fixed?
Comment 10 rabin 2024-12-15 13:14:33 UTC
(In reply to rabin from comment #9)
> Currently impacted by this issue, we are temporarily using a workaround
> script to monitor journal events and restart the service. Do you know when
> this bug will be fixed?

Adding missing system info for context,

```
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.11.11-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-6820HQ CPU @ 2.70GHz
Memory: 62.6 GiB of RAM
Graphics Processor: Quadro M2000M/PCIe/SSE2
Manufacturer: LENOVO
Product Name: 20EN001EUS
System Version: ThinkPad P50
```
Comment 11 TraceyC 2024-12-16 18:47:22 UTC
(In reply to rabin from comment #9)
> Currently impacted by this issue, we are temporarily using a workaround
> script to monitor journal events and restart the service. Do you know when
> this bug will be fixed?

This will rely on someone creating a bug with either nvidia or Qt, as the problem is in one of those codebases.

See this comment for context
https://bugs.kde.org/show_bug.cgi?id=480800#c2

Since your system doesn't have an nVidia GPU, the problem is likely with Qt.
Comment 12 rabin 2024-12-16 19:32:21 UTC
(In reply to TraceyC from comment #11)
> (In reply to rabin from comment #9)
> > Currently impacted by this issue, we are temporarily using a workaround
> > script to monitor journal events and restart the service. Do you know when
> > this bug will be fixed?
> 
> This will rely on someone creating a bug with either nvidia or Qt, as the
> problem is in one of those codebases.
> 
> See this comment for context
> https://bugs.kde.org/show_bug.cgi?id=480800#c2
> 
> Since your system doesn't have an nVidia GPU, the problem is likely with Qt.

I do have an NVIDIA card (Graphics Processor: Quadro M2000M/PCIe/SSE2)

So first I need to check if I can recreate this issue with older drivers?
Comment 13 TraceyC 2024-12-17 16:43:53 UTC
Yes.
Comment 14 BlueUSA 2025-01-16 20:01:18 UTC
(In reply to rabin from comment #9)
> Currently impacted by this issue, we are temporarily using a workaround
> script to monitor journal events and restart the service. Do you know when
> this bug will be fixed?

The workaround script isn't there any longer.
Comment 15 Krystian 2025-01-17 12:39:12 UTC
(In reply to BlueUSA from comment #14)
> (In reply to rabin from comment #9)
> > Currently impacted by this issue, we are temporarily using a workaround
> > script to monitor journal events and restart the service. Do you know when
> > this bug will be fixed?
> 
> The workaround script isn't there any longer.

It's still on github and it's still working, see 5th comment.