Skip to content

It crashes in Wayland, but there is an easy workaround #2

@mardukbp

Description

@mardukbp

In Fedora, which uses Wayland by default, the following crash occurs:

java -jar keyboard-layout-editor-all-1.0-SNAPSHOT.jar 

(java:20699): Gdk-CRITICAL **: 21:07:05.720: gdk_x11_display_set_window_scale: assertion 'GDK_IS_X11_DISPLAY (display)' failed

(java:20699): GLib-GObject-WARNING **: 21:07:05.720: invalid cast from 'GdkWaylandDisplay' to 'GdkX11Display'
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f29e67b89b0, pid=20699, tid=0x00007f298821d640
#
# JRE version: OpenJDK Runtime Environment (8.0_312-b07) (build 1.8.0_312-b07)
# Java VM: OpenJDK 64-Bit Server VM (25.312-b07 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libX11.so.6+0x329b0]  XInternAtom+0x40

The workaround is to execute java as follows:

GDK_BACKEND=x11 java -jar keyboard-layout-editor-all-1.0-SNAPSHOT.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions