Bug 476917

Summary: Screen recording produces 0 byte file
Product: [Plasma] plasma-mobile Reporter: TheBrokenRail <connor24nolan>
Component: ShellAssignee: Plasma Mobile Bugs <plasma-mobile-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: carl, connor24nolan, espidev
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: postmarketOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description TheBrokenRail 2023-11-13 05:28:47 UTC
SUMMARY
If I try to record the screen using the quick action, it will only create an empty MP4 file.

STEPS TO REPRODUCE
1. Pull down the notification screen.
2. Click the "Record Screen" button.
3. Wait.
4. Click the button again to stop recording.
5. A notification will appear saying that recording was successful and there will be an empty MP4 in the Videos folder.

OBSERVED RESULT
Screen recording isn't successful, I get an empty file and this is logged:

kwin_screencast: Dropping a screencast frame because the compositor is slow
*** pw_stream_set_active called from wrong context, check thread and locking: No error information
kwin_screencast: Dropping a screencast frame because the compositor is slow
*** pw_stream_set_active called from wrong context, check thread and locking: No error information
kwin_screencast: Dropping a screencast frame because the compositor is slow
[AVIOContext @ 0xffff8c78aeb0] Statistics: 0 bytes written, 0 seeks, 0 writeouts

EXPECTED RESULT
It finishes recording successfully.

SOFTWARE/OS VERSIONS
postmarketOS: v23.06
KDE Plasma Version: This section is empty in settings.
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Comment 1 Devin Lin 2024-03-08 15:23:28 UTC
We have removed the screen recording quick setting for the time being until it is properly fixed: https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/413