LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.83k stars 642 forks source link

[LWJGL] [ThreadLocalUtil] Unsupported JNI version detected, this may result in a crash. Please inform LWJGL developers. #974

Closed StochasticTinkr closed 7 months ago

StochasticTinkr commented 7 months ago

Version

3.3.2

Platform

macOS x64

JDK

OpenJDK 64-Bit Server VM v21.0.1+12-29 by Oracle Corporation [

Module

LWJGL Core, GLFW, OpenGL

Bug description

Getting this output when using LWJGL. It doesn't appear to be a crash, but thought it was worth reporting it.

[LWJGL] [ThreadLocalUtil] Unsupported JNI version detected, this may result in a crash. Please inform LWJGL developers.

I set a debug break point to see what version was actually detected. GetVersion() returned 0x150000, but the latest version listed is 0x140000.

Stacktrace or crash log output

[LWJGL] Version: 3.3.2+13
     OS: Mac OS X v12.6.7
    JRE: macOS x86_64 21.0.1
    JVM: OpenJDK 64-Bit Server VM v21.0.1+12-29 by Oracle Corporation
[LWJGL] Loading JNI library: lwjgl
    Module: org.lwjgl
    Loaded from org.lwjgl.librarypath: /var/folders/gw/r04ks9c128gc8jcrzvjdf1dr0000gn/T/lwjgl_username/3.3.2+13/x64/liblwjgl.dylib
[LWJGL] Java 9 check intrinsics enabled
[LWJGL] Closure Registry: simple
[LWJGL] Warning: Failed to instantiate memory allocator: org.lwjgl.system.jemalloc.JEmallocAllocator. Using the system default.
[LWJGL] MemoryUtil allocator: StdlibAllocator
[LWJGL] Loading library: glfw_async
    Module: org.lwjgl.glfw
    Loaded from org.lwjgl.librarypath: /var/folders/gw/r04ks9c128gc8jcrzvjdf1dr0000gn/T/lwjgl_username/3.3.2+13/x64/libglfw_async.dylib
[LWJGL] Loading JNI library: lwjgl_opengl
    Module: org.lwjgl.opengl
    Loaded from org.lwjgl.librarypath: /var/folders/gw/r04ks9c128gc8jcrzvjdf1dr0000gn/T/lwjgl_username/3.3.2+13/x64/liblwjgl_opengl.dylib
[LWJGL] Loading library: /System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL
    Module: org.lwjgl.opengl
    Success
[LWJGL] [ThreadLocalUtil] Unsupported JNI version detected, this may result in a crash. Please inform LWJGL developers.
[LWJGL] Java 10 multiplyHigh enabled
octylFractal commented 7 months ago

This was fixed by https://github.com/LWJGL/lwjgl3/commit/2b5893f47f72091ef939f40fc193f3256fd5dac1 in 3.3.3, try that instead?

StochasticTinkr commented 5 months ago

Sorry I didn't follow up, yes, indeed that fixed my problem.