flathub / im.riot.Riot

https://flathub.org/apps/details/im.riot.Riot
33 stars 45 forks source link

Unable to launch Element #290

Open TheEvilSkeleton opened 2 years ago

TheEvilSkeleton commented 2 years ago

Since https://github.com/flathub/im.riot.Riot/commit/e71df6d1c84f8d96ed787675f3e74390febca4bc (OSTree commit 7028d5f94f98005684c0e9943dc9421ad14d3c0645e7ad5a960c71c489a4d97d), I am unable to launch Element. When running in the terminal, I get this error:

❯ flatpak run im.riot.Riot
/var/home/TheEvilSkeleton/.var/app/im.riot.Riot/config/Element exists: yes
/var/home/TheEvilSkeleton/.var/app/im.riot.Riot/config/Riot exists: no
LaunchProcess: failed to execvp:
xdg-settings
Gtk-Message: 22:20:49.556: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:20:49.556: Failed to load module "canberra-gtk-module"
[3:0831/222049.580285:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:0831/222049.580389:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Couldn't find webapp files in any of: 
    /app/Element/resources/app.asar/webapp.asar
    /app/Element/resources/webapp.asar
    /app/Element/resources/app.asar/webapp
    /app/Element/resources/webapp
App setup failed: exiting Error: Failed to find webapp files
    at /app/Element/resources/app.asar/lib/electron-main.js:145:15
    at Generator.throw (<anonymous>)
    at rejected (/app/Element/resources/app.asar/lib/electron-main.js:43:65)

Rebooting did not fix the issue. However, downgrading to the previous commit made it work again:

flatpak update --user --commit=aaff316cf359cfae76dc95c03df9841ecaee29bde522d38b1f5bddc38fc6f7e1 im.riot.Riot

I'm using Fedora 37 Silverblue on Wayland.

SISheogorath commented 2 years ago

I think the commit you have linked is the wrong one. There were 2 releases yesterday, you linked the second one, but that has the following OSTree commit: a12ceea95a7a2c0a69b0a4d07f3c963a4cc9adf55de041a2ebc0322a908e3dfd

7028d5f94f98005684c0e9943dc9421ad14d3c0645e7ad5a960c71c489a4d97d is the parent commit, which has the issue you mentioned, as pointed out in the linked issue from upstream https://github.com/vector-im/element-web/issues/23177

eternaltyro commented 1 year ago

This happened to me today with v1.11.24 -

Element version: 1.11.24
Olm version: 3.2.12

Flatpak info:

Element - Create, share, communicate, chat and call securely, and bridge to
other apps

          ID: im.riot.Riot
         Ref: app/im.riot.Riot/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.11.24
     License: Apache-2.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 301.5 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: 33a595252d302821f56ab0de783334273df3a4d317c70884a8444c925628ce34
      Parent: 5ac3b09697d656fe3b4ff88e5f26bdca532f7e01cc2c94b0197f7e5700510623
     Subject: fix: Add workaround to disable broken search (40ff7a3c)
        Date: 2023-03-07 19:57:48 +0000

When I run flatpak run im.riot.Riot :

[3:0313/203426.833233: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
/home/eternaltyro/.var/app/im.riot.Riot/config/Element exists: yes
/home/eternaltyro/.var/app/im.riot.Riot/config/Riot exists: no
LaunchProcess: failed to execvp:
xdg-settings
[3:0313/203428.159189: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
[3:0313/203428.159251: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
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
[52:0313/203428.243063:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is egl, ANGLE is 
Fetching translation json for locale: en_EN
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
Heus-Sueh commented 11 months ago

I confirm that I cannot run element on Fedora Silverblue 39

❯ flatpak run im.riot.Riot                                    
[3:1218/151337.065640:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
/var/home/heus/.var/app/im.riot.Riot/config/Element exists: no
/var/home/heus/.var/app/im.riot.Riot/config/Riot exists: no
LaunchProcess: failed to execvp:
xdg-settings
[3:1218/151337.481995:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:1218/151337.482032:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Resetting the UI components after locale change
[53:1218/151337.619009:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[53:1218/151337.619036:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[53:1218/151337.619120:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[53:1218/151337.619136:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[53:1218/151337.619145:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[53:1218/151337.619152:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[53:1218/151337.619212:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[3:1218/151337.626835:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[87:1218/151337.693708:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[87:1218/151337.693730:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[87:1218/151337.693810:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[87:1218/151337.693832:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[87:1218/151337.693842:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[87:1218/151337.693860:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[87:1218/151337.693915:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[75:1218/151337.696883:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[3:1218/151337.699914:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[96:1218/151337.769114:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[96:1218/151337.769145:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[96:1218/151337.769241:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[96:1218/151337.769258:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[96:1218/151337.769267:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[96:1218/151337.769275:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[96:1218/151337.769328:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[3:1218/151337.776256:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[75:1218/151337.817503:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Changing application language to en-us,en,en,en
Fetching translation json for locale: en-us
Could not fetch translation json for locale: 'en-us' Error: Cannot find module './i18n/strings/en_US.json'
Require stack:
- /app/Element/resources/app.asar/lib/language-helper.js
- /app/Element/resources/app.asar/lib/tray.js
- /app/Element/resources/app.asar/lib/settings.js
- /app/Element/resources/app.asar/lib/ipc.js
- /app/Element/resources/app.asar/lib/electron-main.js
- 
    at node:internal/modules/cjs/loader:1084:15
    at Function._resolveFilename (node:electron/js2c/browser_init:2:116646)
    at node:internal/modules/cjs/loader:929:27
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at AppLocalization.fetchTranslationJson (/app/Element/resources/app.asar/lib/language-helper.js:86:20)
    at /app/Element/resources/app.asar/lib/language-helper.js:99:39
    at Array.filter (<anonymous>)
    at AppLocalization.setAppLocale (/app/Element/resources/app.asar/lib/language-helper.js:98:39) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/Element/resources/app.asar/lib/language-helper.js',
    '/app/Element/resources/app.asar/lib/tray.js',
    '/app/Element/resources/app.asar/lib/settings.js',
    '/app/Element/resources/app.asar/lib/ipc.js',
    '/app/Element/resources/app.asar/lib/electron-main.js',
    undefined
  ]
}
Fetching translation json for locale: en
Fetching translation json for locale: en
Fetching translation json for locale: en
Resetting the UI components after locale change

the app appears in the dock and tray but when trying to open the app from both, nothing happens image image


My System Details

Hardware Information:

Software Information: