Closed 8ar10der closed 3 years ago
Probably related to this : https://jogamp.org/bugzilla/show_bug.cgi?id=794
Problem is that no new version of JOGL is available (latest RC is from March 2020).
Hi @amaothree Can you try to see if the problem persist with the new release 1.8.2 Alpha ?
I tried it with OpenJDK-14 and LightDM, and everything's been working perfectly :smiley:
Hi @RoiArthurB I am so sorry for my late response about the test.
I tested the latest 1.8.2 Alpha 03.03.21 under Arch Linux + Gnome on Wayland + GDM in three different cases. Unfortunately, all crashed. The test file is Library models-Tutorals-3D-Model 03.gaml
Case 1: Without jre version + openjdk15. The software can boot normally, but will crash when I want to execute the 3D Model. Terminal Output:
> JAI/ImageIO subsystem activated
Adding object pool: Ordered Collectors
Adding object pool: Unique Collectors
Adding object pool: Unique Ordered Collectors
> GAMA: msi.gama.core loaded in : 828ms
> GAMA: ummisco.gama.network loaded in : 4ms
> GAMA: msi.gama.headless loaded in : 3ms
> GAMA: irit.gaml.extensions.database loaded in : 22ms
> GAMA: msi.gama.lang.gaml loaded in : 2ms
> GAMA: msi.gaml.architecture.simplebdi loaded in : 52ms
> GAMA: ummisco.gama.serialize loaded in : 3ms
> GAMA: simtools.gaml.extensions.physics loaded in : 4ms
> GAMA: ummisco.gama.opengl loaded in : 5ms
> GAMA: ummisco.gama.java2d loaded in : 1ms
> GAMA: simtools.gaml.extensions.traffic loaded in : 16ms
> GAMA: ummisco.gaml.extensions.maths loaded in : 6ms
> GAMA: ummisco.gaml.extensions.stats loaded in : 5ms
> GAMA: msi.gaml.extensions.fipa loaded in : 8ms
> GAMA total load time : 986ms
.......
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8df65794bf, pid=5255, tid=5256
#
# JRE version: OpenJDK Runtime Environment (15.0.2+7) (build 15.0.2+7)
# Java VM: OpenJDK 64-Bit Server VM (15.0.2+7, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libX11.so.6+0x374bf] XQueryExtension+0x6f
#
# 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/amao/Downloads/GAMA_1.8.2_Alpha_Linux_03.03.21_ec9bb7cb/core.5255)
#
# An error report file with more information is saved as:
# /home/amao/Downloads/GAMA_1.8.2_Alpha_Linux_03.03.21_ec9bb7cb/hs_err_pid5255.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.
#
Case 2: Without jre version + openjdk11. The software can not boot (crash after boot picture). 1615601661642.log
Case 3: jre bundled version. The software can boot normally, but will crash when I want to execute the 3D Model.
Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
> JAI/ImageIO subsystem activated
Adding object pool: Ordered Collectors
Adding object pool: Unique Collectors
Adding object pool: Unique Ordered Collectors
> GAMA: msi.gama.core loaded in : 704ms
> GAMA: simtools.gaml.extensions.physics loaded in : 3ms
> GAMA: msi.gama.lang.gaml loaded in : 2ms
> GAMA: msi.gaml.extensions.fipa loaded in : 9ms
> GAMA: ummisco.gaml.extensions.maths loaded in : 5ms
> GAMA: msi.gaml.architecture.simplebdi loaded in : 47ms
> GAMA: simtools.gaml.extensions.traffic loaded in : 14ms
> GAMA: msi.gama.headless loaded in : 2ms
> GAMA: ummisco.gama.serialize loaded in : 2ms
> GAMA: ummisco.gama.network loaded in : 3ms
> GAMA: ummisco.gaml.extensions.stats loaded in : 5ms
> GAMA: ummisco.gama.opengl loaded in : 3ms
> GAMA: ummisco.gama.java2d loaded in : 0ms
> GAMA: irit.gaml.extensions.database loaded in : 9ms
> GAMA total load time : 834ms
......
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9983a41945, pid=6190, tid=6191
#
# JRE version: Java(TM) SE Runtime Environment (15.0.1+9) (build 15.0.1+9-18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (15.0.1+9-18, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C 0x00007f9983a41945
#
# 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/amao/Downloads/GAMA_1.8.2_Alpha_withJDK_Linux_03.03.21_ec9bb7cb/core.6190)
#
# An error report file with more information is saved as:
# /home/amao/Downloads/GAMA_1.8.2_Alpha_withJDK_Linux_03.03.21_ec9bb7cb/hs_err_pid6190.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.
#
And I found another tiny issue. https://github.com/gama-platform/gama/issues/3070#issue-830780954
Hi,
Very strange, with i3/LightDM everything works...
I tried GAMA 1.8.2 with OpenJDK 15
$ java -version
openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment (build 15.0.2+7)
OpenJDK 64-Bit Server VM (build 15.0.2+7, mixed mode)
And here's my log while launching the Library Model > Toy Models > Boids > Boids 3D Motion.gaml
...
$ ./GAMA_1.8.2_Alpha_Linux_03.03.21_ec9bb7cb/Gama
> JAI/ImageIO subsystem activated
Adding object pool: Ordered Collectors
Adding object pool: Unique Collectors
Adding object pool: Unique Ordered Collectors
> GAMA: msi.gama.core loaded in : 1242ms
> GAMA: ummisco.gama.opengl loaded in : 5ms
> GAMA: msi.gaml.architecture.simplebdi loaded in : 60ms
> GAMA: ummisco.gama.serialize loaded in : 4ms
> GAMA: simtools.gaml.extensions.traffic loaded in : 18ms
> GAMA: msi.gama.headless loaded in : 3ms
> GAMA: msi.gaml.extensions.fipa loaded in : 11ms
> GAMA: ummisco.gama.java2d loaded in : 1ms
> GAMA: irit.gaml.extensions.database loaded in : 39ms
> GAMA: ummisco.gaml.extensions.maths loaded in : 7ms
> GAMA: ummisco.gaml.extensions.stats loaded in : 7ms
> GAMA: ummisco.gama.network loaded in : 3ms
> GAMA: simtools.gaml.extensions.physics loaded in : 4ms
> GAMA: msi.gama.lang.gaml loaded in : 3ms
> GAMA total load time : 1437ms
PROPERTY org.eclipse.swt.display.useSystemTheme = true
THEME = Theme [id=org.eclipse.e4.ui.css.theme.e4_dark, label='Dark', osVersion=null]
Adding object pool: Execution Context
Adding object pool: Agent Execution Context
> GAMA building GAML artefacts in : 468ms
Adding object pool: Envelope 3D
Creation of 3D0
Closing msi.gama.application.view.InteractiveConsoleView
Closing msi.gama.application.view.ConsoleView
Closing msi.gama.application.view.InteractiveConsoleView
Closing msi.gama.application.view.ParameterView
Closing msi.gama.application.view.OpenGLDisplayView
Closing msi.gama.application.view.ConsoleView
Closing msi.gama.application.view.InteractiveConsoleView
Closing msi.gama.application.view.OpenGLDisplayView
Deleting simulation perspective and opening immediately the modeling perspective = true
--------------------------------------------------------------------------------
---------- POOL STATISTICS -----------------------------------------------------
--------------------------------------------------------------------------------
Ordered Collectors accessed 0 times | created 0 times | released 0 times | objects size: 0
Unique Collectors accessed 0 times | created 0 times | released 0 times | objects size: 0
Unique Ordered Collectors accessed 0 times | created 0 times | released 0 times | objects size: 0
Execution Context accessed 0 times | created 0 times | released 0 times | objects size: 0
Agent Execution Context accessed 0 times | created 0 times | released 0 times | objects size: 0
Envelope 3D accessed 0 times | created 0 times | released 0 times | objects size: 0
I'll try to install an Ubuntu with GNOME to see if I can make the problem, otherwise it may be a problem with your Linux installation...
Maybe you can verify these informations to resolve your problem?
Reproduced on Ubuntu 20.04.2.0 LTS with Wayland (and not with Xorg)
Very strange
I confirmed I installed full OpenJDK15 with GAMA 1.8.2. Could I ask some information about your PC's graphic card and drivers(e.g. xf86-video-intel, modsetting or nvidia)? I guess this issue is occurred by driver. I will compare this in this weekend.
I switched it back on Xorg, I'll have access to it tomorrow so I can show you later for wayland.
Anyway, I don't have GPU on the desktop so it should be xf86-video-intel all the way :
$ inxi -Fxxxza --no-host --display
System: Kernel: 5.8.0-45-generic x86_64 bits: 64 compiler: N/A
parameters: BOOT_IMAGE=/boot/vmlinuz-5.8.0-45-generic root=/dev/mapper/vgubuntu-root ro
quiet splash vt.handoff=7
Desktop: N/A dm: N/A Distro: Ubuntu 20.04.2 LTS (Focal Fossa)
Machine: Type: Desktop System: Dell product: Vostro 3888 v: N/A serial: <filter> Chassis: type: 3
serial: <filter>
Mobo: Dell model: 0RM5DR v: A00 serial: <filter> UEFI: Dell v: 1.2.0 date: 06/09/2020
CPU: Topology: Quad Core model: Intel Core i3-10100 bits: 64 type: MT MCP arch: N/A family: 6
model-id: A5 (165) stepping: 3 microcode: E0 L2 cache: 6144 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 57600
Speed: 4199 MHz min/max: 800/4300 MHz Core speeds (MHz): 1: 4160 2: 4160 3: 4160 4: 4100
5: 4130 6: 4108 7: 4099 8: 4101
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics: Device-1: Intel vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:9bc8
Display: server: X.org 1.20.9 driver: i915 tty: 106x67
Message: No advanced graphics data found on this system.
I switched it back on Xorg, I'll have access to it tomorrow so I can show you later for wayland.
Anyway, I don't have GPU on the desktop so it should be xf86-video-intel all the way :
$ inxi -Fxxxza --no-host --display System: Kernel: 5.8.0-45-generic x86_64 bits: 64 compiler: N/A parameters: BOOT_IMAGE=/boot/vmlinuz-5.8.0-45-generic root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7 Desktop: N/A dm: N/A Distro: Ubuntu 20.04.2 LTS (Focal Fossa) Machine: Type: Desktop System: Dell product: Vostro 3888 v: N/A serial: <filter> Chassis: type: 3 serial: <filter> Mobo: Dell model: 0RM5DR v: A00 serial: <filter> UEFI: Dell v: 1.2.0 date: 06/09/2020 CPU: Topology: Quad Core model: Intel Core i3-10100 bits: 64 type: MT MCP arch: N/A family: 6 model-id: A5 (165) stepping: 3 microcode: E0 L2 cache: 6144 KiB flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 57600 Speed: 4199 MHz min/max: 800/4300 MHz Core speeds (MHz): 1: 4160 2: 4160 3: 4160 4: 4100 5: 4130 6: 4108 7: 4099 8: 4101 Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled Type: l1tf status: Not affected Type: mds status: Not affected Type: meltdown status: Not affected Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling Type: srbds status: Not affected Type: tsx_async_abort status: Not affected Graphics: Device-1: Intel vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:9bc8 Display: server: X.org 1.20.9 driver: i915 tty: 106x67 Message: No advanced graphics data found on this system.
I found the solution. It just because the Xwayland cannot enable automatically when a java program running in Arch Linux default. Just override the environment variable like this GDK_BACKEND=x11 ./Gama
. It will work very well as Xorg mode under the Wayland.
I check the logout in the error log. Seems some components in GAMA are bind with a X11 GUI lib com.jogamp.nativewindow.x11
. So GAMA can not running under the Wayland as a native. However, If the nativewindow lib could switch tocom.jogamp.nativewindow.egl
, the GAMA will run natively under wayland.
@AlexisDrogoul @hqnghi88 Is there any conflict to switch the lib from com.jogamp.nativewindow.x11
to com.jogamp.nativewindow.egl
?
Describe the bug The project with 3D (JOGL) object will crash when use the Wayland not Xorg. (eg. lastest Gnome)
To Reproduce Steps to reproduce the behavior:
Expected behavior Work well in Wayland juest like in Xorg
Screenshots
Desktop (please complete the following information):
Additional context