mojira.dev
MCL-12215

LAUNCHER 2.1.7658 not starting under wayland (Linux)

MC LAUNCHER 2.1.7658 not starting under Wayland using Ubuntu 18.04 and Ubuntu 19.04.
The icon appears but the main windows / UI never appears. Previous launcher version worked fine.

The following appears when launched using the cli:
(minecraft-launcher:31037): Gtk-WARNING **: 13:06:22.363: Theme parsing error: gtk.css:3841:23: Junk at end of value for outline-offset

(minecraft-launcher:31037): Gdk-WARNING **: 13:06:22.447: ../../../../../gdk/x11/gdkwindow-x11.c:5611 drawable is not a native X11 window

Reinstalling doesn't work and i can't seem to revert to the previous version since i can't find any launcher archive containing these downloads. Changing the display server to xorg renders the Minecraft launcher to launch like it supposed to but using xorg as the main display server is a no go.

edit: running the following command starts the launcher under Wayland using x11: GDK_BACKEND=x11 minecraft-launcher

 

Linked issues

Attachments

Comments 12

Same issue here, the mentioned workaround works.

I'm using Ubuntu 18.04

I'm having the same issue on Ubuntu 19.04. I have to log in to an x.org session for this to work. I would much rather use Wayland, the game runs better on Wayland.

Same issue on arch linux, using the sway window manager (wayland).

Workaround works.

Additionally, the newest version of the Linux Minecraft launcher will crash old versions (pre-1.14.4) versions of the game when trying to launch them. Running in terminal will say "SaveToBuffer failed".

Same issue on Fedora 30 running Gnome/Wayland, the workaround works great, thank you.

2 more comments

@Linus: That first video is not posted by me and doesn't show the issue we are discussing over here. The issue we are facing is we can't run the minecraft launcher under Wayland cause you get nothing more than a icon.

 

edit: i've now added a video showing the problem (minecraftwaylandissue).

Same here. With ALT+TAB I see the icon but not the window.

Fedora 30 and 31. Oracle Java and OpenJDK.

{{SaveToBuffer failed}}
{{ [1108/234418.654550:ERROR:sandbox_linux.cc(346)] InitializeSandbox() called with multiple threads in process gpu-process.(minecraft-launcher:3545): Gdk-WARNING **: 23:44:19.722: gdkwindow-x11.c:5633 drawable is not a native X11 window}}

On Fedora 31 I have created ~/minecraft/minecraft-launcher/start-minecraft.sh to start Minecraft

#!/bin/bash

export GDK_BACKEND=x11 

./minecraft-launcher
 minecraft-launcher 
   cef_100_percent.pak 
   cef_200_percent.pak 
   cef_extensions.pak 
   cef.pak 
   chrome-sandbox 
   GPUCache 
 
   icudtl.dat 
   libcef.so 
   liblauncher.so 
   locales
 
   minecraft-launcher 
   natives_blob.bin 
   snapshot_blob.bin 
   start-minecraft.sh 
   v8_context_snapshot.bin

 

$ java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)

This should now be fixed.

The new version works fine on Wayland without any workaround.

migrated

migrated

Unconfirmed

crash

Retrieved