Bug 480800 - With NVIDIA GPU, on Wayland KRunner and other Plasma pop-ups are intermittently not opening with eglSwapBuffers errors
Summary: With NVIDIA GPU, on Wayland KRunner and other Plasma pop-ups are intermittent...
Status: CLOSED UPSTREAM
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.3
Platform: openSUSE Linux
: VHI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
: 491380 491483 491530 495776 499477 499722 499889 499974 500198 500266 500493 500510 500567 500721 502015 504969 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-03 19:55 UTC by gtpepi
Modified: 2025-06-20 09:25 UTC (History)
44 users (show)

See Also:
Latest Commit:
Version Fixed In: Qt 6.9
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/152672/events/d7131968686b411c9ad5063650211261/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 16 Steven Mey 2025-02-13 19:51:57 UTC
Another workaround is to change your hotkey to custom command:
/usr/bin/krunner --replace
Comment 17 Christopher J. Bottaro 2025-02-16 02:27:38 UTC
(In reply to Steven Mey from comment #16)
> Another workaround is to change your hotkey to custom command:
> /usr/bin/krunner --replace

Thanks for this. It's a big sluggish running this way though. The status of the bug is "closed upstream" does that mean a fix won't be coming unless we convince someone upstream to care enough to look into it? I.e. krunner is just broken until then?
Comment 18 felixbrakel 2025-02-17 11:51:45 UTC
(In reply to Christopher J. Bottaro from comment #17)
> (In reply to Steven Mey from comment #16)
> > Another workaround is to change your hotkey to custom command:
> > /usr/bin/krunner --replace
> 
> Thanks for this. It's a big sluggish running this way though. The status of
> the bug is "closed upstream" does that mean a fix won't be coming unless we
> convince someone upstream to care enough to look into it? I.e. krunner is
> just broken until then?

Looking at the KDE bug triaging process it does seem like that is the case https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging#It's_a_bug,_but_not_a_KDE_bug_(i.e._UPSTREAM/DOWNSTREAM_issues)

There is a bug report over on QT's system https://bugreports.qt.io/browse/QTBUG-131899?jql=text%20~%20%22qt.qpa.wayland%3A%20eglSwapBuffers%20failed%20with%200x300d%22

Similarly people have been reporting this issue to NVIDIA on their forum https://forums.developer.nvidia.com/t/570-release-feedback-discussion/321956/90

Neither has seen any movement really. 

This is a particularly nasty bug: non-deterministic, occurring in upstream QT code, likely related to NVIDIA's closed-source driver. Since KDE applications are affected by this (pretty badly since with the 570 driver) I would say it is in their interest to start working with QT and/or NVIDIA for a fix. I am however an outsider to the KDE project and I do not presume to dictate what they should and should not do.
Comment 19 Nate Graham 2025-02-18 02:45:48 UTC
*** Bug 499477 has been marked as a duplicate of this bug. ***
Comment 20 Nate Graham 2025-02-18 15:29:41 UTC
*** Bug 499722 has been marked as a duplicate of this bug. ***
Comment 21 Nate Graham 2025-02-18 15:30:02 UTC
*** Bug 499889 has been marked as a duplicate of this bug. ***
Comment 22 Nate Graham 2025-02-18 15:30:05 UTC
*** Bug 499974 has been marked as a duplicate of this bug. ***
Comment 23 Nate Graham 2025-02-18 15:30:10 UTC
*** Bug 500198 has been marked as a duplicate of this bug. ***
Comment 24 Nate Graham 2025-02-18 15:30:26 UTC
*** Bug 500266 has been marked as a duplicate of this bug. ***
Comment 25 cwo 2025-02-20 23:26:38 UTC
*** Bug 500493 has been marked as a duplicate of this bug. ***
Comment 26 Antonio Rojas 2025-02-21 08:34:57 UTC
*** Bug 500510 has been marked as a duplicate of this bug. ***
Comment 27 Antonio Rojas 2025-02-22 10:16:56 UTC
*** Bug 500567 has been marked as a duplicate of this bug. ***
Comment 28 Filip 2025-02-25 12:34:11 UTC
*** Bug 500721 has been marked as a duplicate of this bug. ***
Comment 29 Martin K. Scherer 2025-02-25 13:39:23 UTC
As a workaround, one can switch the QT QPA platform to xcb.

e.g. 
QT_QPA_PLATFORM=xcb  krunner --replace

or
 systemctl --user edit plasma-krunner.service

# and put the flowing snippet to set the environment just for this service.
[Service]
Environment=QT_QPA_PLATFORM=xcb

(sorry for the noise, but some ppl might be interested in this.)
Comment 30 Filip 2025-03-26 13:39:03 UTC
*** Bug 502015 has been marked as a duplicate of this bug. ***
Comment 31 zxvb12z 2025-04-03 10:38:21 UTC
in qt 6.9 this problem is no longer reproduced
Comment 32 Michal 2025-04-07 17:56:02 UTC
(In reply to Martin K. Scherer from comment #29)
> As a workaround, one can switch the QT QPA platform to xcb.
> 
> e.g. 
> QT_QPA_PLATFORM=xcb  krunner --replace
> 
> or
>  systemctl --user edit plasma-krunner.service
> 
> # and put the flowing snippet to set the environment just for this service.
> [Service]
> Environment=QT_QPA_PLATFORM=xcb
> 
> (sorry for the noise, but some ppl might be interested in this.)

This was causing crashes on my system with Arch, Nvidia drivers (570.133.07) and Plasma 6.3.4. So if you stumble on this, try to comment Environment parameter.
Comment 33 SR_team 2025-04-21 18:58:41 UTC
Fixed in nvidia 575? Cannot reproduce bug with this driver version
Comment 34 pallaswept 2025-04-21 20:23:11 UTC
(In reply to SR_team from comment #33)
> Fixed in nvidia 575? Cannot reproduce bug with this driver version

https://bugs.kde.org/show_bug.cgi?id=480800#c31
Comment 35 Andrija 2025-04-22 20:15:44 UTC
(In reply to SR_team from comment #33)
> Fixed in nvidia 575? Cannot reproduce bug with this driver version

I am using the 570.144 version of nvidia drivers and it works fine now.
Comment 36 pallaswept 2025-04-23 00:54:46 UTC
(In reply to Andrija from comment #35)
> (In reply to SR_team from comment #33)
> > Fixed in nvidia 575? Cannot reproduce bug with this driver version
> 
> I am using the 570.144 version of nvidia drivers and it works fine now.

It's still https://bugs.kde.org/show_bug.cgi?id=480800#c31
Comment 37 Krystian 2025-04-28 07:00:22 UTC
Fixed on Fedora 42 with latest nvidia driver.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.3-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9700X 8-Core Processor
Memory: 33,2 GB of RAM
Graphics Processor: NVIDIA GeForce RTX 4070
❯ sudo dnf info akmod-nvidia
Name            : akmod-nvidia
Epoch           : 3
Version         : 570.144
Release         : 1.fc42
Architecture    : x86_64
Installed size  : 92.2 KiB
Source          : nvidia-kmod-570.144-1.fc42.src.rpm
Comment 38 Cameron 2025-04-29 19:00:49 UTC
Unfortunately, Nvidia drivers 570.144 doesn't fix this for me on Kubuntu 25.04. Specifically running package nvidia-driver-570 at version 570.144-0ubuntu0~gpu25.04.1

I'm running KDE 6.3.4 with Qt 6.8.3. 

Same error message as others: 
Apr 29 11:48:22 kubuntu krunner[10674]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x556dc3422620

Maybe the Nvidia driver update is half the fix and the other half is in Qt 6.9?

Back to X11 for now at least...
Comment 39 pallaswept 2025-04-29 22:51:12 UTC
(In reply to Cameron from comment #38)
> Unfortunately, Nvidia drivers 570.144 doesn't fix this for me on Kubuntu
> 25.04. Specifically running package nvidia-driver-570 at version
> 570.144-0ubuntu0~gpu25.04.1
> 
> I'm running KDE 6.3.4 with Qt 6.8.3. 
> 
> Same error message as others: 
> Apr 29 11:48:22 kubuntu krunner[10674]: qt.qpa.wayland: eglSwapBuffers
> failed with 0x300d, surface: 0x556dc3422620
> 
> Maybe the Nvidia driver update is half the fix and the other half is in Qt
> 6.9?
> 
> Back to X11 for now at least...

It's still https://bugs.kde.org/show_bug.cgi?id=480800#c31
Comment 40 Cameron 2025-04-30 00:22:08 UTC
(In reply to pallaswept from comment #39)
> (In reply to Cameron from comment #38)
> > Unfortunately, Nvidia drivers 570.144 doesn't fix this for me on Kubuntu
> > 25.04. Specifically running package nvidia-driver-570 at version
> > 570.144-0ubuntu0~gpu25.04.1
> > 
> > I'm running KDE 6.3.4 with Qt 6.8.3. 
> > 
> > Same error message as others: 
> > Apr 29 11:48:22 kubuntu krunner[10674]: qt.qpa.wayland: eglSwapBuffers
> > failed with 0x300d, surface: 0x556dc3422620
> > 
> > Maybe the Nvidia driver update is half the fix and the other half is in Qt
> > 6.9?
> > 
> > Back to X11 for now at least...
> 
> It's still https://bugs.kde.org/show_bug.cgi?id=480800#c31

I've already tried it and krunner still crashes... It's just a bit different. It crashes every other time I call it, so at least it restarts itself, but krunner is still mostly useless.

Seems I'm not the only one that this doesn't work for:
https://bugs.kde.org/show_bug.cgi?id=480800#c32
Comment 41 pallaswept 2025-04-30 03:27:16 UTC
(In reply to Cameron from comment #40)
> (In reply to pallaswept from comment #39)
> > (In reply to Cameron from comment #38)
> > > Unfortunately, Nvidia drivers 570.144 doesn't fix this for me on Kubuntu
> > > 25.04. Specifically running package nvidia-driver-570 at version
> > > 570.144-0ubuntu0~gpu25.04.1
> > > 
> > > I'm running KDE 6.3.4 with Qt 6.8.3. 
> > > 
> > > Same error message as others: 
> > > Apr 29 11:48:22 kubuntu krunner[10674]: qt.qpa.wayland: eglSwapBuffers
> > > failed with 0x300d, surface: 0x556dc3422620
> > > 
> > > Maybe the Nvidia driver update is half the fix and the other half is in Qt
> > > 6.9?
> > > 
> > > Back to X11 for now at least...
> > 
> > It's still https://bugs.kde.org/show_bug.cgi?id=480800#c31
> 
> I've already tried it and krunner still crashes... It's just a bit
> different. It crashes every other time I call it, so at least it restarts
> itself, but krunner is still mostly useless.
> 
> Seems I'm not the only one that this doesn't work for:
> https://bugs.kde.org/show_bug.cgi?id=480800#c32

You said you're running Qt 6.8.3?

That post you linked reports an issue with the workaround (adding the environment variable to force xcb) which is no longer required with the fix in Qt 6.9.
Comment 42 Cameron 2025-05-03 03:11:49 UTC
(In reply to pallaswept from comment #41)
> (In reply to Cameron from comment #40)
> > (In reply to pallaswept from comment #39)
> > > (In reply to Cameron from comment #38)
> > > > Unfortunately, Nvidia drivers 570.144 doesn't fix this for me on Kubuntu
> > > > 25.04. Specifically running package nvidia-driver-570 at version
> > > > 570.144-0ubuntu0~gpu25.04.1
> > > > 
> > > > I'm running KDE 6.3.4 with Qt 6.8.3. 
> > > > 
> > > > Same error message as others: 
> > > > Apr 29 11:48:22 kubuntu krunner[10674]: qt.qpa.wayland: eglSwapBuffers
> > > > failed with 0x300d, surface: 0x556dc3422620
> > > > 
> > > > Maybe the Nvidia driver update is half the fix and the other half is in Qt
> > > > 6.9?
> > > > 
> > > > Back to X11 for now at least...
> > > 
> > > It's still https://bugs.kde.org/show_bug.cgi?id=480800#c31
> > 
> > I've already tried it and krunner still crashes... It's just a bit
> > different. It crashes every other time I call it, so at least it restarts
> > itself, but krunner is still mostly useless.
> > 
> > Seems I'm not the only one that this doesn't work for:
> > https://bugs.kde.org/show_bug.cgi?id=480800#c32
> 
> You said you're running Qt 6.8.3?
> 
> That post you linked reports an issue with the workaround (adding the
> environment variable to force xcb) which is no longer required with the fix
> in Qt 6.9.

Well, good news! Noticed that Ubuntu had a nvidia-driver-575 package today. That seems to have fixed my issues with KDE Plasma 6.3.4 and Qt 6.8.3!

Steam (and the games I launch from it) are a bit wonky compared to under X11, but mostly seem to work. Sometimes Steam or the games don't startup properly and I have to quit them. Most of the time games/Steam startup fine and then they run continue to run without issue. Not sure if that's due to the interaction of these newer drivers with Wayland+KDE or if this is true in general with Nvidia+KDE in general. 

Things have been pretty stable on my laptop with its intel iGPU and Nvidia Optimus at least, but all the regular desktop stuff goes through the better supported open source i915 drivers in that case.

But having to occasionally restart  games/Steam is nothing compared to the other issues I run into when running X11 such as this bug:
https://bugs.kde.org/show_bug.cgi?id=483094
Comment 43 Andrew Udvare 2025-05-17 22:34:19 UTC
(In reply to Christopher J. Bottaro from comment #17)
> (In reply to Steven Mey from comment #16)
> > Another workaround is to change your hotkey to custom command:
> > /usr/bin/krunner --replace
> 
> Thanks for this. It's a big sluggish running this way though. The status of
> the bug is "closed upstream" does that mean a fix won't be coming unless we
> convince someone upstream to care enough to look into it? I.e. krunner is
> just broken until then?

I used this method and I am not seeing the sluggishness. This is a decent workaround for now. On Gentoo nvidia-drivers-575 is masked.
Comment 44 cwo 2025-05-29 16:43:34 UTC
*** Bug 504969 has been marked as a duplicate of this bug. ***
Comment 45 Gael Beaudoin 2025-06-20 09:22:11 UTC
On Kubuntu 25.04, up to date, with Nvidia 575 drivers installed from PPA, the bug is still there and krunner unusable on Wayland.
Plasma 6.3.4, Frameworks 6.12.0, Qt 6.8.3.

Upstream fixes it apparently : which upstream / software / version ?
Comment 46 pallaswept 2025-06-20 09:24:54 UTC
(In reply to Gael Beaudoin from comment #45)
> Upstream fixes it apparently : which upstream / software / version ?

https://bugs.kde.org/show_bug.cgi?id=480800#c31
Comment 47 Gael Beaudoin 2025-06-20 09:25:32 UTC
(In reply to Gael Beaudoin from comment #45)
> On Kubuntu 25.04, up to date, with Nvidia 575 drivers installed from PPA,
> the bug is still there and krunner unusable on Wayland.
> Plasma 6.3.4, Frameworks 6.12.0, Qt 6.8.3.
> 
> Upstream fixes it apparently : which upstream / software / version ?

Ok sorry, more reading this report and the fix seams to be in Qt 6.9.