hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
307 stars 49 forks source link

Error -32, No more input formats. #102

Open IgLocoXD opened 1 year ago

IgLocoXD commented 1 year ago

EDIT: Changing the bit depth output to 8 bit fixed it! Still, this didn't happen before, it was working with bit depth 10.

xdg-desktop-portal-hyprland 1.1.0-3 hyprland-git 0.29.1.r87.af15b15b-1 obs-studio 29.1.3-1 (still happens in flatpak too) Using EndeavourOS (arch based) Before I updated the system, everything was working correctly, it didn't have this issue. I could try downgrade or use GIT version, I will say later if it worked or not.

info: [pipewire] Screencast session created
info: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Desktop Audio)

info: [pipewire] Asking for desktop
info: [pipewire] desktop selected, setting up screencast
info: [pipewire] Server version: 0.3.80
info: [pipewire] Library version: 0.3.80
info: [pipewire] Header version: 0.3.72
info: [pipewire] Created stream 0x555931505d90
info: [pipewire] Stream 0x555931505d90 state: "connecting" (error: none)
info: [pipewire] Playing stream 0x555931505d90
info: [pipewire] Stream 0x555931505d90 state: "paused" (error: none)
info: [pipewire] Stream 0x555931505d90 state: "error" (error: no more input formats)
error: [pipewire] Error id:2 seq:10 res:-32 (Error desconocido -32): no more input formats
TheSunCat commented 1 year ago

I can reproduce this with these displays, no bit depth configuration (I assume it's 8bpp by default?):

Monitor eDP-2 (ID 0):
    2560x1600@120.00000 at 0x0
    description: BOE 0x0A1D (eDP-2)
    make: BOE
    model: 0x0A1D
    serial: 
    active workspace: 1 (1)
    special workspace: 0 ()
    reserved: 0 38 0 0
    scale: 1.25
    transform: 0
    focused: yes
    dpmsStatus: 1
    vrr: 1
    activelyTearing: false

Monitor DP-3 (ID 1):
    2560x1440@59.99800 at 2048x0
    description: Acer Technologies ED276U TE1EE0033900 (DP-3 via HDMI)
    make: Acer Technologies
    model: ED276U
    serial: TE1EE0033900
    active workspace: 3 (3)
    special workspace: 0 ()
    reserved: 0 38 0 0
    scale: 1.00
    transform: 0
    focused: no
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false

Here is the output printed by OBS when I try to select an output:

info: [pipewire] Asking for desktop
info: [pipewire] desktop selected, setting up screencast
info: [pipewire] Server version: 0.3.80
info: [pipewire] Library version: 0.3.80
info: [pipewire] Header version: 0.3.72
info: [pipewire] Created stream 0x56274ae41c60
info: [pipewire] Stream 0x56274ae41c60 state: "connecting" (error: none)
info: [pipewire] Playing stream 0x56274ae41c60
info: [pipewire] Stream 0x56274ae41c60 state: "paused" (error: none)
info: [pipewire] Stream 0x56274ae41c60 state: "error" (error: no more input formats)
error: [pipewire] Error id:2 seq:10 res:-32 (Unknown error -32): no more input formats

Here is the output of systemctl --user status xdg-desktop-portal-hyprland (I am not sure how to see the full log for a user unit...):

  1 ● xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
  2      Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
  3      Active: active (running) since Wed 2023-10-04 09:20:49 CEST; 7h ago
  4    Main PID: 3474 (xdg-desktop-por)
  5       Tasks: 8 (limit: 47148)
  6      Memory: 18.7M
  7         CPU: 18min 1.219s
  8      CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal-hyprland.service
  9              └─3474 /usr/lib/xdg-desktop-portal-hyprland
 10 
 11 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [screencopy]  | appid: com.obsproject.Studio
 12 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [screencopy] option cursor_mode to 2
 13 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [screencopy] option persist_mode to 2
 14 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [screencopy] unused option multiple
 15 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [screencopy] unused option types
 16 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [screencopy] restore data invalid / missing, prompting
 17 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] execAndGet: WAYLAND_DISPLAY=wayland-1 QT_QPA_PLATFORM="w
 18 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [sc] Selection: r/screen:eDP-2
 19 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [screencopy] SHAREDATA returned selection 0
 20 Oct 04 16:37:00 apg xdg-desktop-portal-hyprland[3474]: [LOG] [screencopy] Start:
TheSunCat commented 1 year ago

Additional logs when trying to screenshare from Firefox, these show up in journalctl -f and Firefox is unable to start screensharing: pipewire.log

sjoerdtimmer commented 3 months ago

It seems like setting the bit depth to 8 might be a work-around. May I ask how/where to do this?

vaxerski commented 3 months ago

if you didnt explicitly set bitdepth to 10 in your hyprland config it is 8 bit

adminy commented 1 day ago

Same here: https://logpaste.com/okpC9kZd any plans to support 10 bit screen sharing?