Bug 492913 - KDE KWin Vulkan Wayland error 'ERROR_OUT_OF_HOST_MEMORY' on NVIDIA
Summary: KDE KWin Vulkan Wayland error 'ERROR_OUT_OF_HOST_MEMORY' on NVIDIA
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.1.4
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-09 20:41 UTC by reports_go_brrr
Modified: 2024-10-16 20:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
goodaqua: NVIDIA+


Attachments
Veloren crash pic (36.05 KB, image/png)
2024-09-09 20:43 UTC, reports_go_brrr
Details
Veloren crash (5.11 KB, text/plain)
2024-09-09 20:43 UTC, reports_go_brrr
Details
Sniffnet crash (341 bytes, text/plain)
2024-09-09 20:44 UTC, reports_go_brrr
Details
Veloren crash 2 (10.50 KB, text/plain)
2024-09-15 16:21 UTC, reports_go_brrr
Details
Veloren crash 3 DrKonqi (10.14 KB, text/plain)
2024-09-15 16:21 UTC, reports_go_brrr
Details
Veloren crash 4 debuginfod (11.43 KB, text/plain)
2024-09-15 16:22 UTC, reports_go_brrr
Details
Veloren crash 5 plasma-kwin_wayland (293.67 KB, text/plain)
2024-09-15 16:23 UTC, reports_go_brrr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description reports_go_brrr 2024-09-09 20:41:57 UTC
SUMMARY
Certain applications like Veloren or Sniffnet or Blender (with experimental backend) are crashing only under Wayland. But with workaround like using variable `env WAYLAND_DISPLAY=` apps are working fine, as on X11. I use NVIDIA proprietary driver cause i sit under such graphics card.
If even Blender starts sometimes, it still finds it's way to crash KWin :( (luckily KWin restarts then)

STEPS TO REPRODUCE
1. Start Veloren or Sniffnet or Blender 4.3 Alpha with `--gpu-backend vulkan`

OBSERVED RESULT
Usually the reason is `WaylandSurface failed: ERROR_OUT_OF_HOST_MEMORY`, but chech the attachements if you need more info.

EXPECTED RESULT
To make them work again on Wayland, as they work under X11 session :(

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-arch1-1 (64-bit)
Graphics Platform: Wayland
NVIDIA Driver: 555.58.02

ADDITIONAL INFORMATION
Vanilla Dolphin, vanilla Baloo, vanilla EndeavourOS.
P.S. KDE Plasma compositing DOESN'T affect the behavior of Dolphin or current bug. Already tested it on real machine.
Comment 1 reports_go_brrr 2024-09-09 20:43:25 UTC
Created attachment 173497 [details]
Veloren crash pic
Comment 2 reports_go_brrr 2024-09-09 20:43:56 UTC
Created attachment 173498 [details]
Veloren crash
Comment 3 reports_go_brrr 2024-09-09 20:44:24 UTC
Created attachment 173499 [details]
Sniffnet crash
Comment 4 Zamundaaa 2024-09-13 23:02:10 UTC
Please attach the backtrace of the crash, and the output of
> journalctl --user-unit plasma-kwin_wayland --boot 0
after triggering the issue.

About the applications crashing, that's a driver bug, please report it to https://forums.developer.nvidia.com/c/gpu-graphics/linux
Comment 5 reports_go_brrr 2024-09-15 16:21:26 UTC
Created attachment 173693 [details]
Veloren crash 2
Comment 6 reports_go_brrr 2024-09-15 16:21:44 UTC
Created attachment 173694 [details]
Veloren crash 3 DrKonqi
Comment 7 reports_go_brrr 2024-09-15 16:22:21 UTC
Created attachment 173695 [details]
Veloren crash 4 debuginfod
Comment 8 reports_go_brrr 2024-09-15 16:23:31 UTC
Created attachment 173696 [details]
Veloren crash 5 plasma-kwin_wayland
Comment 9 reports_go_brrr 2024-09-26 18:41:45 UTC
The problem is I didn't experienced this crash under COSMIC Wayland and GNOME Wayland sessions, only KDE Plasma Wayland does that.
Comment 10 Zamundaaa 2024-09-26 19:32:38 UTC
I need a backtrace for kwin_wayland, not from the apps. You can get it with
> coredumpctl debug kwin_wayland

(In reply to reports_go_brrr from comment #9)
> The problem is I didn't experienced this crash under COSMIC Wayland and
> GNOME Wayland sessions, only KDE Plasma Wayland does that.
That doesn't matter, it's still a driver bug.
Comment 11 Bug Janitor Service 2024-10-11 03:49:36 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 12 reports_go_brrr 2024-10-16 20:26:54 UTC
TL;DR: Use VK_ICD_FILENAMES=/etc/vulkan/icd.d/nvidia_icd.json environment variable.

https://wiki.archlinux.org/title/Vulkan#Selecting_vulkan_driver
Explained me well. I suspect Nvidia 555 series drivers invented this unwanted extra.