Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flickering with xwayland and no window on native wayland (nvidia) #1364

Closed
zjeffer opened this issue Dec 2, 2023 · 4 comments
Closed

Flickering with xwayland and no window on native wayland (nvidia) #1364

zjeffer opened this issue Dec 2, 2023 · 4 comments
Labels
T-Defect X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere

Comments

@zjeffer
Copy link

zjeffer commented Dec 2, 2023

Steps to reproduce

When running with xwayland, I get the same issue as this one: #1327, but I'm not using flatpack and I'm using the latest electron package (https://archlinux.org/packages/extra/x86_64/electron25/).

When running with native wayland, like this: element-desktop --ozone-platform-hint=wayland --ozone-platform=wayland, no window appears and I get the following console output:

/home/zjeffer/.config/Element exists: yes
/home/zjeffer/.config/Riot exists: no
[373720:1202/123622.436927:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[373720:1202/123622.436967:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property
[373720:1202/123622.451758:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
No update_base_url is defined: auto update is disabled
Fetching translation json for locale: en_EN
Changing application language to en-us
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:
- /usr/lib/element/app.asar/lib/language-helper.js
- /usr/lib/element/app.asar/lib/tray.js
- /usr/lib/element/app.asar/lib/settings.js
- /usr/lib/element/app.asar/lib/ipc.js
- /usr/lib/element/app.asar/lib/electron-main.js
- /usr/lib/electron25/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
    at n._resolveFilename (node:electron/js2c/browser_init:2:117760)
    at Module._load (node:internal/modules/cjs/loader:927:27)
    at f._load (node:electron/js2c/asar_bundle:2:13377)
    at Module.require (node:internal/modules/cjs/loader:1148:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at AppLocalization.fetchTranslationJson (/usr/lib/element/app.asar/lib/language-helper.js:86:20)
    at /usr/lib/element/app.asar/lib/language-helper.js:99:39
    at Array.filter (<anonymous>)
    at AppLocalization.setAppLocale (/usr/lib/element/app.asar/lib/language-helper.js:98:39) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/element/app.asar/lib/language-helper.js',
    '/usr/lib/element/app.asar/lib/tray.js',
    '/usr/lib/element/app.asar/lib/settings.js',
    '/usr/lib/element/app.asar/lib/ipc.js',
    '/usr/lib/element/app.asar/lib/electron-main.js',
    '/usr/lib/electron25/resources/default_app.asar/main.js',
    undefined
  ]
}
Resetting the UI components after locale change
Resetting the UI components after locale change
[373798:1202/123622.590482:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[373798:1202/123622.590578:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[373798:1202/123622.590709:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[373798:1202/123622.590766:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[373798:1202/123622.590806:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[373798:1202/123622.590841:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[373798:1202/123622.590903:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[373720:1202/123622.598652:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[373830:1202/123622.747640:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[373830:1202/123622.747726:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[373830:1202/123622.747854:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[373830:1202/123622.747901:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[373830:1202/123622.747940:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[373830:1202/123622.747977:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[373830:1202/123622.748037:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[373803:1202/123622.752214:ERROR:command_buffer_proxy_impl.cc(325)] GPU state invalid after WaitForGetOffsetInRange.
[373720:1202/123622.756329:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[373864:1202/123622.898802:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[373864:1202/123622.898900:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[373864:1202/123622.899070:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[373864:1202/123622.899134:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[373864:1202/123622.899182:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[373864:1202/123622.899232:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[373864:1202/123622.899312:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[373720:1202/123622.907189:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[373803:1202/123622.977368:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Changing application language to en-us
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:
- /usr/lib/element/app.asar/lib/language-helper.js
- /usr/lib/element/app.asar/lib/tray.js
- /usr/lib/element/app.asar/lib/settings.js
- /usr/lib/element/app.asar/lib/ipc.js
- /usr/lib/element/app.asar/lib/electron-main.js
- /usr/lib/electron25/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
    at n._resolveFilename (node:electron/js2c/browser_init:2:117760)
    at Module._load (node:internal/modules/cjs/loader:927:27)
    at f._load (node:electron/js2c/asar_bundle:2:13377)
    at Module.require (node:internal/modules/cjs/loader:1148:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at AppLocalization.fetchTranslationJson (/usr/lib/element/app.asar/lib/language-helper.js:86:20)
    at /usr/lib/element/app.asar/lib/language-helper.js:99:39
    at Array.filter (<anonymous>)
    at AppLocalization.setAppLocale (/usr/lib/element/app.asar/lib/language-helper.js:98:39) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/element/app.asar/lib/language-helper.js',
    '/usr/lib/element/app.asar/lib/tray.js',
    '/usr/lib/element/app.asar/lib/settings.js',
    '/usr/lib/element/app.asar/lib/ipc.js',
    '/usr/lib/element/app.asar/lib/electron-main.js',
    '/usr/lib/electron25/resources/default_app.asar/main.js',
    undefined
  ]
}
Resetting the UI components after locale change

Outcome

What did you expect?

A window to appear

What happened instead?

No window appeared

Operating system

Arch Linux, with Hyprland

Application version

1.11.50-1

How did you install the app?

https://archlinux.org/packages/extra/x86_64/element-desktop/

Homeserver

No response

Will you send logs?

No

@zjeffer zjeffer changed the title Flickering with xwayland and no window on native wayland Flickering with xwayland and no window on native wayland (nvidia) Dec 2, 2023
@t3chguy
Copy link
Member

t3chguy commented Dec 2, 2023

The arch package isn't maintained by us and uses an electron version other than specified. Seek help from it's maintainer

@t3chguy t3chguy added the X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere label Dec 2, 2023
@t3chguy t3chguy closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2023
@zjeffer
Copy link
Author

zjeffer commented Dec 2, 2023

Ah, I assumed that you guys maintained it because it was on the official arch repos and not the user repos.

Which electron version is supposed to be used, though? I'm already using the latest package.

@zjeffer
Copy link
Author

zjeffer commented Dec 4, 2023

I see, looks like the electron package is grossly out of date: https://archlinux.org/packages/extra/any/electron/

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere
Projects
None yet
Development

No branches or pull requests

2 participants