-
-
Notifications
You must be signed in to change notification settings - Fork 444
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
[Wayland] Heroic does not open #4083
Comments
Not on Ubuntu but on nixos, with a similiar problem the heroic window does not open in wayland, but it does in xwayland/x11. Steps to reproduce
|
Command |
Same here. I am using arch linux, wayland, nvidia 40 series, gnome, flatpack and Heroic (installed with flatpack). When trying to launch the app from gnome, nothing happens. When running in the cli this:
And it does not launch (note that the last sentence is in french because of my system. It is basically saying With the following command: I quickly tried this: |
I just tried to install discord canary for the new screen sharing on wayland. Anyways, like Heroic, it wouldn't launch in the gnome shell, so I tried to run
Which has essentially the same error @SamRodri and I got when trying to launch Heroic: I might update this with other apps I try, but I am not completely certain this is a problem with Heroic. This might either be something bigger (Flatpak or Wayland mabye), a compatibility problem or just a random thing. I do want to note that I never developed a Flatpak app, so I don't exactly understand exactly which logs are from Flatpak or from the app itself. EDITGot the same error when trying to run
I just looked very quickly through Heroic's code, and I am pretty sure it uses Electron, which all of the apps I tried to run use (discord canary, teams for Linux and Heroic) I tried to dig a little deeper, so I tried normal discord as I didn't remember having issues launching it. And it worked! I have Flatseal installed so I took a quick peak at the config of discord vs discord canary and the only thing I had changed was i was forcing TL;DR: From my testing, the issue is probably more about Electron running on Wayland than about Heroic specifically. However, since I don't feel like a lot of people is having this issue, there is probably another condition that I am unsure of at the moment. |
VSCode is an Electron app and it works fine for me. Could be the Electron version? |
I have it installed directly from MS repo, I believe I followed these instructions, it has been a while, I remember that it was blurry at some point and I changed some configs (back when Ubuntu was just X11 for NVIDIA). I just tried
|
I might try later to install it with pacman to test. Meanwhile, here is VSCode about when in x11 for me (exactly the same except the OS)
|
Same Electron. I will try to find the configs I changed. |
So I installed the official binary of VSCode from the AUR since it is not in the official arch linux pacman repositories (I changed nothing after the install). When launching it by running I tried running
I search a bit online and found microsoft/vscode#207033 which seems to describe a similar issue with the last comment being:
For now I think it might be a compatibility issue with something, but I really don't know what. Since you mentionned you were using nvidia, it might not be that. In the issue I linked has a few people on ubuntu having a similar problem as me, so it might not even be that. |
For future reference, here is all the info from running
|
I found the config I changed, in I'm now convinced the error is due to a combination of Wayland+GPU on Electron. I'm using the nvidia proprietary driver-560. Do you know if there is a way to force the use of the integrated GPU? I have an Intel CPU, so between us we can cover all GPU manufacturers. Edit: I also have a 4k screen, just tested without screen scaling and it fails the same, screen scaling not to blame. |
I guess Code is doing too many custom things with Electron. I believe electron/electron#44607 is tracking this bug on Electron, I'm surprised they are taking so long to fix this to be honest. |
I'm not sure how it is on Arch, for me I created a replacement desktop file in
After a session restart gnome picks up this new exec command |
There is a global variable to tell Electron to always use x11 or wayland. I just switched that back to x11 and all of my electron apps are working smoothly again. For me on nixos its this Just set those on startup and all your electron apps should work fine using x11. Edit: The nixos one is incorrect, setting it to zero will still enable wayland usage, you have to unset it by removing any mention of it from your config. |
I tried earlier and it does not seem to work for some reason. Tried to change the file name and app name that you sent so it would not interfere with the flatpack version (the Flatpalk entries are not in the @LazyStability I think it's a little more complex than this (even I don't really understand what is going on and some parts might just be my system). running As for the other apps, I will have to check to be sure, but for "teams on linux" in Flatpak I have not looked yet at the Flatseal config to see if I can get teams to launch as I was not able before. For discord, putting it to x11 seems to work. I was even able to use the new screen sharing feature using the x11 version, although it is very possible that since it is using the x11 version, the screensharing was working on it before the new canary update.. I will test later teams to be sure about the following conclusion, but for now, I see that:
As I said, I'll test teams on Flatpak and edit this comment later today (if I remember) EDIT FOR TEAMS TEST:In the gnome shell, teams from Flatpack won't start. Even if I change which between X11 and Wayland is preferred in Flatseal. When running
Which is similar to the originial Heroic problem. When running
Which is a bit weird since with these arguments it works on Heroic for example. Anyways, I can't really make more conclusions out of this. |
The dir I have Heroic installed directly from the .deb, I think Flatpak desktop files are in |
Same problem here in silverblue/bluefin with nvidia, heroic only opens with ozone-platform=x11 |
wtf nvidia + electron wayland is still broken ? I guess I'll put x11 back to default then. Nvidia got to get their stuff together at some point man |
Hey! I ran into this issue as well. Someone made another issue related to flatpak #4173 but from what I gather the packaged version doesn't really matter. If you all want details on my end it's in the thread. As I said there, if there's anything I can do to help troubleshoot let me know. |
Yeah seems like it. Although when using flat pak versions of some apps that are not using electron, I sometimes have issue running it from the gnome shell in the drawer (or anywhere graphical like that). But that could be another unrelated problem with maybe flatpak, Wayland and maybe Nvidia.
That's probable. However, It's possible that it is not helping in some cases as I said above. We'll have to see.
Same here, if I can do anything to help find out the issue, let me know. I already did a quick dump of a few logs and system info earlier in this thread, but if anything needs testing I'm here. EDIT: After reading more of #4173, I saw that the error over there does not seem to be the same as the ones we are having here. Might be because it's a different problem or not, but I am also using the Flatpak version so I don't know... |
Describe the bug
Heroic doesn't open on Ubuntu 24.10 with Wayland and NVIDIA drivers. Both Flatpak and .deb fails with the same error.
Add logs
Steps to reproduce
flatpak run com.heroicgameslauncher.hgl
.Expected behavior
Expected launcher window to open.
Screenshots
No response
Heroic Version
Latest Stable
System Information
Additional information
No response
The text was updated successfully, but these errors were encountered: