-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Espresso java.lang.VerifyError: Wrong local map frames in class file #3261
Comments
I've tried older versions of Minecraft, before it was bundled with the launcher. You can use |
Not sure if it's at all related but disabling the verifier results in this very long stacktrace: https://gist.github.com/florensie/24e4ff01364db583938d75d26589f1d7 |
LWJGL tip is now spec-compliant. Minecraft should work now but sadly I cannot test a different LWJGL version using your setup (Fabric Loom). |
Thanks for making it happen! I'll see if I can't find a way to test it out with Minecraft again, I'll close the issue until then and report back if I manage to figure it out. |
I added the latest LWJGL version to my testing environment (https://github.com/florensie/espressotest).
However, the verifier still gets hung up at the same spot. Disabling the verifier with
Running the server does seem to work now. It just has some warnings and it tries to shut itself down (and fails at that) because it's too slow. Took about 20 minutes to fully finish loading for me. |
I tried a fresh GraalVM (build from sources) and the issues with Espresso are fixed. Minecraft 1.16.5 is not compatible out-of-the-box with LWJGL >= 3.3.0, vanilla HotSpot crashes the same way. [14:46:49] [main/INFO] (Minecraft) Reloading ResourceManager: Default
FATAL ERROR in native method: Thread[Render thread,5,main]: No context is current or a function that is not available in the current context was called. The JVM will abort execution.
at org.lwjgl.opengl.GL11.glEnableClientState(Native Method)
at com.mojang.blaze3d.platform.GlStateManager._enableClientState(GlStateManager.java:1513)
at com.mojang.blaze3d.vertex.VertexFormatElement$Usage.lambda$static$0(VertexFormatElement.java:110)
at com.mojang.blaze3d.vertex.VertexFormatElement$Usage$$Lambda$2740/0x0000000840aae040.setupBufferState(Unknown Source)
at com.mojang.blaze3d.vertex.VertexFormatElement$Usage.setupBufferState(VertexFormatElement.java:154)
at com.mojang.blaze3d.vertex.VertexFormatElement$Usage.access$000(VertexFormatElement.java:107)
at com.mojang.blaze3d.vertex.VertexFormatElement.setupBufferState(VertexFormatElement.java:100)
at com.mojang.blaze3d.vertex.VertexFormat.setupBufferState(VertexFormat.java:76)
at com.mojang.blaze3d.vertex.BufferUploader._end(BufferUploader.java:45)
at com.mojang.blaze3d.vertex.BufferUploader.end(BufferUploader.java:24)
at net.minecraft.client.gui.GuiComponent.innerFill(GuiComponent.java:72)
at net.minecraft.client.gui.GuiComponent.fill(GuiComponent.java:44)
at net.minecraft.client.gui.screens.LoadingOverlay.render(LoadingOverlay.java:88)
at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:605)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1048)
at net.minecraft.client.Minecraft.run(Minecraft.java:681)
at net.minecraft.client.main.Main.main(Main.java:215)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@11.0.11/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@11.0.11/NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@11.0.11/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@11.0.11/Method.java:566)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:146)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)
at java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.base@11.0.11/DirectMethodHandle$Holder)
at java.lang.invoke.LambdaForm$MH/0x0000000840067440.invokeExact_MT(java.base@11.0.11/LambdaForm$MH)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) |
Yeah I didn't consider that. It seems to work fine for me at least on hotspot 15 but it might be down to the natives/platform. I'll give it a go when another dev build goes live. |
It fails for me on vanilla OpenJDK 8, 11 and 15. I'm on Linux (Arch-based distro). |
Weird, it worked for me on arch with the |
I'm probably hitting something similar to this: LWJGL/lwjgl3#602 |
Describe GraalVM and your environment :
java -Xinternalversion
:Have you verified this issue still happens when using the latest snapshot?
Yes, the same issue occurs on
GraalVM CE 21.1.0-dev
Describe the issue
An error while starting Minecraft versions 1.13.2 and above using Espresso (
-truffle
VM option)Code snippet or code repository that reproduces the issue
Here is a repo using the Fabric modding toolchain for Minecraft 1.16.5. The necessary IDE run configurations are created automatically including
-truffle -XX:+IgnoreUnrecognizedVMOptions
.https://github.com/florensie/espressotest
Steps to reproduce the issue
gradlew eclipse
orgradlew vscode
Minecraft Client
orMinecraft Server
or rungradlew runClient
orgradlew runServer
Expected behavior
The game starts without any errors. This
Additional context
Details
The text was updated successfully, but these errors were encountered: