The bug
If you drag an item out of a creative menu and into the Survival Inventory tab, it will crash the game.
How to reproduce
Enable Touchscreen Mode in the Controls menu
Open the Creative inventory
Press and hold your cursor on an item, and drag the item above the Survival Inventory icon (the chest in the bottom right)
Release and quickly re-press the item (you should now see the Survival Inventory page but still be holding the item)
Release the item over a slot in the Survival Inventory page
❌ Crash
Stack trace
1.18.1: [^actually crash lol (client).txt]
Description: mouseReleased event handler
java.lang.ClassCastException: class eec$a cannot be cast to class eec$c (eec$a and eec$c are in unnamed module of loader 'app')
at eec.a(SourceFile:217)
at edp.c(SourceFile:495)
at eec.c(SourceFile:523)
at dxp.a(SourceFile:96)
at ecr.a(SourceFile:491)
at dxp.a(SourceFile:96)
at dxp.c(SourceFile:165)
at auh.execute(SourceFile:101)
at dxp.b(SourceFile:165)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:195)
at drp.e(SourceFile:310)
at dxo.f(SourceFile:1142)
at dxo.e(SourceFile:733)
at net.minecraft.client.main.Main.main(SourceFile:238)
Attachments
Comments 6
Palette crash was modded, but I would like to see better reproduction for dragging crash: how exactly can you drag from creative to survival menu? Are you using actual touchscreen or just mouse?
If I just release mouse over survival icon while holding an item, it becomes ghost one (yes, it's a bug), but it doesn't crash.
u have to drag the item from the creative menu and then hover over the survival inventory icon and then quickly release left click and hold it down again if u release ur mouse on an inventory slot u will crash (this is with a mouse not actual touchscreen btw)
Please attach the crash report to this ticket.