Bug 499903

Summary: screen record not working fedora kde plasma
Product: [Plasma] plasmashell Reporter: Manuel <manuelcam.contacto>
Component: Activities in generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: major CC: ivan.cukic, ngompa, nicolas.fella
Priority: NOR Keywords: usability
Version First Reported In: 6.3.0   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Manuel 2025-02-12 17:43:23 UTC
STEPS TO REPRODUCE
1. Use KDE Plasma 6.3.0 on Fedora
2. Try screen sharing or recording the hole screen
3. Notice it dosn't work

OBSERVED RESULT
You can't share/record the screen

EXPECTED RESULT
You can share/record the screen

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.3.0 (I think)
Qt Version: 6.8.2
Comment 1 Nicolas Fella 2025-02-12 17:55:43 UTC
Which recording application are you using?
Comment 2 Manuel 2025-02-12 18:00:59 UTC
(In reply to Nicolas Fella from comment #1)
> Which recording application are you using?

I've tried in different apps, ArmCord, OBS Studio, Discord (the app) and Discord in the browser (Brave and Firefox)
Comment 3 Manuel 2025-02-12 21:18:13 UTC
The problem happend in different apps, ArmCord, OBS Studio, Discord (the app) and Discord in the browser (Brave and Firefox). I've also tried restarting the system
Comment 4 Manuel 2025-02-12 22:38:32 UTC
After making a test on VM it seems that bug only happens on Fedora 40,, but not on Fedora 41
Comment 5 Nicolas Fella 2025-02-14 14:05:15 UTC
I can reproduce in a Fedora 40 VM with Spectacle

Feb 14 09:01:07 localhost-live kwin_wayland[1708]: kwin_wayland_drm: EglGbmLayerSurface::importWithCpu: failed to get a target dumb buffer
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: VA-API version 1.21.0
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: Trying to open /usr/lib64/dri-nonfree/vmwgfx_drv_video.so
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: Trying to open /usr/lib64/dri-freeworld/vmwgfx_drv_video.so
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: Trying to open /usr/lib64/dri/vmwgfx_drv_video.so
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: va_openDriver() returns -1
Feb 14 09:01:07 localhost-live spectacle[2798]: kpipewire_record_logging: VAAPI: Failed to initialize display
Feb 14 09:01:07 localhost-live spectacle[2798]: kpipewire_record_logging: DRM device not found
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: VA-API version 1.21.0
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: Trying to open /usr/lib64/dri-nonfree/vmwgfx_drv_video.so
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: Trying to open /usr/lib64/dri-freeworld/vmwgfx_drv_video.so
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: Trying to open /usr/lib64/dri/vmwgfx_drv_video.so
Feb 14 09:01:07 localhost-live spectacle[2798]: libva info: va_openDriver() returns -1
Feb 14 09:01:07 localhost-live spectacle[2798]: kpipewire_record_logging: VAAPI: Failed to initialize display
Feb 14 09:01:07 localhost-live spectacle[2798]: kpipewire_record_logging: DRM device not found
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context: params Spa:Enum:ParamId:EnumFormat: 0:0 Invalid argument (input format (no more input formats))
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context: Object: size 240, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 2        (Spa:Enum:MediaType:video)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 1        (Spa:Enum:MediaSubtype:raw)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 7        (Spa:Enum:VideoFormat:RGBx)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Rectangle 1x1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Rectangle 1x1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Rectangle -1x-1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Fraction 0/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 60/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 1/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 60/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:modifier (131074), flags 00000008
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Long 72057594037927935
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context: Object: size 216, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 2        (Spa:Enum:MediaType:video)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 1        (Spa:Enum:MediaSubtype:raw)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 7        (Spa:Enum:VideoFormat:RGBx)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Rectangle 1x1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Rectangle 1x1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Rectangle -1x-1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Fraction 0/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 60/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 1/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 60/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context: params Spa:Enum:ParamId:EnumFormat: 1:0 Invalid argument (output format (no more input formats))
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context: Object: size 272, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 2        (Spa:Enum:MediaType:video)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 1        (Spa:Enum:MediaSubtype:raw)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Rectangle 1280x728
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Fraction 0/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 60/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 1/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 60/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Enum, flags 00000000 28 4
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Id 12       (Spa:Enum:VideoFormat:BGRA)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Id 12       (Spa:Enum:VideoFormat:BGRA)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Id 8        (Spa:Enum:VideoFormat:BGRx)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:modifier (131074), flags 00000018
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Enum, flags 00000000 48 8
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Long 72057594037927935
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Long 72057594037927935
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Long 0
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Long 72057594037927935
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context: Object: size 208, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 2        (Spa:Enum:MediaType:video)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Id 1        (Spa:Enum:MediaSubtype:raw)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Rectangle 1280x728
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Fraction 0/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 60/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 1/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Fraction 60/1
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:     Choice: type Spa:Enum:Choice:Enum, flags 00000000 28 4
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Id 12       (Spa:Enum:VideoFormat:BGRA)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Id 12       (Spa:Enum:VideoFormat:BGRA)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.context:       Id 8        (Spa:Enum:VideoFormat:BGRx)
Feb 14 09:01:07 localhost-live pipewire[1718]: pw.link: (68.0.0 -> 40.0.0) negotiating -> error (no more input formats) (configure-configure)
Comment 6 Nicolas Fella 2025-02-14 14:43:06 UTC
That was testing with a live 40 system, which has a very old Plasma.

On an up-to-date 40 it still does not work, but there Spectacle doesnt even offer recording.

Trying to record with OBS Studio prints

Feb 14 15:40:07 vbox xdg-desktop-portal-kde[1658]: xdp-kde-screencast: zkde_screencast_unstable_v1 does not seem to be available
Comment 7 Nicolas Fella 2025-02-14 15:59:43 UTC
This is caused by Fedora 40 having too old Pipewire for KWin 6.3. It should be fixed in Fedora soon