developersu / ns-usbloader

Awoo Installer and GoldLeaf uploader of the NSPs (and other files), RCM payload injector, application for split/merge files.
GNU General Public License v3.0
1.87k stars 127 forks source link

jar not loading in wayland #20

Open rexto opened 5 years ago

rexto commented 5 years ago

I get this output after doing java -jar file.jar

java:13745): Gdk-CRITICAL **: 19:28:13.111: gdk_x11_display_set_window_scale: assertion 'GDK_IS_X11_DISPLAY (display)' failed

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007fa1226a2b2b, pid=13745, tid=13770

JRE version: OpenJDK Runtime Environment (12.0.1+12) (build 12.0.1+12) Java VM: OpenJDK 64-Bit Server VM (12.0.1+12, mixed mode, tiered, compressed oops, g1 gc, linux-amd64) Problematic frame: C [libX11.so.6+0x2bb2b] XInternAtom+0x3b

kimsaehun commented 5 years ago

A workaround was found here (i.e. java -Djdk.gtk.version=2 -jar ns-usbloader-0.7.jar). This worked for me.

Nonononoki commented 4 years ago

2.0 version works fine for me in Wayland, but the jar file must be executed as root (sudo)