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

[BUG] Vulkan Zink not working #6695

Open
TheHisoka opened this issue Mar 4, 2025 · 1 comment
Open

[BUG] Vulkan Zink not working #6695

TheHisoka opened this issue Mar 4, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@TheHisoka
Copy link

Describe the bug

Only LTW and Holy renderer works fine , Zink never worked same with Angle too.

The log file and images/videos

--------- Starting game with Launcher Debug!
Info: Launcher version: gladiolus-20250118-c04e3af-v3_openjdk
Info: Architecture: arm64
Info: Device model: vivo I2302
Info: API version: 35
Info: Selected Minecraft version: 1.21.1
Info: Custom Java arguments: ""
Added custom env: TMPDIR=/data/user/0/net.kdt.pojavlaunch/cache
Added custom env: AWTSTUB_WIDTH=2306
Added custom env: FORCE_VSYNC=false
Added custom env: POJAV_BIG_CORE_AFFINITY=1
Added custom env: POJAV_NATIVEDIR=/data/app/~~e_dGmn2p1dunp4vJFTbrEQ==/net.kdt.pojavlaunch-WANa8Zzwy-qIauWZEPyUtQ==/lib/arm64
Added custom env: LIBGL_MIPMAP=3
Added custom env: allow_higher_compat_version=true
Added custom env: MESA_GLSL_CACHE_DIR=/data/user/0/net.kdt.pojavlaunch/cache
Added custom env: HOME=/storage/emulated/0/Android/data/net.kdt.pojavlaunch/files
Added custom env: PATH=/data/user/0/net.kdt.pojavlaunch/runtimes/Internal-21/bin:/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin
Added custom env: LIBGL_NOINTOVLHACK=1
Added custom env: force_glsl_extensions_warn=true
Added custom env: LIBGL_NORMALIZE=1
Added custom env: LD_LIBRARY_PATH=/data/user/0/net.kdt.pojavlaunch/runtimes/Internal-21/lib/jli:/data/user/0/net.kdt.pojavlaunch/runtimes/Internal-21/lib:/system/lib64:/vendor/lib64:/vendor/lib64/hw:/data/app/~~e_dGmn2p1dunp4vJFTbrEQ==/net.kdt.pojavlaunch-WANa8Zzwy-qIauWZEPyUtQ==/lib/arm64
Added custom env: LIBGL_NOERROR=1
Added custom env: POJAV_RENDERER=vulkan_zink
Added custom env: LIBGL_ES=2
Added custom env: VTEST_SOCKET_NAME=/data/user/0/net.kdt.pojavlaunch/cache/.virgl_test
Added custom env: MESA_LOADER_DRIVER_OVERRIDE=zink
Added custom env: JAVA_HOME=/data/user/0/net.kdt.pojavlaunch/runtimes/Internal-21
Added custom env: allow_glsl_extension_directive_midshader=true
Added custom env: AWTSTUB_HEIGHT=1080
--------- beginning of main
I/jrelog (20896): dlopen /data/user/0/net.kdt.pojavlaunch/runtimes/Internal-21/lib/libjli.so success
I/jrelog (20896): dlopen libjvm.so failed: dlopen failed: library "libjvm.so" not found

java.lang.UnsupportedOperationException
at java.base/java.lang.invoke.VarForm.getMemberName(VarForm.java:118)
at com.github.caciocavallosilano.cacio.ctc.CTCPreloadClassLoader.makeNonFinal(CTCPreloadClassLoader.java:125)
at com.github.caciocavallosilano.cacio.ctc.CTCPreloadClassLoader.(CTCPreloadClassLoader.java:70)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:103)
at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:200)
at java.base/java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:549)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at java.base/java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:2012)
at java.base/java.lang.System.initPhase3(System.java:2329)
ERROR StatusConsoleListener appender Console has no parameter that matches element Policies
[16:55:44] [main/WARN]: Failed retrieving info for group processor
java.lang.Error:

There is an incompatible JNA native library installed on this system
Expected: 7.0.0
Found: 6.1.6
(at /data/app/~~e_dGmn2p1dunp4vJFTbrEQ==/net.kdt.pojavlaunch-WANa8Zzwy-qIauWZEPyUtQ==/lib/arm64/libjnidispatch.so).
To resolve this issue you may do one of the following:

  • remove or uninstall the offending library

  • set the system property jna.nosys=true

  • set jna.boot.library.path to include the path to the version of the
    jnidispatch library included with the JNA jar file you are using

    at com.sun.jna.Native.(Native.java:230) ~[jna-5.14.0.jar:5.14.0 (b0)]
    at com.sun.jna.platform.linux.Udev.(Udev.java:37) ~[jna-platform-5.14.0.jar:5.14.0 (b0)]
    at oshi.software.os.linux.LinuxOperatingSystem.(LinuxOperatingSystem.java:80) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.platform.linux.LinuxCentralProcessor.initProcessorCounts(LinuxCentralProcessor.java:171) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.common.AbstractCentralProcessor.(AbstractCentralProcessor.java:67) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.platform.linux.LinuxCentralProcessor.(LinuxCentralProcessor.java:58) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.createProcessor(LinuxHardwareAbstractionLayer.java:43) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.util.Memoizer$1.get(Memoizer.java:61) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.common.AbstractHardwareAbstractionLayer.getProcessor(AbstractHardwareAbstractionLayer.java:48) ~[oshi-core-6.4.10.jar:6.4.10]
    at ac.c(SourceFile:79) ~[1.21.1.jar:?]
    at ac.a(SourceFile:87) ~[1.21.1.jar:?]
    at ac.a(SourceFile:79) ~[1.21.1.jar:?]
    at ac.e(SourceFile:56) ~[1.21.1.jar:?]
    at ac.a(SourceFile:87) [1.21.1.jar:?]
    at ac.(SourceFile:56) [1.21.1.jar:?]
    at o.(SourceFile:35) [1.21.1.jar:?]
    at o.g(SourceFile:234) [1.21.1.jar:?]
    at net.minecraft.client.main.Main.main(SourceFile:125) [1.21.1.jar:?]
    [16:55:45] [main/WARN]: Failed retrieving info for group memory
    java.lang.NoClassDefFoundError: Could not initialize class oshi.software.os.linux.LinuxOperatingSystem
    at oshi.hardware.platform.linux.LinuxGlobalMemory.(LinuxGlobalMemory.java:28) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.createMemory(LinuxHardwareAbstractionLayer.java:38) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.util.Memoizer$1.get(Memoizer.java:61) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.common.AbstractHardwareAbstractionLayer.getMemory(AbstractHardwareAbstractionLayer.java:60) ~[oshi-core-6.4.10.jar:6.4.10]
    at ac.a(SourceFile:81) ~[1.21.1.jar:?]
    at ac.a(SourceFile:87) ~[1.21.1.jar:?]
    at ac.a(SourceFile:81) ~[1.21.1.jar:?]
    at ac.e(SourceFile:56) ~[1.21.1.jar:?]
    at ac.a(SourceFile:87) [1.21.1.jar:?]
    at ac.(SourceFile:56) [1.21.1.jar:?]
    at o.(SourceFile:35) [1.21.1.jar:?]
    at o.g(SourceFile:234) [1.21.1.jar:?]
    at net.minecraft.client.main.Main.main(SourceFile:125) [1.21.1.jar:?]
    Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.Error:

There is an incompatible JNA native library installed on this system
Expected: 7.0.0
Found: 6.1.6
(at /data/app/~~e_dGmn2p1dunp4vJFTbrEQ==/net.kdt.pojavlaunch-WANa8Zzwy-qIauWZEPyUtQ==/lib/arm64/libjnidispatch.so).
To resolve this issue you may do one of the following:

  • remove or uninstall the offending library
  • set the system property jna.nosys=true
  • set jna.boot.library.path to include the path to the version of the
    jnidispatch library included with the JNA jar file you are using
    [in thread "main"]
    at com.sun.jna.Native.(Native.java:230) ~[jna-5.14.0.jar:5.14.0 (b0)]
    at com.sun.jna.platform.linux.Udev.(Udev.java:37) ~[jna-platform-5.14.0.jar:5.14.0 (b0)]
    at oshi.software.os.linux.LinuxOperatingSystem.(LinuxOperatingSystem.java:80) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.platform.linux.LinuxCentralProcessor.initProcessorCounts(LinuxCentralProcessor.java:171) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.common.AbstractCentralProcessor.(AbstractCentralProcessor.java:67) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.platform.linux.LinuxCentralProcessor.(LinuxCentralProcessor.java:58) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.createProcessor(LinuxHardwareAbstractionLayer.java:43) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.util.Memoizer$1.get(Memoizer.java:61) ~[oshi-core-6.4.10.jar:6.4.10]
    at oshi.hardware.common.AbstractHardwareAbstractionLayer.getProcessor(AbstractHardwareAbstractionLayer.java:48) ~[oshi-core-6.4.10.jar:6.4.10]
    at ac.c(SourceFile:79) ~[1.21.1.jar:?]
    at ac.a(SourceFile:87) ~[1.21.1.jar:?]
    at ac.a(SourceFile:79) ~[1.21.1.jar:?]
    ... 6 more
    [16:55:45] [Datafixer Bootstrap/INFO]: 226 Datafixer optimizations took 652 milliseconds
    [16:55:51] [Render thread/INFO]: [STDERR]: [LWJGL] [ERROR] Incompatible Java and native library versions detected.
    Possible reasons:
    a) -Djava.library.path is set to a folder containing shared libraries of an older LWJGL version.
    b) The classpath contains jar files of an older LWJGL version.
    Possible solutions:
    a) Make sure to not set -Djava.library.path (it is not needed for developing with LWJGL 3) or make
    sure the folder it points to contains the shared libraries of the correct LWJGL version.
    b) Check the classpath and make sure to only have jar files of the same LWJGL version in it.
    [LWJGL] Failed to load a library. Possible solutions:
    a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
    b) Add the JAR that contains the shared library to the classpath.
    [LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
    [LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
    [16:55:51] [Render thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
    [16:55:52] [Render thread/INFO]: Setting user: Bright
    Registered forkAndExec
    [16:55:52] [Render thread/ERROR]: Error parsing option value off for option Fullscreen: Not a boolean: "off"
    [16:55:52] [Render thread/INFO]: Backend library: LWJGL version 3.3.3-snapshot
    OSMDroid: loading vulkan regularly...
    OSMDroid: loaded vulkan, ptr=0x7112e1879ba866e9
    WARNING: Some incorrect rendering might occur because the selected Vulkan device (Mali-G610 MC4) doesn't support base Zink requirements: feats.features.logicOp feats.features.fillModeNonSolid feats.features.shaderClipDistance

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x0000007360ef4a10, pid=20896, tid=21490

JRE version: OpenJDK Runtime Environment (21.0.1) (build 21.0.1-internal-adhoc.runner.openjdk-21)

Java VM: OpenJDK 64-Bit Server VM (21.0.1-internal-adhoc.runner.openjdk-21, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)

Problematic frame:

C [libOSMesa.so+0xae9a10]

Core dump will be written. Default location: core.20896 (may not exist)

An error report file with more information is saved as:

/storage/emulated/0/Android/data/net.kdt.pojavlaunch/files/.minecraft/hs_err_pid20896.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.

Steps To Reproduce

Start , crash

Expected Behavior

Mine friend has the same device model , but his device works well with Zink renderer.

Platform

- Device model: iQOO Z9 ( Vivo 12302 )
- CPU architecture: Dimensity 7200
- Android version: 15
- PojavLauncher version: lastest (GitHub)

Anything else?

No response

@TheHisoka TheHisoka added the bug Something isn't working label Mar 4, 2025
@Jakjsjsjsj
Copy link

It might be that your on android 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants