flathub / com.slack.Slack

https://flathub.org/apps/details/com.slack.Slack
35 stars 36 forks source link

Screensharing does not work on Wayland - Ubuntu 21.10 (Possible regression) #150

Closed baarkerlounger closed 9 months ago

baarkerlounger commented 2 years ago

Using the Flathub Flatpak build of Slack (4.20.0) and Ubuntu 21.10 (Gnome 40.4, Wayland) screensharing on Slack no longer works. I believe (but haven't confirmed) this was working on Ubuntu 21.04 so this may be a regression?

Pipewire version is 0.3.32.

WhyNotHugo commented 2 years ago

This was working on a previous version. Kinda busy these day, but will try and test if the latest version works for me or not (sorry, I rarely use screen casting in slack).

On Thu, 4 Nov 2021, at 14:55, Daniel Baark wrote:

Using the Flathub Flatpak build of Slack (4.20.0) and Ubuntu 21.10 (Gnome 40.4, Wayland) screensharing on Slack no longer works. I believe (but haven't confirmed) this was working on Ubuntu 21.04 so this may be a regression?

Pipewire version is 0.3.32.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/flathub/com.slack.Slack/issues/150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSNO4ZSHMP52ZLF4TA4NLUKKGE3ANCNFSM5HLP6DAQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Hugo Osvaldo Barrera

cacack commented 2 years ago

I'm having the same overall issue (screen sharing not working) in a fresh install of Fedora 35 (Gnome 41, pipewire v0.3.43) using the flatpak build of Slack v4.23.0. Still orienting myself with Wayland (former XFCE user), but when in a huddle and go to share my screen, the flatpak build does pull up the screen sharing "permissions" dialog but the buttons don't do anything and the screen is never actually shared.

I'm happy to help troubleshoot and provide info as best I can, but will likely fall back to XFCE (and Xorg) soon as I need this ability for my livelyhood.

lestephane commented 1 year ago

Seeing how this issue seems to be ignored, I wanted to add more info, in order to clarify the requirements and command-line flags required for this to work, because the full picture is still unclear to me. Hopefully this will help others.

Basically, I'm unable to get screensharing to work on Waynlad on Ubuntu 22.04 either. The app crashes.

I used Flatseal to reset permissions to the defaults, to make sure I start from a sane base, then I tried to add ALL flags that I know of (old and new style) to use Wayland and screen-sharing, and I also added to the command-line --allow=devel to get a better crash information.

I run in my terminal:

$ /usr/bin/flatpak run --socket=wayland --allow=devel \
  --branch=stable --arch=x86_64 --command=slack com.slack.Slack -- \
    --enable-webrtc-pipewire-capturer --ozone-platform-hint=auto \
    --enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapture

And get the following output while Slack is starting up (I'm adding it here because I don't know what may be relevant to the problem at hand yet)

[2:0502/114945.928742:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Initializing local storage instance
(electron) Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. Crash reports will be uploaded gzipped, which most crash reporting servers support.
Gtk-Message: 11:49:46.631: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:49:46.632: Failed to load module "canberra-gtk-module"
[2:0502/114946.656388:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0502/114946.656659:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Gkr-Message: 11:49:46.689: secret service operation failed: org.freedesktop.DBus.Error.ServiceUnknown
LaunchProcess: failed to execvp:
xdg-settings
[2:0502/114946.797959:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0502/114946.798251:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0502/114946.798452:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0502/114948.016217:ERROR:bus.cc(562)] Failed to get the ownership of org.kde.StatusNotifierItem-2-1: org.freedesktop.DBus.Error.ServiceUnknown
[2:0502/114948.027626:ERROR:browser_main_loop.cc(273)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:0502/114948.028624:ERROR:browser_main_loop.cc(273)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:0502/114950.380106:ERROR:browser_main_loop.cc(273)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[50:0502/114950.396425:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[2:0502/114950.462241:ERROR:browser_main_loop.cc(273)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:0502/114950.463088:ERROR:browser_main_loop.cc(273)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[50:0502/114956.325911:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[50:0502/114956.329330:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

Then I run the audio, video, and screen sharing test in Slack, and get the additional following output in the terminal

[OpenH264] this = 0x0x1ad408874fc0, Warning:Actual input framerate 0.000000 is different from framerate in setting 15.000000, suggest to use other rate control modes
[0502/115048.718442:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0502/115048.718556:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0502/115048.722433:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0502/115048.722518:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0502/115048.773371:ERROR:directory_reader_posix.cc(42)] opendir /home/lestephane/.var/app/com.slack.Slack/config/Slack/Crashpad/attachments/d443d031-8f84-453c-aeee-bf27aae31833: No such file or directory (2)

Is it a problem with Ubuntu? Or the Flatpak? Or the Slack project? What am I missing?

bhack commented 1 year ago

Slack 4.34.115 changelog

Linux users on Wayland noticed that screensharing in huddles would crash the app as soon as sharing ended. No good deed goes unpunished, they say. We're working to change that to "No bad bug goes unfixed." Please resume sharing with impunity.

evan-a-a commented 9 months ago

Closing, upstream issue.

devurandom commented 9 months ago

Slack 4.34.115 changelog

Linux users on Wayland noticed that screensharing in huddles would crash the app as soon as sharing ended. No good deed goes unpunished, they say. We're working to change that to "No bad bug goes unfixed." Please resume sharing with impunity.

@bhack Does that mean the issue is fixed when using version https://github.com/flathub/com.slack.Slack/commit/e903031295179851ffb78312f1bcc96d27b17447, https://github.com/flathub/com.slack.Slack/commit/4a99861e60941cdf8fa7a830f8a9c9ec77d05c58, https://github.com/flathub/com.slack.Slack/commit/be9f31411a86a56a853f604dc11c765c7efc3d7a or https://github.com/flathub/com.slack.Slack/commit/3a012f6da5cde623d28261d9a8864364c3c0c6e2 of this Flatpak? Did you test / can you confirm?

bhack commented 9 months ago

@devurandom No a final upstream solution isn't in any release. Check https://github.com/flathub/com.slack.Slack/issues/101#issuecomment-1838579367