Bug 487057 - After running an SDL application kwin_wayland uses 100% CPU even after the app is closed
Summary: After running an SDL application kwin_wayland uses 100% CPU even after the ap...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (other bugs)
Version First Reported In: 6.0.4
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-15 14:02 UTC by kirtai+kde
Modified: 2024-12-31 03:47 UTC (History)
2 users (show)

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


Attachments
KWin support information. (7.22 KB, text/plain)
2024-05-15 14:02 UTC, kirtai+kde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kirtai+kde 2024-05-15 14:02:54 UTC
Created attachment 169504 [details]
KWin support information.

SUMMARY
kwin_wayland uses 100% CPU after running a program that uses SDL.
I have to restart to get KWin to return to low CPU useage.

STEPS TO REPRODUCE
1. Run Kwin under wayland
2. Run an SDL based application. e.g steam game or SDL version of Medley.
3. Observe CPU load

OBSERVED RESULT
KWin uses 100% CPU even after the application exits

EXPECTED RESULT
KWin should use very little CPU.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: EndeavourOS
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Attached is the output of "qdbus org.kde.KWin /KWin supportInformation"
This is on an Optimus laptop with integrated Intel GPU and discrete NVidia 1060m GPU
I *suspect* it's something to do with the GPU switching.
Comment 1 David Edmundson 2024-06-05 07:09:59 UTC
I cannot reproduce the results, and there isn't any other information in this ticket that's actionable.

If you can reliably repeat the results can you include the output of:

qdbus org.kde.KWin /Effects org.kde.kwin.Effects.activeEffects

whilst CPU is high.
Comment 2 Bug Janitor Service 2024-06-20 03:47:12 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 kirtai+kde 2024-06-21 09:14:54 UTC
(In reply to David Edmundson from comment #1)
> I cannot reproduce the results, and there isn't any other information in
> this ticket that's actionable.
> 
> If you can reliably repeat the results can you include the output of:
> 
> qdbus org.kde.KWin /Effects org.kde.kwin.Effects.activeEffects
> 
> whilst CPU is high.

Results are:
blur
contrast
fadingpopups
scale
highlightwindow
fallapart


(this is also on an external monitor on my laptop)
Comment 4 John Kizer 2024-12-01 18:55:15 UTC
Hi - can we ask you to please check if this is a reproducible issue with the latest Plasma version (6.2.4)?

Thanks!
Comment 5 Bug Janitor Service 2024-12-16 03:46:58 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 6 Bug Janitor Service 2024-12-31 03:47:39 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.