Bug 476855 - Apps crash when I screen-lock and power off the screen + desktop freezes after a few hours
Summary: Apps crash when I screen-lock and power off the screen + desktop freezes afte...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: master
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-11-11 21:47 UTC by Mark B
Modified: 2023-12-12 22:18 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark B 2023-11-11 21:47:48 UTC
SUMMARY
Running an ffmpeg encode with Shutter encoder, Shutter encoder & ffmpeg crash when I power off the screen (after locking the screen).

STEPS TO REPRODUCE
1. Login to the wayland session
2.  Start an ffmpeg encode with Shutter encoder (https://aur.archlinux.org/packages/shutter-encoder) & minimize shutter encoder.
3. Startkey+L to lock the screen
4. Power off the screen
5. After a few seconds I head the fans spin down (-> this means the encode has crashed)
6. Power on the screen
7. Unlock the screen (with password)
8. The shutter encoder & ffmpeg processes have disappeared.

OBSERVED RESULT
ffmpeg & shutter encoder gui have crashed

EXPECTED RESULT
Shutter encoder should continue working after logging out & powering off the screen.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Plasma 5.27.80 , archlinux kernel 6.6.1
(available in About System)
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0

ADDITIONAL INFORMATION:
With the X11 session it works.
Comment 1 David Edmundson 2023-11-11 22:03:14 UTC
This is a bug in shutter encoder GUI or the toolkit used there. Please report there.
Comment 2 Mark B 2023-11-11 22:20:22 UTC
(In reply to David Edmundson from comment #1)
> This is a bug in shutter encoder GUI or the toolkit used there. Please
> report there.

Just did some more testing: it also crashes with X11 (kde alpha) after the screen auto-locks & the screen powers off (but not always).

With stable KDE it WORKS FINE. Doesn't crash (Have tested many times for days). -> please confirm if you are still sure that this is downstream.
Comment 3 Mark B 2023-11-11 22:21:25 UTC
BTW Shutter encoder uses java. So this would be a bug in java?
Comment 4 Mark B 2023-11-12 19:56:24 UTC
Did some more testing:

When logging back in (from the lock screen) after a few hours (X11), the desktop is frozen (icons, kde bar, etc... are unresponsive) but I can move the mouse.

And the ffmpeg and shutter encoder processes have disappeared (they have crashed in the middle of an encoding job).

THIS PROBLEM DOESN'T EXIST with the stable plasma (I have been running ffmpeg/shutter encoder jobs for days without any issues).
Comment 5 Nate Graham 2023-11-15 21:55:15 UTC
Can you attach a backtrace of what's crashing?
Comment 6 Mark B 2023-11-16 11:39:51 UTC
(In reply to Nate Graham from comment #5)
> Can you attach a backtrace of what's crashing?
Sorry, I have downgraded to stable plasma5 and for 3 DAYS straight have been running up to 7 shutter-encoder jobs in parallel 24h/24 non-stop (and even tested playing heavy proton games at the same time to test the stability) -> it is ROCK STABLE on plasma5 (X11).

My encodings are for work & aren't finished, so I can't go back to the plasma-alpha right now.

But to make it fast for you so you can trace this very quickly:

1. Download this: https://www.shutterencoder.com/Shutter%20Encoder%2017.6%20Linux%2064bits.AppImage (or the .deb).
2. Load a video to encode in wayland (I encode to AV1).
3. Startkey+L to lock the screen
4. Power off the screen
5. After a few seconds I head the fans spin down (-> this means the encode has crashed)
6. Power on the screen
7. Unlock the screen (with password)
8. The shutter encoder & ffmpeg processes have disappeared.

(I am on full AMD zen4 + AMD rx6000 series).

-> please tell me if you can reproduce the problem. I am currently blocked with my encoding work, but if you cannot reproduce this (I am sure you will be able to), we will see how I can help you further.

Thanks!
Comment 7 Bug Janitor Service 2023-12-01 03:45:50 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 8 Nate Graham 2023-12-12 22:18:33 UTC
We need a backtrace of the crash; please re-open if you can attach it.