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

Loading Minecraft with OpenJ9 crashes upon startup #1019

Closed
Owen1212055 opened this issue Aug 16, 2020 · 1 comment
Closed

Loading Minecraft with OpenJ9 crashes upon startup #1019

Owen1212055 opened this issue Aug 16, 2020 · 1 comment
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@Owen1212055
Copy link

Owen1212055 commented Aug 16, 2020

Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
--
  | at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:194)
  | at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140)
  | at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
  | at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
  | Caused by: java.lang.reflect.InvocationTargetException
  | 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:566)
  | at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192)
  | ... 3 more
  | Caused by: java.lang.ExceptionInInitializerError
  | at java.base/java.lang.J9VMInternals.ensureError(J9VMInternals.java:193)
  | at java.base/java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:182)
  | at java.base/java.lang.invoke.MethodHandle.getCPMethodHandleAt(Native Method)
  | at java.base/java.lang.invoke.MethodHandle.getAdditionalBsmArg(MethodHandle.java:935)
  | at java.base/java.lang.invoke.MethodHandle.resolveInvokeDynamic(MethodHandle.java:1084)
  | at net.minecraft.util.registry.BuiltinRegistries.<clinit>(BuiltinRegistries.java:50)
  | at net.minecraft.util.registry.Registry.<clinit>(Registry.java:237)
  | at net.minecraft.Bootstrap.initialize(Bootstrap.java:42)
  | at net.minecraft.client.main.Main.main(Main.java:137)
  | ... 8 more
  | Caused by: java.lang.NullPointerException
  | at net.minecraft.util.registry.BuiltinRegistries.add(BuiltinRegistries.java:88)
  | at net.minecraft.structure.pool.StructurePools.register(StructurePools.java:20)
  | at net.minecraft.structure.pool.StructurePools.<clinit>(StructurePools.java:13)
  | ... 15 more

I tried many things to resolve this, such as clearing global and project gradle cache and redoing my workspace twice which yielded no results.

After switching to Hotspot, this issue disappeared entirely.

Not sure what else to put here. If you need any extra information I will provide.

@i509VCB
Copy link
Contributor

i509VCB commented Aug 16, 2020

This issue occurs with vanilla and is being tracked here:
eclipse-openj9/openj9#10356

For now, this mod may help: https://github.com/iczero/fabric-openj9compat

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

No branches or pull requests

2 participants