Page 1 of 1

minecraft-launcher : Error 255

Posted: Sun Nov 10, 2019 6:20 pm
by destroyedlolo
Hello,

Back on an old subject for me :? .

I would like to install MineCraft on my son's x64 PC (under Gentoo obviously). So I downloaded the "Other Linux Java version" from Minecraft side.
But when I'm trying to launching minecraft-launcher, it's stopping immediately with a return code 255.
It's an ELF executable and LDD doesn't complain about missing lib : everything seems here.

Java8 is obviously installed.

Any clue or idea ?

Thanks

Laurent

Posted: Thu Mar 19, 2020 7:58 pm
by Marcih
I also recall trying using the new (Electron?) launcher from the Minecraft website and having issues with it.
In fact, while writing this, I downloaded it and tried it out. When I tried executing "minecraft-launcher" from the terminal I get no output, last exit code 255. LDD finds no issues.

Code: Select all

user@pc /tmp $ ldd minecraft-launcher/minecraft-launcher 
        linux-vdso.so.1 (0x00007ffe8851a000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f44e6de4000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f44e6dc2000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libstdc++.so.6 (0x00007f44e6b4a000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libgcc_s.so.1 (0x00007f44e6b30000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f44e6961000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f44e6e1d000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f44e6823000)
user@pc /tmp $ minecraft-launcher/minecraft-launcher 
user@pc /tmp $ echo $?
255
I found ~/.minecraft/launcher_log.txt, complains about missing libgconf-2.so.4.

Code: Select all

[Error: 2020-03-19 19:02:41.009634851: LauncherPluginLinux.cpp(20)] Failed to load liblauncher.so: libgconf-2.so.4: cannot open shared object file: No such file or directory
Installed gnome-base/gconf (Woo, Python 2! Don't we have the shiny new dconf to replace gconf anyway?), starts up fine. Note that LDD doesn't mention libgconf, minecraft-launcher doesn't require it, liblauncher.so (and libcef.so) does.

Code: Select all

user@pc /tmp $ ldd minecraft-launcher/*
[...]
minecraft-launcher/libcef.so:
[...]
        libgconf-2.so.4 => not found
[...]
minecraft-launcher/liblauncher.so:
ldd: warning: you do not have execution permission for `minecraft-launcher/liblauncher.so'
[...]
        libgconf-2.so.4 => not found
[...]
Try seeing if that's your issue or running ldd on all the libraries and executables (hint-hint ldd minecraft-launcher/* | grep not\ found hint-hint). Wouldn't be first. ;) Also notice the distinct lack of activity from devs on these tickets and the fact that discussing replacing dependency on gconf by dconf is not available to the public (look up the ticket number to at least see the name and description - thanks search engine metadata! :D).

Posted: Thu Jul 23, 2020 5:47 am
by hedmo
have you tried this : https://github.com/hedmo/hedmos-overlay ... -r1.ebuild

Spammer username removed.Chiitoo

Re: minecraft-launcher : Error 255

Posted: Sat Jul 25, 2020 3:13 am
by Mappy
I personally had to enter the full path to the Java binary in the launcher, instead of using the default "java" link.

Posted: Tue Jul 28, 2020 10:53 pm
by destroyedlolo
WWaaaahhoooo, it's working for me : GREATE !
Thanks a lot.

Spammer username removed.Chiitoo

Posted: Thu Feb 25, 2021 7:24 am
by Chiitoo
Merged in the above three potentially helpful replies from a spammer's copy of the initial post here.