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

Black window when starting in a Gnome on Wayland session #19743

Closed
jakobkmar opened this issue Nov 13, 2021 · 11 comments
Closed

Black window when starting in a Gnome on Wayland session #19743

jakobkmar opened this issue Nov 13, 2021 · 11 comments
Labels
A-Electron O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround T-Defect Z-Platform-Specific

Comments

@jakobkmar
Copy link

jakobkmar commented Nov 13, 2021

Steps to reproduce

Hardware specs:
image

The problem only appears on Wayland.

Outcome

What did you expect?

The application should be visible.

What happened instead?

Only a black window is visible.

image

Logs

Logs when starting element
  flatpak run im.riot.Riot
[2 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/Element/element-desktop --type=zygote
/home/jakob/.var/app/im.riot.Riot/config/Element exists: yes
/home/jakob/.var/app/im.riot.Riot/config/Riot exists: no
Gtk-Message: 15:25:39.487: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:25:39.488: Failed to load module "pk-gtk-module"
Gtk-Message: 15:25:39.488: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:25:39.488: Failed to load module "pk-gtk-module"
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-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:
- /app/Element/resources/app.asar/lib/language-helper.js
- /app/Element/resources/app.asar/lib/tray.js
- /app/Element/resources/app.asar/lib/electron-main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
    at Module._load (internal/modules/cjs/loader.js:732:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at AppLocalization.fetchTranslationJson (/app/Element/resources/app.asar/lib/language-helper.js:76:20)
    at /app/Element/resources/app.asar/lib/language-helper.js:89:39
    at Array.forEach (<anonymous>)
    at AppLocalization.setAppLocale (/app/Element/resources/app.asar/lib/language-helper.js:88:17) {
  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/electron-main.js',
    undefined
  ]
}
Resetting the UI components after locale change
Failed to establish dbus connectionResetting the UI components after locale change
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
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:
- /app/Element/resources/app.asar/lib/language-helper.js
- /app/Element/resources/app.asar/lib/tray.js
- /app/Element/resources/app.asar/lib/electron-main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
    at Module._load (internal/modules/cjs/loader.js:732:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at AppLocalization.fetchTranslationJson (/app/Element/resources/app.asar/lib/language-helper.js:76:20)
    at /app/Element/resources/app.asar/lib/language-helper.js:89:39
    at Array.forEach (<anonymous>)
    at AppLocalization.setAppLocale (/app/Element/resources/app.asar/lib/language-helper.js:88:17) {
  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/electron-main.js',
    undefined
  ]
}
Resetting the UI components after locale change

Operating system

Fedora Linux 35 (Workstation Edition)

Application version

Element version 1.9.4

How did you install the app?

I tried both dnf and flatpak from Flathub.

Homeserver

No response

Will you send logs?

No

@SimonBrandner
Copy link
Contributor

It seems you're not the only one to have come across this bug, as it's been reported previously. I'm going to close this issue now so we can focus on the older issue. Please watch, vote or comment on that issue. Could you also please copy over the logs there? Thank you

Duplicate of #15486

@jakobkmar
Copy link
Author

Yes I can do that, but isn't this right here a different issue? The problem only appears on Wayland, while starting the same application on the same system in an XOrg session works perfectly fine.

@SimonBrandner SimonBrandner reopened this Nov 13, 2021
@SimonBrandner
Copy link
Contributor

Ah, sorry, I misread the issue, seems different

@SimonBrandner SimonBrandner added A-Electron O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround Z-Platform-Specific labels Nov 13, 2021
@SimonBrandner
Copy link
Contributor

@jakobkmar, does this happen with other Electron apps (Discord, Slack...)?

@jakobkmar
Copy link
Author

No, Discord and Spotify work fine.

@jakobkmar
Copy link
Author

does this happen with other Electron apps (Discord, Slack...)?

while some electron apps don't have this issue (previous message), there are other electron with this issue, e.g. GitHub Desktop

@novocaine
Copy link
Contributor

Are you passing the extra flags noted in #18902 ?

@jakobkmar
Copy link
Author

No, but I did try it now and the result is that the window is invisible.

@novocaine
Copy link
Contributor

novocaine commented Nov 16, 2021

Let's track this as a duplicate of #19743

@jakobkmar
Copy link
Author

Let's track this as a duplicate of #19743

Seems like this link is incorrect, what is the correct one?

@novocaine
Copy link
Contributor

Let's track this as a duplicate of #19743

Seems like this link is incorrect, what is the correct one?

Sorry, should be element-hq/element-desktop#728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Electron O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround T-Defect Z-Platform-Specific
Projects
None yet
Development

No branches or pull requests

3 participants