Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'GDK_IS_X11_DISPLAY (display)' failed #411

Open
bretelemens opened this issue Feb 1, 2024 · 2 comments
Open

'GDK_IS_X11_DISPLAY (display)' failed #411

bretelemens opened this issue Feb 1, 2024 · 2 comments

Comments

@bretelemens
Copy link

Hi,
running roda-in v2.7.1 on ubuntu 22.04.3 LTS
java version "17.0.9" 2023-10-17 LTS

When I launch application, it seems to have problem opening the window for the user interface.
I get following error message:

(java:195389): Gdk-CRITICAL **: 10:49:06.929: gdk_x11_display_set_window_scale: assertion 'GDK_IS_X11_DISPLAY (display)' failed
Unhandled exception
Type=Segmentation error vmState=0x00040000
J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
Handler1=00007FFB84C37A80 Handler2=00007FFB848299C0 InaccessibleAddress=0000000200000001
RDI=00007FF9C000DF68 RSI=0000000000000000 RAX=0000000200000001 RBX=00007FF9D3238E2A
RCX=00007FF9C000DDD0 RDX=00007FFB7C6E7070 R8=00007FF9E84F6AD4 R9=00007FF9C000DDE0
R10=00007FFB7C6C6D40 R11=00007FF9C000DDE0 R12=00007FF9F4165010 R13=0000000000000001
R14=00007FF9F4165010 R15=00007FF9F4165010
RIP=00007FFB7C6EB482 GS=0000 FS=0000 RSP=00007FF9E84F6A60
EFlags=0000000000010212 CS=0033 RBP=00007FF9D3238E29 ERR=0000000000000006
TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=0000000200000001
xmm0 0000000000000000 (f: 0,000000, d: 0,000000e+00)
xmm1 00007ff9c0000090 (f: 3221225728,000000, d: 6,952030e-310)
xmm2 00007ffb8019a568 (f: 2149164288,000000, d: 6,952401e-310)
xmm3 00007ffb8019a508 (f: 2149164288,000000, d: 6,952401e-310)
xmm4 000000003f8f5000 (f: 1066356736,000000, d: 5,268502e-315)
xmm5 bff0000000000000 (f: 0,000000, d: -1,000000e+00)
xmm6 3fbc5e53aa362eb4 (f: 2855677696,000000, d: 1,108143e-01)
xmm7 75735f6d6f635f61 (f: 1868783488,000000, d: 5,817654e+257)
xmm8 6168632d657a6973 (f: 1702521216,000000, d: 1,714326e+161)
xmm9 0000000000000000 (f: 0,000000, d: 0,000000e+00)
xmm10 0000000000000000 (f: 0,000000, d: 0,000000e+00)
xmm11 0000000000000000 (f: 0,000000, d: 0,000000e+00)
xmm12 0000000000000000 (f: 0,000000, d: 0,000000e+00)
xmm13 0000000000000000 (f: 0,000000, d: 0,000000e+00)
xmm14 0000000000000000 (f: 0,000000, d: 0,000000e+00)
xmm15 0000000000000000 (f: 0,000000, d: 0,000000e+00)
Module=/lib/x86_64-linux-gnu/libX11.so.6
Module_base_address=00007FFB7C6C0000
Target=2_90_20210120_821 (Linux 6.5.0-15-generic)
CPU=amd64 (16 logical CPUs) (0x39cbe1000 RAM)
----------- Stack Backtrace -----------
(0x00007FFB7C6EB482 [libX11.so.6+0x2b482])
XInternAtom+0x5f (0x00007FFB7C6EB84F [libX11.so.6+0x2b84f])
(0x00007FF9D322329D [libglassgtk3.so+0x2329d])
_Z15rebuild_screensP7JNIEnv_+0x76 (0x00007FF9D32238F6 [libglassgtk3.so+0x238f6])
Java_com_sun_glass_ui_gtk_GtkApplication_staticScreen_1getScreens+0x9 (0x00007FF9D3223EF9 [libglassgtk3.so+0x23ef9])
(0x00007FFB84D44F26 [libj9vm29.so+0x144f26])
(0x00007FFB84D43EC7 [libj9vm29.so+0x143ec7])
(0x00007FFB84C8F2D0 [libj9vm29.so+0x8f2d0])
(0x00007FFB84C7FF34 [libj9vm29.so+0x7ff34])
(0x00007FFB84CD44E2 [libj9vm29.so+0xd44e2])
---------------------------------------
JVMDUMP039I Processing dump event "gpf", detail "" at 2024/02/01 10:49:06 - please wait.
JVMDUMP032I JVM requested System dump using '/opt/RODA-in/core.20240201.104906.195389.0001.dmp' in response to an event
JVMDUMP030W Cannot write dump to file /opt/RODA-in/core.20240201.104906.195389.0001.dmp: Permission denied

JVMPORT030W /proc/sys/kernel/core_pattern setting "|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" specifies that the core dump is to be piped to an external program.  Attempting to rename either core or core.195436.

JVMDUMP012E Error in System dump: The core file created by child process with pid = 195436 was not found. Expected to find core file with name "/tmp/core.195436"
JVMDUMP030W Cannot write dump to file /opt/RODA-in/javacore.20240201.104906.195389.0002.txt: Permission denied
JVMDUMP032I JVM requested Java dump using '/tmp/javacore.20240201.104906.195389.0002.txt' in response to an event
JVMDUMP010I Java dump written to /tmp/javacore.20240201.104906.195389.0002.txt
JVMDUMP032I JVM requested Snap dump using '/opt/RODA-in/Snap.20240201.104906.195389.0003.trc' in response to an event
JVMDUMP030W Cannot write dump to file /opt/RODA-in/Snap.20240201.104906.195389.0003.trc: Permission denied
JVMDUMP010I Snap dump written to /tmp/Snap.20240201.104906.195389.0003.trc
JVMDUMP030W Cannot write dump to file /opt/RODA-in/jitdump.20240201.104906.195389.0004.dmp: Permission denied
JVMDUMP032I JVM requested JIT dump using '/tmp/jitdump.20240201.104906.195389.0004.dmp' in response to an event
JVMDUMP010I JIT dump written to /tmp/jitdump.20240201.104906.195389.0004.dmp
JVMDUMP013I Processed dump event "gpf", detail "".
@bmreading
Copy link

Hello, this is an upstream problem related to OpenJDK executing in Wayland. For some reason, you need to pass an environment variable to get it to run with XWayland compatibility.

You can run this from the CLI using the following:

GDK_BACKEND=x11 RODA-in

If you want to create a proper desktop entry for your user, so it can be launched from the GUI, you can do so like this:

cp /opt/RODA-in/RODA-in.desktop ~/.local/share/applications/ && sed -i -e "s|Exec=/opt/RODA-in/RODA-in %U|Exec=env GDK_BACKEND=x11 /opt/RODA-in/RODA-in %U|g" ~/.local/share/applications/RODA-in.desktop

@luis100
Copy link
Member

luis100 commented Jan 9, 2025

Issue should be solved if JavaFX was updated to version 12 or greater.
Current version, JavaFX 11 got EOL in September 2023. Recommending upgrading to latest LTS version currently 21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants