Login  Register

Re: JOGL incompatible with SWT 4.21

Posted by RoiArthurB on Dec 16, 2022; 9:49am
URL: https://forum.jogamp.org/JOGL-incompatible-with-SWT-4-21-tp4041643p4041975.html

Hi,

Thanks a lot for your quick answer.

Martin wrote
It should rather be line 281 if you work with Peter's patch, ... same if you are using the non-patched SWTAccessor.
We are using an adapted version of Peter's patch that you can find here.

Martin wrote
So a fix would be to change [...]
I did a stupid copy/paste replacing the code you pointed to me by the one you gave me, and it works on X11 !! 🥳

However, as the accessor check if the application is using the X11 backend, it crashes our soft' if ran using Wayland with this error log :
Loading redefined SWTAccessor
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe804ff5624, pid=116734, tid=116735
#
# JRE version: OpenJDK Runtime Environment (17.0.5+1) (build 17.0.5+1)
# Java VM: OpenJDK 64-Bit Server VM (17.0.5+1, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libX11.so.6+0x3a624]  XQueryExtension+0x64
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/roiarthurb/Documents/GAMA/gama/core.116734)
#
# An error report file with more information is saved as:
# /home/roiarthurb/Documents/GAMA/gama/hs_err_pid116734.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
It's a bit frustrating, but I guess it's pretty normal as JOGAMP only been dev for X11 compatibility so far 🤔🤔