Crash when screen sharing in Wayland
Version, Distribution, Desktop Environment: Pipewire 1.0.3.22, Arch Linux, Sway (Wlroots)
Description of Problem: Whenever I try screen sharing in either Firefox or Chromium, Pipewire crashes.
How Reproducible: Every time
Steps to Reproduce:
- Start screen sharing in Firefox or Chromium
Actual Results:
Nothing happens.
journalctl --user -u pipewire
gives:
Mar 02 08:12:45 bernhard-thinkpad systemd[1223]: pipewire.service: Succeeded.
Mar 02 08:12:45 bernhard-thinkpad systemd[1223]: Stopped Multimedia Service.
Mar 02 08:12:45 bernhard-thinkpad systemd[1223]: Started Multimedia Service.
Mar 02 08:13:20 bernhard-thinkpad systemd[1223]: Stopping Multimedia Service...
Mar 02 08:13:20 bernhard-thinkpad systemd[1223]: pipewire.service: Succeeded.
Mar 02 08:13:20 bernhard-thinkpad systemd[1223]: Stopped Multimedia Service.
Mar 02 08:13:20 bernhard-thinkpad systemd[1223]: Started Multimedia Service.
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: params Spa:Enum:ParamId:EnumFormat: 0:0 Invalid argument (input format (no more input formats))
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Object: size 168, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 2 (Spa:Enum:MediaType:video)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 1 (Spa:Enum:MediaSubtype:raw)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Choice: type Spa:Enum:Choice:Enum, flags 00000000 36 4
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 8 (Spa:Enum:VideoFormat:BGRx)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 7 (Spa:Enum:VideoFormat:RGBx)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 11 (Spa:Enum:VideoFormat:RGBA)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 8 (Spa:Enum:VideoFormat:BGRx)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 12 (Spa:Enum:VideoFormat:BGRA)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Rectangle 1x1
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Rectangle 1x1
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Rectangle -1x-1
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: params Spa:Enum:ParamId:EnumFormat: 1:0 Invalid argument (output format (no more input formats))
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Object: size 160, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 2 (Spa:Enum:MediaType:video)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 1 (Spa:Enum:MediaSubtype:raw)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Id 25 (Spa:Enum:VideoFormat:GRAY8)
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Rectangle 640x360
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Choice: type Spa:Enum:Choice:Enum, flags 00000000 40 8
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Fraction 15/1
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Fraction 15/1
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: Fraction 30/1
Mar 02 08:13:50 bernhard-thinkpad pipewire[52033]: (37.0 -> 41.0) negotiating -> error (no more input formats)
Mar 02 08:13:50 bernhard-thinkpad pipewire-media-session[52036]: can't link 37:38 -> 41:42: no more input formats
Mar 02 08:13:50 bernhard-thinkpad pipewire-media-session[52036]: error id:47 seq:118 res:-22 (Invalid argument): no more input formats```
Expected Results:
Screen sharing works.
Additional Info Eg. `pw-dump > file` (As Attachment Please):
[pipewire.log](/uploads/0b84b0d8bab56a07de74c0a2a2af35be/pipewire.log)