3arthqu4ke / headlessmc

Minecraft on the command line
https://3arthqu4ke.github.io/headlessmc/
MIT License
155 stars 18 forks source link

Usage of headlessmc-lwjgl outside of headlessmc #145

Closed snoobiegoobert closed 3 months ago

snoobiegoobert commented 6 months ago

It somewhat works as it should when being passed as a javaagent but it throws java.lang.NoClassDefFoundError: Could not initialize class com.mojang.blaze3d.systems.RenderSystem, is there any other method to running the client completely headless?

3arthqu4ke commented 6 months ago

Could you provide more information? Which version? And most importantly the entire crash log?

snoobiegoobert commented 6 months ago

Version is 1.20.4

PolyMC version: 6.0

Launched instance in online mode

authserver.mojang.com resolves to:
    [N/A]

session.minecraft.net resolves to:
    [13.107.246.40, 13.107.213.40, 2620:1ec:bdf::41, 2620:1ec:46::41]

textures.minecraft.net resolves to:
    [13.107.246.40, 13.107.213.40, 2620:1ec:46::40, 2620:1ec:bdf::40]

api.mojang.com resolves to:
    [13.107.213.40, 13.107.246.40, 2620:1ec:bdf::40, 2620:1ec:46::40]

Minecraft folder is:
C:/Users/snoobie/AppData/Roaming/PolyMC/instances/1.20.4/.minecraft

Java path is:
C:/Program Files/Java/jdk-17/bin/javaw.exe

Checking Java version...
Java is version 17.0.6, using 64 (amd64) architecture, from Oracle Corporation.

Main Class:
  net.fabricmc.loader.impl.launch.knot.KnotClient

Native path:
  C:/Users/snoobie/AppData/Roaming/PolyMC/instances/1.20.4/natives

Traits:
traits FirstThreadOnMacOS
traits XR:Initial

Libraries:
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-freetype-natives-windows-arm64/3.3.2/lwjgl-freetype-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-freetype-natives-windows-x86/3.3.2/lwjgl-freetype-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-freetype-natives-windows/3.3.2/lwjgl-freetype-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-freetype/3.3.2/lwjgl-freetype-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-glfw-natives-windows-arm64/3.3.2/lwjgl-glfw-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-glfw-natives-windows-x86/3.3.2/lwjgl-glfw-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-glfw-natives-windows/3.3.2/lwjgl-glfw-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-glfw/3.3.2/lwjgl-glfw-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-arm64/3.3.2/lwjgl-jemalloc-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-x86/3.3.2/lwjgl-jemalloc-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows/3.3.2/lwjgl-jemalloc-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc/3.3.2/lwjgl-jemalloc-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-natives-windows-arm64/3.3.2/lwjgl-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-natives-windows-x86/3.3.2/lwjgl-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-natives-windows/3.3.2/lwjgl-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-openal-natives-windows-arm64/3.3.2/lwjgl-openal-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-openal-natives-windows-x86/3.3.2/lwjgl-openal-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-openal-natives-windows/3.3.2/lwjgl-openal-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-openal/3.3.2/lwjgl-openal-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-opengl-natives-windows-arm64/3.3.2/lwjgl-opengl-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-opengl-natives-windows-x86/3.3.2/lwjgl-opengl-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-opengl-natives-windows/3.3.2/lwjgl-opengl-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-opengl/3.3.2/lwjgl-opengl-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-stb-natives-windows-arm64/3.3.2/lwjgl-stb-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-stb-natives-windows-x86/3.3.2/lwjgl-stb-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-stb-natives-windows/3.3.2/lwjgl-stb-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-stb/3.3.2/lwjgl-stb-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-arm64/3.3.2/lwjgl-tinyfd-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-x86/3.3.2/lwjgl-tinyfd-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows/3.3.2/lwjgl-tinyfd-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd/3.3.2/lwjgl-tinyfd-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl/3.3.2/lwjgl-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/github/oshi/oshi-core/6.4.5/oshi-core-6.4.5.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/ibm/icu/icu4j/73.2/icu4j-73.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/authlib/6.0.52/authlib-6.0.52.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/brigadier/1.2.9/brigadier-1.2.9.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/datafixerupper/6.0.8/datafixerupper-6.0.8.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/logging/1.1.1/logging-1.1.1.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/text2speech/1.17.9/text2speech-1.17.9.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/commons/commons-compress/1.22/commons-compress-1.22.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/logging/log4j/log4j-api/2.19.0/log4j-api-2.19.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/logging/log4j/log4j-core/2.19.0/log4j-core-2.19.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.19.0/log4j-slf4j2-impl-2.19.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/fabricmc/intermediary/1.20.4/intermediary-1.20.4.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/ow2/asm/asm/9.6/asm-9.6.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/ow2/asm/asm-analysis/9.6/asm-analysis-9.6.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/ow2/asm/asm-commons/9.6/asm-commons-9.6.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/ow2/asm/asm-tree/9.6/asm-tree-9.6.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/ow2/asm/asm-util/9.6/asm-util-9.6.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/fabricmc/sponge-mixin/0.12.5+mixin.0.8.5/sponge-mixin-0.12.5+mixin.0.8.5.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/fabricmc/fabric-loader/0.15.3/fabric-loader-0.15.3.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/minecraft/1.20.4/minecraft-1.20.4-client.jar

Native libraries:

Mods:

Params:
  --username  --version 1.20.4 --gameDir C:/Users/snoobie/AppData/Roaming/PolyMC/instances/1.20.4/.minecraft --assetsDir C:/Users/snoobie/AppData/Roaming/PolyMC/assets --assetIndex 12 --uuid  --accessToken  --userType  --versionType release

Window size: 854 x 480

Java Arguments:
[-javaagent:C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/headlessmc-lwjgl-1.9.5.jar, -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump, -Xms512m, -Xmx8096m, -Duser.language=en]

Minecraft process ID: 17276

[06:56:02] [main/INFO]: Loading Minecraft 1.20.4 with Fabric Loader 0.15.3
[06:56:02] [main/INFO]: Loading 4 mods:
    - fabricloader 0.15.3
       \-- mixinextras 0.3.2
    - java 17
    - minecraft 1.20.4
[06:56:02] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/fabricmc/sponge-mixin/0.12.5+mixin.0.8.5/sponge-mixin-0.12.5+mixin.0.8.5.jar Service=Knot/Fabric Env=CLIENT
[06:56:11] [Datafixer Bootstrap/INFO]: 198 Datafixer optimizations took 121 milliseconds
[06:56:16] [Render thread/ERROR]: Minecraft has crashed!
net.fabricmc.loader.impl.FormattedException: java.lang.NoClassDefFoundError: Could not initialize class com.mojang.blaze3d.systems.RenderSystem
    at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:63) ~[fabric-loader-0.15.3.jar:?]
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:472) ~[fabric-loader-0.15.3.jar:?]
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.15.3.jar:?]
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.15.3.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at org.polymc.impl.OneSixLauncher.invokeMain(OneSixLauncher.java:104) ~[NewLaunch.jar:?]
    at org.polymc.impl.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:176) ~[NewLaunch.jar:?]
    at org.polymc.impl.OneSixLauncher.launch(OneSixLauncher.java:186) ~[NewLaunch.jar:?]
    at org.polymc.EntryPoint.listen(EntryPoint.java:144) ~[NewLaunch.jar:?]
    at org.polymc.EntryPoint.main(EntryPoint.java:74) ~[NewLaunch.jar:?]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.mojang.blaze3d.systems.RenderSystem
    at net.minecraft.class_6396.method_37123(class_6396.java:66) ~[client-intermediary.jar:?]
    at net.minecraft.class_310.method_37274(class_310.java:2605) ~[client-intermediary.jar:?]
    at net.minecraft.class_310.method_22681(class_310.java:2580) ~[client-intermediary.jar:?]
    at net.minecraft.client.main.Main.main(Main.java:233) ~[minecraft-1.20.4-client.jar:?]
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) ~[fabric-loader-0.15.3.jar:?]
    ... 11 more
Process exited with code 1.
snoobiegoobert commented 6 months ago

Without fabric

PolyMC version: 6.0

Launched instance in online mode

authserver.mojang.com resolves to:
    [N/A]

session.minecraft.net resolves to:
    [13.107.246.41, 13.107.213.41, 2620:1ec:bdf::40, 2620:1ec:46::40]

textures.minecraft.net resolves to:
    [13.107.246.41, 13.107.213.41, 2620:1ec:bdf::40, 2620:1ec:46::40]

api.mojang.com resolves to:
    [13.107.213.41, 13.107.246.41, 2620:1ec:bdf::40, 2620:1ec:46::40]

Minecraft folder is:
C:/Users/snoobie/AppData/Roaming/PolyMC/instances/1.20.4/.minecraft

Java path is:
C:/Program Files/Java/jdk-17/bin/javaw.exe

Checking Java version...
Java is version 17.0.6, using 64 (amd64) architecture, from Oracle Corporation.

Main Class:
  net.minecraft.client.main.Main

Native path:
  C:/Users/snoobie/AppData/Roaming/PolyMC/instances/1.20.4/natives

Traits:
traits FirstThreadOnMacOS
traits XR:Initial

Libraries:
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-freetype-natives-windows-arm64/3.3.2/lwjgl-freetype-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-freetype-natives-windows-x86/3.3.2/lwjgl-freetype-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-freetype-natives-windows/3.3.2/lwjgl-freetype-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-freetype/3.3.2/lwjgl-freetype-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-glfw-natives-windows-arm64/3.3.2/lwjgl-glfw-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-glfw-natives-windows-x86/3.3.2/lwjgl-glfw-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-glfw-natives-windows/3.3.2/lwjgl-glfw-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-glfw/3.3.2/lwjgl-glfw-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-arm64/3.3.2/lwjgl-jemalloc-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-x86/3.3.2/lwjgl-jemalloc-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows/3.3.2/lwjgl-jemalloc-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-jemalloc/3.3.2/lwjgl-jemalloc-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-natives-windows-arm64/3.3.2/lwjgl-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-natives-windows-x86/3.3.2/lwjgl-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-natives-windows/3.3.2/lwjgl-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-openal-natives-windows-arm64/3.3.2/lwjgl-openal-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-openal-natives-windows-x86/3.3.2/lwjgl-openal-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-openal-natives-windows/3.3.2/lwjgl-openal-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-openal/3.3.2/lwjgl-openal-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-opengl-natives-windows-arm64/3.3.2/lwjgl-opengl-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-opengl-natives-windows-x86/3.3.2/lwjgl-opengl-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-opengl-natives-windows/3.3.2/lwjgl-opengl-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-opengl/3.3.2/lwjgl-opengl-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-stb-natives-windows-arm64/3.3.2/lwjgl-stb-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-stb-natives-windows-x86/3.3.2/lwjgl-stb-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-stb-natives-windows/3.3.2/lwjgl-stb-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-stb/3.3.2/lwjgl-stb-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-arm64/3.3.2/lwjgl-tinyfd-natives-windows-arm64-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-x86/3.3.2/lwjgl-tinyfd-natives-windows-x86-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows/3.3.2/lwjgl-tinyfd-natives-windows-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl-tinyfd/3.3.2/lwjgl-tinyfd-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/lwjgl/lwjgl/3.3.2/lwjgl-3.3.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/github/oshi/oshi-core/6.4.5/oshi-core-6.4.5.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/ibm/icu/icu4j/73.2/icu4j-73.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/authlib/6.0.52/authlib-6.0.52.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/brigadier/1.2.9/brigadier-1.2.9.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/datafixerupper/6.0.8/datafixerupper-6.0.8.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/logging/1.1.1/logging-1.1.1.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/text2speech/1.17.9/text2speech-1.17.9.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/commons/commons-compress/1.22/commons-compress-1.22.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/logging/log4j/log4j-api/2.19.0/log4j-api-2.19.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/logging/log4j/log4j-core/2.19.0/log4j-core-2.19.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.19.0/log4j-slf4j2-impl-2.19.0.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/net/fabricmc/intermediary/1.20.4/intermediary-1.20.4.jar
  C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/com/mojang/minecraft/1.20.4/minecraft-1.20.4-client.jar

Native libraries:

Mods:

Params:
  --username  --version 1.20.4 --gameDir C:/Users/snoobie/AppData/Roaming/PolyMC/instances/1.20.4/.minecraft --assetsDir C:/Users/snoobie/AppData/Roaming/PolyMC/assets --assetIndex 12 --uuid  --accessToken  --userType  --versionType release

Window size: 854 x 480

Java Arguments:
[-javaagent:C:/Users/snoobie/AppData/Roaming/PolyMC/libraries/headlessmc-lwjgl-1.9.5.jar, -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump, -Xms512m, -Xmx8096m, -Duser.language=en]

Minecraft process ID: 1108

[07:00:33] [Datafixer Bootstrap/INFO]: 198 Datafixer optimizations took 101 milliseconds
[07:00:35] [Render thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[07:00:35] [Render thread/INFO]: Backend library: LWJGL version 
[07:00:35] [Render thread/WARN]: Not setting icon for unrecognized platform: 0
[07:00:35] [Render thread/WARN]: Removed resource pack fabric from options because it doesn't seem to exist anymore
[07:00:35] [Render thread/INFO]: Reloading ResourceManager: vanilla
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffcc85151e7, pid=1108, tid=15972
#
# JRE version: Java(TM) SE Runtime Environment (17.0.6+9) (build 17.0.6+9-LTS-190)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.6+9-LTS-190, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# 
V  [jvm.dll+0x7a51e7]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\snoobie\AppData\Roaming\PolyMC\instances\1.20.4\.minecraft\hs_err_pid1108.log
Compiled method (n/a)    5283 7140     n 0       jdk.internal.misc.Unsafe::putLong (native)
 total in heap  [0x000001bc2b2c6290,0x000001bc2b2c6650] = 960
 relocation     [0x000001bc2b2c63e8,0x000001bc2b2c6418] = 48
 main code      [0x000001bc2b2c6420,0x000001bc2b2c6650] = 560
Compiled method (n/a)    5291 7140     n 0       jdk.internal.misc.Unsafe::putLong (native)
 total in heap  [0x000001bc2b2c6290,0x000001bc2b2c6650] = 960
 relocation     [0x000001bc2b2c63e8,0x000001bc2b2c6418] = 48
 main code      [0x000001bc2b2c6420,0x000001bc2b2c6650] = 560
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Process exited with code 1.
3arthqu4ke commented 6 months ago

Ah, my bad since documentation on the javaagent is not that good. Try the following:

For me a TODO will be to make the javaagent add those system properties by itself at some point.

snoobiegoobert commented 6 months ago

Worked perfectly, thanks so much for the help