question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashes when opening from tray on Wayland #345

See original GitHub issue

Steps to reproduce

  1. Run the app on Wayland with flatpak run im.riot.Riot --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
  2. Close it to the tray
  3. Reopen it

Outcome

What did you expect?

The app to show up

What happened instead?

It crashed

Log:

/home/julian/.var/app/im.riot.Riot/config/Element exists: yes
/home/julian/.var/app/im.riot.Riot/config/Riot exists: no
LaunchProcess: failed to execvp:
xdg-settings
[3:0904/015329.899533: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:0904/015329.899645: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
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
Changing application language to en
Fetching translation json for locale: en
[51:0904/015329.960830:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is egl, ANGLE is 
Resetting the UI components after locale change
Resetting the UI components after locale change
[3:0904/015330.078693:ERROR:browser_main_loop.cc(270)] Gtk: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
[3:0904/015330.078791:ERROR:browser_main_loop.cc(270)] Gtk: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
[3:0904/015341.056804:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@32: error 0: gtk_shell::get_gtk_surface already requested

/app/bin/element: line 10:     3 Trace/breakpoint trap   (core dumped) env TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}" zypak-wrapper /app/Element/element-desktop $FLAGS "$@"

The opening attempt and crash is:

[3:0904/015341.056804:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@32: error 0: gtk_shell::get_gtk_surface already requested

/app/bin/element: line 10:     3 Trace/breakpoint trap   (core dumped) env TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}" zypak-wrapper /app/Element/element-desktop $FLAGS "$@"

Operating system

Arch Linux, fully up-to-date

Application version

Element version: 1.11.4 Olm version: 3.2.12

How did you install the app?

Flatpak

Homeserver

matrix.org

Will you send logs?

Yes

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
t3chguycommented, Sep 5, 2022

Could this be an Electron issue?

It is either an Electron or a Flatpak issue, given Electron handles all of the tray integration handling.

0reactions
julianfairfaxcommented, Sep 11, 2022

Try using the official deb release, on a deb env running wayland with no flatpak involved at all

Here’s the error log from that:

element-desktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
/home/martin/.config/Element exists: yes
/home/martin/.config/Riot exists: no
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
[4642:0911/185759.632748:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is egl, ANGLE is 
Fetching translation json for locale: en_EN
Changing application language to en-gb,en
Fetching translation json for locale: en-gb
Could not fetch translation json for locale: 'en-gb' Error: Cannot find module './i18n/strings/en_GB.json'
Require stack:
- /opt/Element/resources/app.asar/lib/language-helper.js
- /opt/Element/resources/app.asar/lib/tray.js
- /opt/Element/resources/app.asar/lib/settings.js
- /opt/Element/resources/app.asar/lib/ipc.js
- /opt/Element/resources/app.asar/lib/electron-main.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at AppLocalization.fetchTranslationJson (/opt/Element/resources/app.asar/lib/language-helper.js:87:20)
    at /opt/Element/resources/app.asar/lib/language-helper.js:100:39
    at Array.forEach (<anonymous>)
    at AppLocalization.setAppLocale (/opt/Element/resources/app.asar/lib/language-helper.js:99:17) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/Element/resources/app.asar/lib/language-helper.js',
    '/opt/Element/resources/app.asar/lib/tray.js',
    '/opt/Element/resources/app.asar/lib/settings.js',
    '/opt/Element/resources/app.asar/lib/ipc.js',
    '/opt/Element/resources/app.asar/lib/electron-main.js',
    undefined
  ]
}
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-gb,en
Fetching translation json for locale: en-gb
Could not fetch translation json for locale: 'en-gb' Error: Cannot find module './i18n/strings/en_GB.json'
Require stack:
- /opt/Element/resources/app.asar/lib/language-helper.js
- /opt/Element/resources/app.asar/lib/tray.js
- /opt/Element/resources/app.asar/lib/settings.js
- /opt/Element/resources/app.asar/lib/ipc.js
- /opt/Element/resources/app.asar/lib/electron-main.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at AppLocalization.fetchTranslationJson (/opt/Element/resources/app.asar/lib/language-helper.js:87:20)
    at /opt/Element/resources/app.asar/lib/language-helper.js:100:39
    at Array.forEach (<anonymous>)
    at AppLocalization.setAppLocale (/opt/Element/resources/app.asar/lib/language-helper.js:99:17) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/Element/resources/app.asar/lib/language-helper.js',
    '/opt/Element/resources/app.asar/lib/tray.js',
    '/opt/Element/resources/app.asar/lib/settings.js',
    '/opt/Element/resources/app.asar/lib/ipc.js',
    '/opt/Element/resources/app.asar/lib/electron-main.js',
    undefined
  ]
}
Fetching translation json for locale: en
Resetting the UI components after locale change
[4599:0911/185832.873105:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@32: error 0: gtk_shell::get_gtk_surface already requested

[1]    4599 trace trap  element-desktop --enable-features=UseOzonePlatform,WaylandWindowDecorationselement-desktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
/home/martin/.config/Element exists: yes
/home/martin/.config/Riot exists: no
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
[4642:0911/185759.632748:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is egl, ANGLE is 
Fetching translation json for locale: en_EN
Changing application language to en-gb,en
Fetching translation json for locale: en-gb
Could not fetch translation json for locale: 'en-gb' Error: Cannot find module './i18n/strings/en_GB.json'
Require stack:
- /opt/Element/resources/app.asar/lib/language-helper.js
- /opt/Element/resources/app.asar/lib/tray.js
- /opt/Element/resources/app.asar/lib/settings.js
- /opt/Element/resources/app.asar/lib/ipc.js
- /opt/Element/resources/app.asar/lib/electron-main.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at AppLocalization.fetchTranslationJson (/opt/Element/resources/app.asar/lib/language-helper.js:87:20)
    at /opt/Element/resources/app.asar/lib/language-helper.js:100:39
    at Array.forEach (<anonymous>)
    at AppLocalization.setAppLocale (/opt/Element/resources/app.asar/lib/language-helper.js:99:17) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/Element/resources/app.asar/lib/language-helper.js',
    '/opt/Element/resources/app.asar/lib/tray.js',
    '/opt/Element/resources/app.asar/lib/settings.js',
    '/opt/Element/resources/app.asar/lib/ipc.js',
    '/opt/Element/resources/app.asar/lib/electron-main.js',
    undefined
  ]
}
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-gb,en
Fetching translation json for locale: en-gb
Could not fetch translation json for locale: 'en-gb' Error: Cannot find module './i18n/strings/en_GB.json'
Require stack:
- /opt/Element/resources/app.asar/lib/language-helper.js
- /opt/Element/resources/app.asar/lib/tray.js
- /opt/Element/resources/app.asar/lib/settings.js
- /opt/Element/resources/app.asar/lib/ipc.js
- /opt/Element/resources/app.asar/lib/electron-main.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at AppLocalization.fetchTranslationJson (/opt/Element/resources/app.asar/lib/language-helper.js:87:20)
    at /opt/Element/resources/app.asar/lib/language-helper.js:100:39
    at Array.forEach (<anonymous>)
    at AppLocalization.setAppLocale (/opt/Element/resources/app.asar/lib/language-helper.js:99:17) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/Element/resources/app.asar/lib/language-helper.js',
    '/opt/Element/resources/app.asar/lib/tray.js',
    '/opt/Element/resources/app.asar/lib/settings.js',
    '/opt/Element/resources/app.asar/lib/ipc.js',
    '/opt/Element/resources/app.asar/lib/electron-main.js',
    undefined
  ]
}
Fetching translation json for locale: en
Resetting the UI components after locale change
[4599:0911/185832.873105:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@32: error 0: gtk_shell::get_gtk_surface already requested

[1]    4599 trace trap  element-desktop --enable-features=UseOzonePlatform,WaylandWindowDecorations

The error is the same

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashes when opening from tray on Wayland #6112 - GitHub
I have searched open and closed issues for duplicates. I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package....
Read more >
Gnome Crashes when opening secondary windows in Wayland
When opening such a secondary window, there is about a 90% chance that Gnome freezes and becomes unusable. If I am lucky, then...
Read more >
Flameshot crashes when running on Wayland session
> When I start it from the Gnome starter icon, nothing happens. It starts in tray mode by default. On Gnome you must...
Read more >
gnome-shell crashes when mounting, umounting usb drives
It might be the places-status-indicator extension. My gnome-shell 3.26.2 session crashes (under Wayland) when mounting/unmounting an ...
Read more >
Grapejuice - Troubleshooting - GitLab
Game crashing with “An unexpected error occurred and Roblox needs to quit. ... Open the Grapejuice app, select Player on the left panel,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found