SpacingBat3 / WebCord

A Discord and SpaceBar :electron:-based client implemented without Discord API.
MIT License
1.88k stars 94 forks source link

Screenshare keeps loading while sharing on wayland #407

Closed shasherazi closed 1 year ago

shasherazi commented 1 year ago

Aknowledgements

Operating System / Platform

🐧️ Linux

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

v24.0.0-beta.3

Application version

v4.2.0

Bug description

When sharing screen, the screen share tab just keeps on loading like this image

These are the logs if they're any help

❯ webcord
Cannot use import statement outside a module
[UPDATE] Application is up-to-date!
[2119:0411/232227.790534:ERROR:shared_screencast_stream.cc(236)] PipeWire stream state error: no more input formats
[2119:0411/232227.790566:ERROR:shared_screencast_stream.cc(199)] PipeWire remote error: no more input formats
[2151:0411/232235.331405:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[2151:0411/232235.343081:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[2151:0411/232235.389471:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

Additional context

I'm using Hyprland

SpacingBat3 commented 1 year ago

What portals/program were you using as a source picker for screen share? Does any dialog pop up?

shasherazi commented 1 year ago

This is the output from hyprctl clients relevant to the picker

Window f458d220 -> MainPicker:
    mapped: 1
    hidden: 0
    at: 218,68
    size: 500,290
    workspace: 6 (6)
    floating: 1
    monitor: 0
    class: hyprland-share-picker
    title: MainPicker
    initialClass: hyprland-share-picker
    initialTitle: MainPicker
    pid: 22749
    xwayland: 0
    pinned: 0
    fullscreen: 0
    fullscreenmode: 0
    fakefullscreen: 0
    grouped: 0
    swallowing: 0

This is what the picker looks like image

beh-10257 commented 1 year ago

well the same exact bug is present in brave so I guess this is a chromium issue

shasherazi commented 1 year ago

Ah ok, my bad. I thought it was different coz I couldn't even get a black screen. So we'll have to wait for the chromium bug to be fixed? Can't roll back some electron versions or something?