flathub / com.slack.Slack

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

Main window randomly unavailable when running on Wayland #159

Closed travier closed 9 months ago

travier commented 2 years ago

First, this works as expected with XWayland in a KDE Plasma Wayland session on Fedora 35.

But if I try to run it Wayland only via:

GDK_BACKEND=wayland flatpak run --socket=wayland com.slack.Slack --enable-features=UseOzonePlatform --ozone-platform=wayland

I get no main window but Slack itself appears to be working and connecting as I can see the status changing in the application title in the KDE panel. If I try again several times, I randomly get a working main window that as no major issue as far as I could see.

So this looks like a race condition somewhere thus I'm filling this one here to get suggestions.

Thanks for the good work maintaining this Flatpak!

travier commented 2 years ago

Console output:

[2 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/extra/lib/slack/slack --type=zygote --enable-crashpad
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.
[2:1215/111040.374297:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[52:1215/111040.439185:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is egl, ANGLE is 
[52:1215/111040.442146:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
LaunchProcess: failed to execvp:
xdg-settings
[2:1215/111040.484826:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:1215/111040.484880:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:1215/111040.484916:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:1215/111040.504099:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111040.504185:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111042.781443:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111042.814219:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111042.814297:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111044.471032:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111044.471156:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111045.117455:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111045.117630:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111045.283458:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:1215/111045.283621:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
Gkr-Message: 11:11:10.466: secret service operation failed: org.freedesktop.DBus.Error.ServiceUnknown
pedrovanzella commented 2 years ago

Same here, except I can only get it to load on xwayland with --disable-gpu (see #154). Using nvidia drivers, btw.

alvarlagerlof commented 2 years ago

Same here, except I can only get it to load on xwayland with --disable-gpu (see #154). Using nvidia drivers, btw.

Even this does not work for me.

evan-a-a commented 9 months ago

Closing due to age.