flathub / com.slack.Slack

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

flatpak Slack stopped working on Ubuntu 22.04 #188

Closed aplatypus closed 9 months ago

aplatypus commented 1 year ago

The Slack flatpak has been working just fine on this PC for a few years now. This morning it failed with the output below.

The URL it complains abotu works fine in firefox:

The messages I can see seem to show a problem with the runtime environment. Some flatpak apps try to use things not explicitly set-up by the app, so it is unclear as to what is relevant from the messges below.

Hopefully someone can point me in the right direction. Vesion numbers, etc are below.

console output

 $  flatpak run com.slack.Slack
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
(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:0119/151424.899339: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:0119/151424.899390: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: 15:14:25.037: secret service operation failed: org.freedesktop.DBus.Error.ServiceUnknown
LaunchProcess: failed to execvp:
xdg-settings
[2:0119/151425.124885: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:0119/151425.124941: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:0119/151425.124955: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:0119/151426.268669:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2:0119/151426.269165:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[50:0119/151426.283285:ERROR:angle_platform_impl.cc(43)] Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[50:0119/151426.283337:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[50:0119/151426.283351:ERROR:gl_display.cc(920)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[50:0119/151426.290296:ERROR:angle_platform_impl.cc(43)] Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[50:0119/151426.290321:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[50:0119/151426.290335:ERROR:gl_display.cc(920)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[50:0119/151426.290365:ERROR:gl_ozone_egl.cc(23)] GLDisplayEGL::Initialize failed.
[50:0119/151426.292631:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
(node:2) electron: Failed to load URL: https://app.slack.com/client/TKAGT5HU6 with error: ERR_NAME_NOT_RESOLVED
(Use `slack --trace-warnings ...` to show where the warning was created)
[91:0119/151426.508138:ERROR:angle_platform_impl.cc(43)] Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[91:0119/151426.508192:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[91:0119/151426.508207:ERROR:gl_display.cc(920)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[91:0119/151426.514319:ERROR:angle_platform_impl.cc(43)] Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[91:0119/151426.514342:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[91:0119/151426.514355:ERROR:gl_display.cc(920)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[91:0119/151426.514369:ERROR:gl_ozone_egl.cc(23)] GLDisplayEGL::Initialize failed.
[91:0119/151426.516375:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[96:0119/151426.675991:ERROR:command_buffer_proxy_impl.cc(325)] GPU state invalid after WaitForGetOffsetInRange.
(node:2) electron: Failed to load URL: https://app.slack.com/client/TKAGT5HU6 with error: ERR_NAME_NOT_RESOLVED
(node:2) electron: Failed to load URL: https://fourtel.slack.com/help/requests/new?crash_report=1 with error: ERR_NAME_NOT_RESOLVED
(node:2) electron: Failed to load URL: https://app.slack.com/client/TKAGT5HU6 with error: ERR_NAME_NOT_RESOLVED
(node:2) electron: Failed to load URL: https://fourtel.slack.com/help/requests/new?crash_report=1 with error: ERR_NAME_NOT_RESOLVED
(node:2) electron: Failed to load URL: https://app.slack.com/client/TKAGT5HU6 with error: ERR_NAME_NOT_RESOLVED
(node:2) electron: Failed to load URL: https://app.slack.com/client/TKAGT5HU6 with error: ERR_NAME_NOT_RESOLVED
(node:2) electron: Failed to load URL: https://app.slack.com/client/TKAGT5HU6 with error: ERR_NAME_NOT_RESOLVED

details

Slack

Slack                             com.slack.Slack                                 4.29.149             stable
    x86_64 flathub system       com.slack.Slack/x86_64/stable           b95d24a8a354  -         5.4 MB      

O/s

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy
cohnt commented 1 year ago

I'm also experiencing this issue. It's inconsistent -- sometimes it works, sometimes it doesn't.

hadess commented 1 year ago

I've seen the same problem on Fedora 38 (it worked fine with the same version in Fedora 37), and the problem only happens when using the Wayland backend in Slack.

WAYLAND_DISPLAY= flatpak run com.slack.Slack should work.

hadess commented 1 year ago

I've seen the same problem on Fedora 38 (it worked fine with the same version in Fedora 37), and the problem only happens when using the Wayland backend in Slack.

If I enable "running in the background" then the Wayland version works. I'm guessing it gets killed by flatpak after not registering for a little bit of time. This might be due to the new background service monitor introduced in xdg-desktop-portal 1.16.0 as that's something that got upgraded between f37 and f38.

evan-a-a commented 9 months ago

Slack is using X11/Xwayland for now, so this should no longer be an issue.