Breaking certain blocks causes crashes
SmokedYourTofu opened this issue ยท 2 comments
Breaking most world spawn blocks will cause the game to crash, main ones are dungeon spawned blocks like brewing stands, waystone, spawners and mining colonies stations.
I have experienced similar issues for the following blocks
- MineColonies Spawn blocks
- Vanilla Beehives
There may have been other cases that caused a CTD, but these were the blocks I was breaking before I realized it was actually a problem. I thought the crashing was random before.
It seems to be related to the cracking block texture when you begin to break a block; as soon as the first texture should appear the game crashes
However I've found a quick-fix for this, by installing Optifine the problems have stopped for me so far.
Posting logs in case it helps
JDK Stack trace (reduced)
Current thread (0x0000000000532570): JavaThread "Render thread" [_thread_in_native, id=11812, stack(0x00000000022c0000,0x00000000023c0000)]
Stack: [0x00000000022c0000,0x00000000023c0000], sp=0x00000000023bd5c8, free space=1013k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [nvoglv64.DLL+0xf730f0]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 16617 org.lwjgl.opengl.GL11C.nglDrawElements(IIIJ)V org.lwjgl.opengl (0 bytes) @ 0x000000000e8b8cf6 [0x000000000e8b8ca0+0x0000000000000056]
J 19035 c2 com.mojang.blaze3d.platform.GlStateManager.m_157053_(IIIJ)V [email protected] (11 bytes) @ 0x000000000ea96f5c [0x000000000ea96f20+0x000000000000003c]
J 52929 c2 com.mojang.blaze3d.vertex.BufferUploader.m_166838_(Ljava/nio/ByteBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$Mode;Lcom/mojang/blaze3d/vertex/VertexFormat;ILcom/mojang/blaze3d/vertex/VertexFormat$IndexType;IZ)V [email protected] (482 bytes) @ 0x00000000103eaee0 [0x00000000103ea7a0+0x0000000000000740]
J 52988 c2 net.minecraft.client.renderer.MultiBufferSource$BufferSource.m_109912_(Lnet/minecraft/client/renderer/RenderType;)V [email protected] (65 bytes) @ 0x00000000100d6564 [0x00000000100d5d00+0x0000000000000864]
J 48666 c2 net.minecraft.client.renderer.MultiBufferSource$BufferSource.m_6299_(Lnet/minecraft/client/renderer/RenderType;)Lcom/mojang/blaze3d/vertex/VertexConsumer; [email protected] (96 bytes) @ 0x0000000010159978 [0x0000000010159620+0x0000000000000358]
J 55122% c2 net.minecraft.client.renderer.LevelRenderer.m_109599_(Lcom/mojang/blaze3d/vertex/PoseStack;FJZLnet/minecraft/client/Camera;Lnet/minecraft/client/renderer/GameRenderer;Lnet/minecraft/client/renderer/LightTexture;Lcom/mojang/math/Matrix4f;)V [email protected] (3122 bytes) @ 0x00000000109cf100 [0x00000000109ccfe0+0x0000000000002120]
J 52474 c1 net.minecraft.client.renderer.GameRenderer.m_109089_(FJLcom/mojang/blaze3d/vertex/PoseStack;)V [email protected] (684 bytes) @ 0x0000000009948d64 [0x0000000009945120+0x0000000000003c44]
J 33370 c1 net.minecraft.client.renderer.GameRenderer.m_109093_(FJZ)V [email protected] (871 bytes) @ 0x000000000895f6a4 [0x000000000895e7e0+0x0000000000000ec4]
J 54652 c2 net.minecraft.client.Minecraft.m_91383_(Z)V [email protected] (992 bytes) @ 0x0000000010904dfc [0x00000000109031a0+0x0000000000001c5c]
j net.minecraft.client.Minecraft.m_91374_()V+108 [email protected]
j net.minecraft.client.main.Main.main([Ljava/lang/String;)V+1479 [email protected]
v ~StubRoutines::call_stub
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 [email protected]
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+133 [email protected]
j jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 [email protected]
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+59 [email protected]
j net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(Ljava/lang/ModuleLayer;[Ljava/lang/String;)Ljava/lang/Void;+40 [email protected]
j net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler$$Lambda$777+0x0000000800556000.call()Ljava/lang/Object;+8 [email protected]
j cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch([Ljava/lang/String;Ljava/lang/ModuleLayer;)V+11 [email protected]
j cpw.mods.modlauncher.LaunchServiceHandler.launch(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/ModuleLayer;Lcpw/mods/modlauncher/TransformingClassLoader;Lcpw/mods/modlauncher/LaunchPluginHandler;)V+58 [email protected]
j cpw.mods.modlauncher.LaunchServiceHandler.launch(Lcpw/mods/modlauncher/ArgumentHandler;Ljava/lang/ModuleLayer;Lcpw/mods/modlauncher/TransformingClassLoader;Lcpw/mods/modlauncher/LaunchPluginHandler;)V+21 [email protected]
j cpw.mods.modlauncher.Launcher.run([Ljava/lang/String;)V+310 [email protected]
j cpw.mods.modlauncher.Launcher.main([Ljava/lang/String;)V+78 [email protected]
j cpw.mods.modlauncher.BootstrapLaunchConsumer.accept([Ljava/lang/String;)V+1 [email protected]
j cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(Ljava/lang/Object;)V+5 [email protected]
Forge/Minecraft Log
[10:15:32] [Thread-40/ERROR]: An error occurred building event handler
java.lang.NullPointerException: Cannot invoke "java.lang.ClassLoader.loadClass(String)" because the return value of "java.lang.Thread.getContextClassLoader()" is null
at net.minecraftforge.eventbus.EventSubclassTransformer.buildEvents(EventSubclassTransformer.java:62) ~[eventbus-5.0.3.jar:?]
at net.minecraftforge.eventbus.EventSubclassTransformer.transform(EventSubclassTransformer.java:44) ~[eventbus-5.0.3.jar:?]
at net.minecraftforge.eventbus.EventBusEngine.processClass(EventBusEngine.java:21) ~[eventbus-5.0.3.jar:?]
at net.minecraftforge.eventbus.service.ModLauncherService.processClassWithFlags(ModLauncherService.java:20) ~[eventbus-5.0.3.jar:5.0.3+70+master.d7d405b]
at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-9.0.7.jar:?]
at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-9.0.7.jar:?]
at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-9.0.7.jar:?]
at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:110) ~[securejarhandler-0.9.54.jar:?]
at cpw.mods.cl.ModuleClassLoader.lambda$findClass$16(ModuleClassLoader.java:213) ~[securejarhandler-0.9.54.jar:?]
at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:223) ~[securejarhandler-0.9.54.jar:?]
at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:213) ~[securejarhandler-0.9.54.jar:?]
at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:130) ~[securejarhandler-0.9.54.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at com.mojang.blaze3d.platform.GlDebug.m_84038_(GlDebug.java:95) ~[?:?]
at org.lwjgl.opengl.GLDebugMessageCallbackI.callback(GLDebugMessageCallbackI.java:39) [lwjgl-opengl-3.2.2.jar%2347!:build 10]
[10:15:32] [Thread-40/INFO]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Target buffer must be bound.'
java.lang.NullPointerException: Cannot invoke "java.lang.ClassLoader.loadClass(String)" because the return value of "java.lang.Thread.getContextClassLoader()" is null
this has had an open forge issue/PR since 1.16
MinecraftForge/MinecraftForge#7683
MinecraftForge/EventBus#42