Bug 464582 - NVIDIA completely freezing applications & desktop itself when VRAM is close to being filled
Summary: NVIDIA completely freezing applications & desktop itself when VRAM is close t...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.26.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-21 05:27 UTC by kodatarule
Modified: 2023-08-03 15:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kodatarule 2023-01-21 05:27:29 UTC
SUMMARY
***
Whenever the VRAM is close to being full(example: you are playing a high demanding title which almost always uses 99% of the VRAM 7955MB out of 8192MB) other applications like discord/spotify/web browser(firefox/chromium/chrome) would just completely hang, frozen window until you close and re-open it again. 
At least on NVIDIA gpu.
***


STEPS TO REPRODUCE
1. Play a very demanding title which almost always goes on to fill your VRAM(Ready Or Not comes to mind), where it stays 99% being filled and have discord/web browser or any client in general opened on your second monitor or in the background.

OBSERVED RESULT
The application has completely frozen.

EXPECTED RESULT
To work just fine without freezing as on other desktop environments(tested Gnome, Cinnamon and Mate).

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.7-273-tkg-pds (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070/PCIe/SSE2

ADDITIONAL INFORMATION
Just wanted to write down that this bug is observed under both X11 and Wayland, with wayland making the entire session unresponsive until you close out the game/app which consumes so much VRAM.
In addition this seems to happen only with NVIDIA, as I am unable to reproduce it with AMD card.
It has been happening for quite sometime now, which I thought it was an issue that the VRAM can't take it, however after trying other Desktop Environments it seems the problem lies with KDE Plasma(X11/Wayland).

NOTE: This issue isn't limited to 5.26.90, I am only reporting it just now, but it has been present in all versions, so it isn't a 5.27 Beta bug.
Comment 1 Zamundaaa 2023-07-19 10:12:36 UTC
There was a new NVidia driver release that fixes a kernel panic when vram is full. This is likely related, so please test this again with driver 535.86.05+
Comment 2 Bug Janitor Service 2023-08-03 03:44:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 kodatarule 2023-08-03 13:45:44 UTC
Sorry only just now received the notification - Seems to have been resolved with the latest driver.