swt-initiative31 / prototype-skija

Eclipse SWT (custom-drawn widgets based on Skija)
https://www.eclipse.org/swt/
Eclipse Public License 2.0
4 stars 1 forks source link

controlexample crashes under linux #12

Open ddscharfe opened 6 days ago

ddscharfe commented 6 days ago

When starting the control example (org.eclipse.swt.examples.controlexample) the JVM crashes:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f6755d08f3e, pid=102892, tid=102898
#
# JRE version: OpenJDK Runtime Environment Temurin-23.0.1+11 (23.0.1+11) (build 23.0.1+11)
# Java VM: OpenJDK 64-Bit Server VM Temurin-23.0.1+11 (23.0.1+11, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libswt-pi3-gtk-4967r8.so+0x48f3e]  Java_org_eclipse_swt_internal_gtk_OS_G_1OBJECT_1TYPE+0x0
#

The crash seems to occur in org.eclipse.swt.accessibility.Accessible::Accessible(Control control):

Accessible (Control control) {
    super ();
    this.control = control;
    long type = OS.G_OBJECT_TYPE (getControlHandle()); // SEGFAULT
    accessibleObject = new AccessibleObject (type, getControlHandle(), this, false);
    addRelations();
}
ddscharfe commented 4 days ago

Another problem under linux is that skija requires GLIBC 2.29. This is not available e.g. under Red Hat 8. I wasn't able to build skija there, yet, because I am running into: symbol lookup error: /tmp/skija_8820626346737/libskija.so: undefined symbol: FT_Palette_Data_Get