Fabric Zero (Discontinued)

Fabric Zero (Discontinued)

11.9k Downloads

Crash on Java9 and higher

Titaniumtown opened this issue ยท 17 comments

commented

Java9 support is not yet available and will come in a future release

commented

oh...ok thanks

commented

I hate the latest version of java blocking reflection at all cost
If this continues I will use a different approach to get the unsafe
(It's the fault of no one here I just wanted to expresses my frustration toward the latest version of java)

The class Java9Fix only exists because of that
But apparently, for the latest version of Java, this is not enough.
(My mod is supposed to remove these restrictions to improve mod compatibility)

commented

Crashed for me too I was using NotEnoughtCrashes and it generated this report:

---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.

Time: 2020-08-06 10:52:34 CET
Description: Initializing game

net.fabricmc.loader.api.EntrypointException: Exception while loading entries for entrypoint 'main' provided by 'fabriczero'
    at Not Enough Crashes deobfuscated stack trace.(1.16.1+build.20)
    at net.fabricmc.loader.EntrypointStorage.getEntrypointContainers(EntrypointStorage.java:193)
    at net.fabricmc.loader.FabricLoader.getEntrypointContainers(FabricLoader.java:251)
    at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:44)
    at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke(EntrypointUtils.java:36)
    at net.minecraft.client.MinecraftClient.redirect$zbk000$stopFabricInit(MinecraftClient:3791)
    at net.minecraft.client.MinecraftClient.<init>(MinecraftClient:425)
    at net.minecraft.client.main.Main.main(Main:177)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192)
    at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140)
    at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
Caused by: java.lang.NoClassDefFoundError: com.fox2code.fabriczero.FabricZeroPlugin (initialization failure)
    at java.lang.J9VMInternals.initializationAlreadyFailed(Unknown Source)
    at com.fox2code.fabriczero.mod.FabricZero.<clinit>(FabricZero.java:13)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at net.fabricmc.loader.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:45)
    at net.fabricmc.loader.EntrypointStorage$NewEntry.create(EntrypointStorage.java:114)
    at net.fabricmc.loader.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:101)
    at net.fabricmc.loader.EntrypointStorage.getEntrypointContainers(EntrypointStorage.java:186)
    ... 13 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private static final jdk.internal.misc.Unsafe jdk.internal.misc.Unsafe.theUnsafe accessible: module java.base does not "opens jdk.internal.misc" to unnamed module @492c8098
    at java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
    at java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
    at java.lang.reflect.Field.checkCanSetAccessible(Unknown Source)
    at java.lang.reflect.Field.setAccessible(Unknown Source)
    at com.fox2code.fabriczero.reflectutils.Java9Fix.<clinit>(Java9Fix.java:33)
    at com.fox2code.fabriczero.reflectutils.ReflectUtil.forceGet(ReflectUtil.java:59)
    at com.fox2code.fabriczero.FabricZeroPlugin.<clinit>(FabricZeroPlugin.java:41)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at net.fabricmc.loader.launch.knot.MixinServiceKnot.findClass(MixinServiceKnot.java:83)
    at org.spongepowered.asm.mixin.transformer.PluginHandle.<init>(PluginHandle.java:96)
    at org.spongepowered.asm.mixin.transformer.MixinConfig.onSelect(MixinConfig.java:598)
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.selectConfigs(MixinProcessor.java:476)
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:438)
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:416)
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:285)
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:191)
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:178)
    at org.spongepowered.asm.mixin.transformer.FabricMixinTransformerProxy.transformClassBytes(FabricMixinTransformerProxy.java:23)
    at net.fabricmc.loader.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:157)
    at net.fabricmc.loader.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:143)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:190)
    ... 2 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Initialization --

-- System Details --
  Minecraft Version: 1.16.1
  Minecraft Version ID: 1.16.1
  Operating System: Linux (amd64) version 4.19.0-10-amd64
  Java Version: 14.0.2, AdoptOpenJDK
  Java VM Version: Eclipse OpenJ9 VM (JRE 14 Linux amd64-64-Bit Compressed References 20200715_149 (JIT enabled, AOT enabled)
                   OpenJ9   - 34cf4c075
                   OMR      - 113e54219
                   JCL      - 1d231bd6a2 based on jdk-14.0.2+12), Eclipse OpenJ9
  Memory: 104017544 bytes (99 MB) / 347537408 bytes (331 MB) up to 1073741824 bytes (1024 MB)
  CPUs: 2
  JVM Flags: 11 total; -Xoptionsfile=/usr/lib/jvm/jdk-14.0.2+12-jre/lib/options.default -Xlockword:mode=default,noLockword=java/lang/String,noLockword=java/util/MapEntry,noLockword=java/util/HashMap$Entry,noLockword=org/apache/harmony/luni/util/ModifiedMap$Entry,noLockword=java/util/Hashtable$Entry,noLockword=java/lang/invoke/MethodType,noLockword=java/lang/invoke/MethodHandle,noLockword=java/lang/invoke/CollectHandle,noLockword=java/lang/invoke/ConstructorHandle,noLockword=java/lang/invoke/ConvertHandle,noLockword=java/lang/invoke/ArgumentConversionHandle,noLockword=java/lang/invoke/AsTypeHandle,noLockword=java/lang/invoke/ExplicitCastHandle,noLockword=java/lang/invoke/FilterReturnHandle,noLockword=java/lang/invoke/DirectHandle,noLockword=java/lang/invoke/ReceiverBoundHandle,noLockword=java/lang/invoke/DynamicInvokerHandle,noLockword=java/lang/invoke/FieldHandle,noLockword=java/lang/invoke/FieldGetterHandle,noLockword=java/lang/invoke/FieldSetterHandle,noLockword=java/lang/invoke/StaticFieldGetterHandle,noLockword=java/lang/invoke/StaticFieldSetterHandle,noLockword=java/lang/invoke/IndirectHandle,noLockword=java/lang/invoke/InterfaceHandle,noLockword=java/lang/invoke/VirtualHandle,noLockword=java/lang/invoke/PrimitiveHandle,noLockword=java/lang/invoke/InvokeExactHandle,noLockword=java/lang/invoke/InvokeGenericHandle,noLockword=java/lang/invoke/VarargsCollectorHandle,noLockword=java/lang/invoke/ThunkTuple -Xjcl:jclse29 -Xss1M -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
  Suspected Mods: Fabric Loader (fabricloader), Fabric Zero (fabriczero)
  Fabric Mods: carpet: Carpet Mod in Fabric 1.4.0
               cloth-basic-math: Cloth Basic Math 0.5.1
               cloth-config2: Cloth Config v4 4.6.0
               cotton-client-commands: Cotton Client Commands 1.0.1+1.16-rc1
               fabric: Fabric API 0.16.2+build.385-1.16.1
               fabric-api-base: Fabric API Base 0.1.3+12a8474c02
               fabric-biomes-v1: Fabric Biomes (v1) 0.2.7+059ea86602
               fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.4+c6a8ea8902
               fabric-command-api-v1: Fabric Command API (v1) 1.0.8+5ce5339802
               fabric-commands-v0: Fabric Commands (v0) 0.2.0+52d3083602
               fabric-containers-v0: Fabric Containers (v0) 0.1.8+045df74f02
               fabric-content-registries-v0: Fabric Content Registries (v0) 0.1.9+059ea86602
               fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.2+b7f9825d02
               fabric-dimensions-v1: fabric-dimensions-v1 1.0.0+a71b305302
               fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.3.3+7066030f02
               fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.0+16acbe5b02
               fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.0+fe81e12502
               fabric-item-api-v1: Fabric Item API (v1) 1.0.0+16acbe5b02
               fabric-item-groups-v0: Fabric Item Groups (v0) 0.2.0+438f963602
               fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.1+f404f3be02
               fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.0+3fa9f7c502
               fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.2.0+e83e061c02
               fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.0+386eb69e02
               fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.2+b764ce9902
               fabric-models-v0: Fabric Models (v0) 0.1.0+dfdb52d602
               fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.5+b50ffc7b02
               fabric-networking-v0: Fabric Networking (v0) 0.1.10+e00ecb5f02
               fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.5.6+a2d21ddd02
               fabric-object-builders-v0: Fabric Object Builders (v0) 0.6.1+a2d21ddd02
               fabric-particles-v1: fabric-particles-v1 0.2.1+0a6f2a7002
               fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.3.8+7dba2d6c02
               fabric-renderer-api-v1: Fabric Renderer API (v1) 0.2.13+eae12eb802
               fabric-renderer-indigo: Fabric Renderer - Indigo 0.3.4+34d6c87102
               fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 2.0.1+5a0f9a6002
               fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.3+b7f9825d02
               fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.8+b7084faa02
               fabric-rendering-v0: Fabric Rendering (v0) 1.1.0+5341049002
               fabric-rendering-v1: Fabric Rendering (v1) 1.1.2+346247d702
               fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.2.6+f41e209802
               fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.0+97324d1102
               fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 0.2.7+a4c57d8e02
               fabric-textures-v0: Fabric Textures (v0) 1.0.4+eae12eb802
               fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.0+55e0cc5f02
               fabricloader: Fabric Loader 0.9.0+build.204
               fabriczero: Fabric Zero 0.1.0
               fastbench: FastBench 2.3
               fastfurnace: FastFurnace 2.2
               lithium: Lithium 0.5.1
               loadcatcher: Entrypoint Catcher 2.0.0
               minecraft: Minecraft 1.16.1
               modmenu: Mod Menu 1.14.5+build.30
               net_gegy1000_just-now: just-now 0.1.0-SNAPSHOT
               notenoughcrashes: Not Enough Crashes 2.1.0+1.16.1
               overworld_two: Overworld 2 1.0.0
               phosphor: Phosphor 0.6.0+build.7
               sodium: Sodium 0.1.0-SNAPSHOT
               tic_tacs: Tic-TACS 1.0.0
               tiny: Tiny Mod 0.0.2
  Launched Version: 1.16.1
  Backend library: LWJGL version 3.2.2 build 10
  Backend API: NO CONTEXT
  GL Caps: 
  Using VBOs: Yes
  Is Modded: Definitely; Client brand changed to 'fabric'
  Type: Client (map_client.txt)
  CPU: <unknown>

commented

Checked for 6 hours and didn't find a way to fix this bug for now.
It's because the JVM disable Reflection on non public fields and this prevents FabricZero to work
And since almost the entire mod is dependent on that I can't do anything about it.
The only idea I have is to use C++ code to disable the restrictions on the JVM via JNI

commented

I won't spend any more times because I have others things to do.
Just to know if someone as a way to fix it I will accept it.
Also I added a workaround to allow to launch the game with Java9+ by adding -Xverify:none

commented

You can download the latest version in releases -> https://github.com/Fox2Code/FabricZero/releases

commented

Sodium will not run with -noverify or -Xverify:none.

commented

`[19:32:19] [main/FATAL]: Reported exception thrown!
net.minecraft.class_148: Rendering overlay
at net.minecraft.class_757.method_3192(class_757.java:599) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_310.method_1523(class_310.java:1021) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_310.method_1514(class_310.java:654) [intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.client.main.Main.main(Main.java:215) [intermediary-minecraft-1.16.1-client.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192) [fabric-loader-0.9.1+build.205.jar:?]
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140) [fabric-loader-0.9.1+build.205.jar:?]
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26) [fabric-loader-0.9.1+build.205.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196) [NewLaunch.jar:?]
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231) [NewLaunch.jar:?]
at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?]
at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?]
Caused by: java.lang.IllegalAccessError: class me.jellysquid.mods.sodium.client.util.UnsafeUtil (in unnamed module @0x2228db21) cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @0x2228db21
at me.jellysquid.mods.sodium.client.util.UnsafeUtil.findUnsafe(UnsafeUtil.java:35) ~[sodium-fabric-mc1.16.1-0.1.0.jar:?]
at me.jellysquid.mods.sodium.client.util.UnsafeUtil.(UnsafeUtil.java:21) ~[sodium-fabric-mc1.16.1-0.1.0.jar:?]
at net.minecraft.class_1159.method_4932(class_1159.java:955) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_4493.method_21971(class_4493.java:1417) ~[intermediary-minecraft-1.16.1-client.jar:?]
at com.mojang.blaze3d.systems.RenderSystem.multMatrix(RenderSystem.java:921) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_751.method_3156(class_751.java:35) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_766.method_3317(class_766.java:19) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_442.redirect$bai000$thing(class_442.java:1555) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_442.method_25394(class_442.java:201) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_425.method_25394(class_425.java:75) ~[intermediary-minecraft-1.16.1-client.jar:?]
at net.minecraft.class_757.method_3192(class_757.java:592) ~[intermediary-minecraft-1.16.1-client.jar:?]
... 18 more
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 8/13/20, 7:32 PM
Description: Rendering overlay

java.lang.IllegalAccessError: class me.jellysquid.mods.sodium.client.util.UnsafeUtil (in unnamed module @0x2228db21) cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @0x2228db21
at me.jellysquid.mods.sodium.client.util.UnsafeUtil.findUnsafe(UnsafeUtil.java:35)
at me.jellysquid.mods.sodium.client.util.UnsafeUtil.(UnsafeUtil.java:21)
at net.minecraft.class_1159.method_4932(class_1159.java:955)
at net.minecraft.class_4493.method_21971(class_4493.java:1417)
at com.mojang.blaze3d.systems.RenderSystem.multMatrix(RenderSystem.java:921)
at net.minecraft.class_751.method_3156(class_751.java:35)
at net.minecraft.class_766.method_3317(class_766.java:19)
at net.minecraft.class_442.redirect$bai000$thing(class_442.java:1555)
at net.minecraft.class_442.method_25394(class_442.java:201)
at net.minecraft.class_425.method_25394(class_425.java:75)
at net.minecraft.class_757.method_3192(class_757.java:592)
at net.minecraft.class_310.method_1523(class_310.java:1021)
at net.minecraft.class_310.method_1514(class_310.java:654)
at net.minecraft.client.main.Main.main(Main.java:215)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Render thread
Stacktrace:
at me.jellysquid.mods.sodium.client.util.UnsafeUtil.findUnsafe(UnsafeUtil.java:35)
at me.jellysquid.mods.sodium.client.util.UnsafeUtil.(UnsafeUtil.java:21)
at net.minecraft.class_1159.method_4932(class_1159.java:955)
at net.minecraft.class_4493.method_21971(class_4493.java:1417)
at com.mojang.blaze3d.systems.RenderSystem.multMatrix(RenderSystem.java:921)
at net.minecraft.class_751.method_3156(class_751.java:35)
at net.minecraft.class_766.method_3317(class_766.java:19)
at net.minecraft.class_442.redirect$bai000$thing(class_442.java:1555)
at net.minecraft.class_442.method_25394(class_442.java:201)
at net.minecraft.class_425.method_25394(class_425.java:75)

-- Overlay render details --
Details:
Overlay name: net.minecraft.class_425
Stacktrace:
at net.minecraft.class_757.method_3192(class_757.java:592)
at net.minecraft.class_310.method_1523(class_310.java:1021)
at net.minecraft.class_310.method_1514(class_310.java:654)
at net.minecraft.client.main.Main.main(Main.java:215)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
`

commented

@satyrnhub I will do a patch because it's a JVM problem should be fixed in the next version of FabricZero but it's not totally related to this issue.

Anyways thanks for reporting it will be fixed very soon.

commented

Thanks!

commented

@satyrnhub
I fixed your bug yeasterday, just add --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/jdk.internal.vm.annotation=ALL-UNNAMED on top of the previous JVM arguments.

commented

Working, thanks!

commented

Crashes with Java 14.

Edit: actually crashes Java 9+. I use AdoptOpenJDK.

commented

Without any mod installed:

Edit: there was no crash report, following is the console output.

OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. [17:29:53] [main/INFO]: Loading for game Minecraft 1.16.2 [17:29:54] [main/INFO]: [FabricLoader] Loading 41 mods: [email protected]+872498414e, [email protected], [email protected]+eae12eb84e, [email protected]+b50ffc7b4e, [email protected]+3fa9f7c54e, [email protected]+5ce533984e, [email protected]+build.206, [email protected]+ccce563e4e, [email protected]+516ece7c4e, [email protected]+5d32f5834e, [email protected], [email protected]+045df74f4e, [email protected]+e81ec80b4e, [email protected]+b7f9825d4e, [email protected]+e2e6cdad4e, [email protected]+29679fd64e, [email protected]+91555cd14e, [email protected]+12a8474c4e, [email protected]+534104904e, [email protected]+fc24ff244e, [email protected]+730711c64e, [email protected]+b7f9825d4e, [email protected]+e5d3217f4e, [email protected]+eae12eb84e, [email protected]+059ea8664e, [email protected]+ac8e8c594e, [email protected]+e5d3217f4e, [email protected]+52d308364e, [email protected]+e5d3217f4e, [email protected]+c6a8ea894e, [email protected]+74cc3b204e, [email protected]+b764ce994e, [email protected]+e2862de64e, [email protected]+16acbe5b4e, [email protected]+fac8f3664e, [email protected]+build.398-1.16, [email protected]+0a6f2a704e, [email protected]+dfdb52d64e, [email protected]+438f96364e, [email protected]+ba4afa574e, [email protected]+e00ecb5f4e [17:29:54] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.1 Source=file:/home/po/fabricmc/fabric-server-launch.jar Service=Knot/Fabric Env=SERVER WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.fox2code.fabriczero.reflectutils.SetAccessibleHax (file:/home/po/fabricmc/mods/fabriczero-0.1.4.jar) to method java.lang.Class.getDeclaredFields0(boolean) WARNING: Please consider reporting this to the maintainers of com.fox2code.fabriczero.reflectutils.SetAccessibleHax WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [17:29:56] [main/INFO]: FabricZero: Loaded! [17:30:03] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD' [17:30:04] [main/WARN]: Missing data pack fabric/verticalslabs [17:30:04] [main/WARN]: Missing data pack fabric/automated_crafting [17:30:04] [main/WARN]: Missing data pack fabric/harvest [17:30:04] [main/WARN]: Missing data pack fabric/expandedstorage [17:30:04] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [17:30:04] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [17:30:04] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [17:30:04] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [17:30:04] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [17:30:04] [main/INFO]: Reloading ResourceManager: Default, Fabric Tool Attribute API (v1) [17:30:06] [Worker-Main-4/INFO]: Loaded 7 recipes [17:30:07] [Worker-Main-4/INFO]: Loaded 927 advancements Exception in thread "main" [17:30:07] [main/INFO]: [STDERR]: java.lang.RuntimeException: Failed to setup Fabric server environment! [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:51) [17:30:07] [main/INFO]: [STDERR]: Caused by: java.lang.RuntimeException: java.lang.RuntimeException: An exception occurred when launching the server! [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:107) [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:49) [17:30:07] [main/INFO]: [STDERR]: Caused by: java.lang.RuntimeException: An exception occurred when launching the server! [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:63) [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:105) [17:30:07] [main/INFO]: [STDERR]: ... 1 more [17:30:07] [main/INFO]: [STDERR]: Caused by: java.lang.reflect.InvocationTargetException [17:30:07] [main/INFO]: [STDERR]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [17:30:07] [main/INFO]: [STDERR]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [17:30:07] [main/INFO]: [STDERR]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [17:30:07] [main/INFO]: [STDERR]: at java.base/java.lang.reflect.Method.invoke(Method.java:564) [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:61) [17:30:07] [main/INFO]: [STDERR]: ... 2 more [17:30:07] [main/INFO]: [STDERR]: Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:194) [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140) [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.knot.KnotServer.main(KnotServer.java:26) [17:30:07] [main/INFO]: [STDERR]: ... 7 more [17:30:07] [main/INFO]: [STDERR]: Caused by: java.lang.reflect.InvocationTargetException [17:30:07] [main/INFO]: [STDERR]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [17:30:07] [main/INFO]: [STDERR]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [17:30:07] [main/INFO]: [STDERR]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [17:30:07] [main/INFO]: [STDERR]: at java.base/java.lang.reflect.Method.invoke(Method.java:564) [17:30:07] [main/INFO]: [STDERR]: at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192) [17:30:07] [main/INFO]: [STDERR]: ... 9 more [17:30:07] [main/INFO]: [STDERR]: Caused by: java.lang.NoSuchMethodError: 'boolean jdk.internal.misc.Unsafe.compareAndSwapObject(java.lang.Object, long, java.lang.Object, java.lang.Object)' [17:30:07] [main/INFO]: [STDERR]: at com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper.casValue(AbstractFuture.java:1010) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:676) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.util.concurrent.SettableFuture.setException(SettableFuture.java:54) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache$LoadingValueReference.setException(LocalCache.java:3690) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3735) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [17:30:07] [main/INFO]: [STDERR]: at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.class_2248.method_9614(class_2248.java:291) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.class_2248.method_9579(class_2248.java:295) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.class_4970$class_4971$class_3752.<init>(class_4970.java:1010) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.class_4970$class_4971$class_3752.<init>(class_4970.java:994) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.class_4970$class_4971.method_26200(class_4970.java:643) [17:30:07] [main/INFO]: [STDERR]: at java.base/java.lang.Iterable.forEach(Iterable.java:75) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.class_2246.method_26979(class_2246.java:892) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.class_5415.method_30222(class_5415.java:24) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.class_5350.method_29475(class_5350.java:88) [17:30:07] [main/INFO]: [STDERR]: at net.minecraft.server.Main.main(Main.java:145) [17:30:07] [main/INFO]: [STDERR]: ... 14 more

commented

With mods installed:
`---- Minecraft Crash Report ----
// I let you down. Sorry :(

Time: 2020-08-22, 5:18 p.m.
Description: Exception in server tick loop

java.lang.NoSuchMethodError: 'void jdk.internal.misc.Unsafe.putOrderedLong(java.lang.Object, long, long)'
at io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueColdProducerFields.soProducerLimit(BaseMpscLinkedArrayQueueColdProducerFields.java:155)
at io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueue.(BaseMpscLinkedArrayQueue.java:195)
at io.netty.util.internal.shaded.org.jctools.queues.MpscUnboundedArrayQueue.(MpscUnboundedArrayQueue.java:34)
at io.netty.util.internal.PlatformDependent$Mpsc.newMpscQueue(PlatformDependent.java:863)
at io.netty.util.internal.PlatformDependent.newMpscQueue(PlatformDependent.java:874)
at io.netty.channel.epoll.EpollEventLoop.newTaskQueue(EpollEventLoop.java:195)
at io.netty.util.concurrent.SingleThreadEventExecutor.(SingleThreadEventExecutor.java:165)
at io.netty.channel.SingleThreadEventLoop.(SingleThreadEventLoop.java:58)
at io.netty.channel.epoll.EpollEventLoop.(EpollEventLoop.java:87)
at io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:135)
at io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:35)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:84)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:58)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:47)
at io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:59)
at io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:104)
at io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:91)
at io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:68)
at net.minecraft.class_3242.method_14349(class_3242.java:59)
at net.minecraft.class_3528.method_15332(class_3528.java:16)
at net.minecraft.class_3242.method_14354(class_3242.java:113)
at net.minecraft.class_3176.method_3823(class_3176.java:142)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:642)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:254)
at java.base/java.lang.Thread.run(Thread.java:832)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- System Details --
Details:
Minecraft Version: 1.16.2
Minecraft Version ID: 1.16.2
Operating System: Linux (amd64) version 4.15.0-112-generic
Java Version: 14.0.2, AdoptOpenJDK
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), AdoptOpenJDK
Memory: 277384040 bytes (264 MB) / 2003828736 bytes (1911 MB) up to 2147483648 bytes (2048 MB)
CPUs: 4
JVM Flags: 5 total; -Xms256M -Xmx2048M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xverify:none
Fabric Mods:
autoconfig1u: Auto Config v1 Updated 3.2.0-unstable
automated_crafting: Automated Crafting 1.3.3+1.16.2
blue_endless_jankson: jankson +
carpet: Carpet Mod in Fabric 1.4.8
carpet-extra: Carpet Extra 1.4.8
chainmail: Chainmail 0.5.0
cloth-basic-math: Cloth Basic Math 0.5.1
cloth-config2: Cloth Config v4 4.7.0-unstable
com_squareup_moshi_moshi: moshi 1.9.2
com_squareup_okio_okio: okio 1.16.0
crawl: Crawl 0.7.1
diggusmaximus: Diggus Maximus 1.3.1-1.16
expandedstorage: ExpandedStorage 5.5.22
fabric: Fabric API 0.19.0+build.398-1.16
fabric-api-base: Fabric API Base 0.1.3+12a8474c4e
fabric-command-api-v1: Fabric Command API (v1) 1.0.8+5ce533984e
fabric-commands-v0: Fabric Commands (v0) 0.2.0+52d308364e
fabric-containers-v0: Fabric Containers (v0) 0.1.8+045df74f4e
fabric-content-registries-v0: Fabric Content Registries (v0) 0.1.9+059ea8664e
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.2+b7f9825d4e
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.0+e2e6cdad4e
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.0+16acbe5b4e
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.1+91555cd14e
fabric-item-api-v1: Fabric Item API (v1) 1.1.0+29679fd64e
fabric-item-groups-v0: Fabric Item Groups (v0) 0.2.0+438f96364e
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.2.0+74cc3b204e
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.0+fac8f3664e
fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.2+b764ce994e
fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.5+b50ffc7b4e
fabric-networking-v0: Fabric Networking (v0) 0.1.10+e00ecb5f4e
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.6.0+e81ec80b4e
fabric-object-builders-v0: Fabric Object Builders (v0) 0.6.1+ba4afa574e
fabric-particles-v1: fabric-particles-v1 0.2.1+0a6f2a704e
fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.4.3+e5d3217f4e
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.3+b7f9825d4e
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.2.9+e5d3217f4e
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.0+872498414e
fabric-structure-api-v1: Fabric Structure API (v1) 1.0.0+516ece7c4e
fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.0.3+ac8e8c594e
fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.2+ccce563e4e
fabricloader: Fabric Loader 0.9.2+build.206
fabriczero: Fabric Zero 0.1.4
harvest: Harvest 1.2.12
jankson: Jankson 3.0.1+j1.2.0
kyrptconfig: Kytpt Config 1.1.2-1.16
libgui: LibGui 3.0.0-beta.1+1.16.2-rc2
lithium: Lithium 0.5.1-SNAPSHOT
minecraft: Minecraft 1.16.2
mm: Manningham Mills 2.1
modupdater: ModUpdater 1.1.11+1.16.2-rc2
phosphor: Phosphor 0.6.0+build.43
verticalslabs: Vertical Slabs 1.3.0
Data Packs: vanilla, fabric/verticalslabs, fabric/automated_crafting, fabric/fabric-tool-attribute-api-v1, fabric/harvest, fabric/expandedstorage
Is Modded: Definitely; Server brand changed to 'fabric'
Type: Dedicated Server (map_server.txt)`

commented

Having the same issues on Java 11 (with the main minecraft launcher)

I tried the workaround mentioned and that just threw different errors.

with multiMC and the workaround it seemed fine