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

libnvidia-glcore.so crashes when Swing OpenGL acceleration is enabled #489

Open
DanySK opened this issue Apr 14, 2022 · 4 comments
Open
Labels
bug Something isn't working jbs:needs-report Waiting for someone from our org to report to OpenJDK

Comments

@DanySK
Copy link

DanySK commented Apr 14, 2022

Summary

Using OpenGL acceleration with nVidia drivers under Linux causes frequent crashes of the JVM.

Steps to reproduce

  1. Obtain a PC with Linux and nVidia drivers
  2. git clone git@github.com:DanySK/Experiment-2022-Coordination-Space-Fluid.git
  3. cd Experiment-2022-Coordination-Space-Fluid
  4. git checkout 0.4.0
  5. ./gradlew runCompleteG
  6. A Swing UI pops up. Change its size, move it in the middle of the screen, press L to display links (raises the chance of failure), then press P and wait. drag and drop and zoom (with the mouse wheel) seem to raise the chance of a crash.

Note: Gradle is configured to pull the latest JVM 17 automatically and launch on that. Once the bug is fixed, the reproduction won't be possible anymore.
Note: please make sure that your environment does not contain CI=true, as this modifies the behaviour of the program

Expected results

The simulation terminates after a while correctly

Actual results

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f5a656cef50, pid=36254, tid=36500
#
# JRE version: OpenJDK Runtime Environment Temurin-17+35 (17.0+35) (build 17+35)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17+35 (17+35, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libnvidia-glcore.so.510.54+0xecef50]
#
# 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/danysk/LocalProjects/Experiment-2022-Coordination-Space-Fluid/core.36254)
#
# An error report file with more information is saved as:
# /home/danysk/LocalProjects/Experiment-2022-Coordination-Space-Fluid/hs_err_pid36254.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
[hs_err_pid36254.log](https://github.com/adoptium/adoptium-support/files/8487958/hs_err_pid36254.log)

#

Triaging info

Java version:

What is your operating system and platform?

Computer Information:
    Manufacturer:  ASRock
    Model:  Z370M Pro4
    Form Factor: Desktop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  GenuineIntel
    CPU Brand:  Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    CPU Family:  0x6
    CPU Model:  0x9e
    CPU Stepping:  0xa
    CPU Type:  0x0
    Speed:  4800 Mhz
    12 logical processors
    6 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    AVX2:  Supported
    AVX512F:  Unsupported
    AVX512PF:  Unsupported
    AVX512ER:  Unsupported
    AVX512CD:  Unsupported
    AVX512VNNI:  Unsupported
    SHA:  Unsupported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    "Manjaro Linux" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  5.16.14-1-MANJARO
    X Server Vendor:  The X.Org Foundation
    X Server Release:  12101003
    X Window Manager:  KWin
    Steam Runtime Version:  steam-runtime_0.20220119.0

Video Card:
    Driver:  NVIDIA Corporation NVIDIA GeForce GTX 1080/PCIe/SSE2
    Driver Version:  4.6.0 NVIDIA 510.54
    OpenGL Version: 4.6
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x1b80
    Revision Not Detected
    Number of Monitors:  3
    Number of Logical Video Cards:  1
    Primary Display Resolution:  3840 x 2160
    Desktop Resolution: 3840 x 2160
    Primary Display Size: 73.70" x 41.46" (84.53" diag)
                                            187.2cm x 105.3cm (214.7cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 8192 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC892

Memory:
    RAM:  32032 MB

VR Hardware:
    VR Headset: None detected

How did you install Java?

Gradle toolchains:

javaLauncher.set(
    javaToolchains.launcherFor {
        languageVersion.set(JavaLanguageVersion.of(17))
    }
)

Did it work before?

I couldn't tell

Did you test with other Java versions?

No, but I easily do if it could be helpful, as far as Java versions pulled by Gradle are okay.

@DanySK DanySK added the bug Something isn't working label Apr 14, 2022
DanySK added a commit to DanySK/Experiment-2022-Coordination-Space-Fluid that referenced this issue Apr 14, 2022
DanySK added a commit to DanySK/Experiment-2022-Coordination-Space-Fluid that referenced this issue Apr 14, 2022
@karianna
Copy link
Contributor

Can you try with the latest 17.0.2 please?

@DanySK
Copy link
Author

DanySK commented Apr 19, 2022

I am actually reproducing it on version 17.0.3+3, should I downgrade?

@karianna
Copy link
Contributor

I am actually reproducing it on version 17.0.3+3, should I downgrade?

No, the issue must still exists. I assume the graphics drivers are all up to date etc?

@DanySK
Copy link
Author

DanySK commented Apr 20, 2022

Yes, nVidia 510.54

@karianna karianna added the jbs:needs-report Waiting for someone from our org to report to OpenJDK label Apr 20, 2022
DanySK added a commit to DanySK/experiment-2022-self-stab-leader-election that referenced this issue May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jbs:needs-report Waiting for someone from our org to report to OpenJDK
Projects
None yet
Development

No branches or pull requests

2 participants