Hi, All
Bridge is started OK, it seems, with JavaFX modules, under Ubuntu 22.04:
But the app (B4XSerializator base example) is started with such error:
Googled that it is:
But how to fix during B4J debug ?
Bridge is started OK, it seems, with JavaFX modules, under Ubuntu 22.04:
lad@vtk1:~$ jdk-11.0.1/bin/java -jar b4j-bridge.jar
B4J-Bridge v1.50
Running on Java 11+
JavaFX modules: javafx.web,javafx.swing,javafx.controls,javafx.media,javafx.base,javafx.graphics,javafx.fxml,javafx.swt
External JavaFX path: /home/vlad/jdk-11.0.1/javafx/lib
Waiting for connections (port=6790)...
My IP address is: 192.168.1.100
FTP Server started: ftp://192.168.1.100:6781
Start B4J-Bridge with -disableftp to disable.
Connected!
Starting program
ProcessCompleted
But the app (B4XSerializator base example) is started with such error:
WARNING: package com.sun.glass.ui.win not in javafx.graphics
WARNING: package com.sun.prism.d3d not in javafx.graphics
~e:
~e:
(java:9669): Gdk-CRITICAL **: 19:07:29.496: 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=0x00007f0b8a8c7740, pid=9669, tid=9705
#
# JRE version: OpenJDK Runtime Environment (11.0.1+13) (build 11.0.1+13)
# Java VM: OpenJDK 64-Bit Server VM (11.0.1+13, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
#
C [libX11.so.6+0x2b740] XInternAtom+0x40
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/vlad/tempjars/core.9669)
#
# An error report file with more information is saved as:
# /home/vlad/tempjars/hs_err_pid9669.log
#
# If you would like to submit a bug report, please visit:
# http://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.
#
Googled that it is:
Workaround (https://github.com/javafxports/openjdk-jfx/issues/175#issuecomment-417030981)
java -Djdk.gtk.version=2
This has been fixed in Openjfx12.
But how to fix during B4J debug ?
Last edited: