VSCodium / vscodium

binary releases of VS Code without MS branding/telemetry/licensing
https://vscodium.com
MIT License
24.38k stars 1.03k forks source link

Wayland: Both vscodium instances close if a second instance is started #1693

Open PucklaJ opened 9 months ago

PucklaJ commented 9 months ago

Describe the bug I am working with a single instance of vscodium, but as soon as I start a second one to create a new window both seem to crash. It does not matter if I start a completely new instance or just open a new window through the command palette.

Please confirm that this problem is VSCodium-specific

Please confirm that the issue/resolution isn't already documented

To Reproduce Steps to reproduce the behavior:

  1. Install vscodium from chaotic-aur
  2. Start the first instance using gtk-launch codium-wayland
  3. See that it works as usual
  4. Start the second instance using gtk-launch codium-wayland
  5. See that both instances instantly crash

Expected behavior I should be able to open as many instances as my PC can handle. Using the xwayland version it works completely fine.

Logs First Instance (warning long log!)

Second Instance

Desktop (please complete the following information):

Additional context The command executed for both logs was:

/usr/bin/codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland --unity-launch --verbose
colemickens commented 8 months ago

I am seeing this behavior, too.

Since this is the most recent Wayland issue, I'm also going to note. Lots of issues and hits from Google suggest that setting "window.titleBarStyle": "custom" is a fix for Wayland.

While this worked for me a couple of days ago, I'm now find that VSCodium will not open at all with that option. Now, "window.titleBarStyle": "native" seems to allow me to open a single window. (Though to reiterate, I also have both windows crash if I try to open a second one, fortunately I don't really need that.)

It would be amazing if Wayland was made more of a priority for the VSCode devs to ensure there aren't regressions. Especially with so many distros moving towards Wayland by default, and with the various downsides of using XWayland.

PucklaJ commented 8 months ago

@colemickens I have set "window.titleBarStyle": "custom" and I can used it completely fine except for it crashing as soon as I open a new window

TheRDavid commented 3 months ago

@colemickens I have set "window.titleBarStyle": "custom" and I can used it completely fine except for it crashing as soon as I open a new window

I am having the same issue, did you find a fix?

PucklaJ commented 2 months ago

@TheRDavid For me it just works right now. I am using the vscodium package from the chaotic-aur on Arch. The Exec entry in the .desktop file is the following:

/usr/bin/codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland --unity-launch %F