Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-245504

Touchscreen mode crash // 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')

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19 Pre-release 4
    • 1.18.1, 1.19 Pre-release 3
    • None
    • Confirmed
    • Crash
    • Very Important

      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

      1. Enable Touchscreen Mode in the Controls menu
      2. Open the Creative inventory
      3. Press and hold your cursor on an item, and drag the item above the Survival Inventory icon (the chest in the bottom right)
      4. Release and quickly re-press the item (you should now see the Survival Inventory page but still be holding the item)
      5. Release the item over a slot in the Survival Inventory page
        Crash

      Stack trace

      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)
      

          [MC-245504] Touchscreen mode crash // 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')

          [Mod] Avoma added a comment -

          Can confirm this behavior in 1.19 Pre-release 3.
          crash-2022-05-30_13.21.06-client.txt
          MC-245504.png

          [Mod] Avoma added a comment - Can confirm this behavior in 1.19 Pre-release 3. crash-2022-05-30_13.21.06-client.txt MC-245504.png

          Added repro video

          [Mod] tryashtar added a comment - Added repro video

          Coderx Gamer added a comment -

          i can provide a fix if u want also btw

          Coderx Gamer added a comment - i can provide a fix if u want also btw

          Coderx Gamer added a comment - - edited

          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)

          Coderx Gamer added a comment - - edited 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)

          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.

          [Mojang] Bartosz Bok added a comment - 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.

          Please attach the crash report to this ticket.

          [Mod] ampolive added a comment - Please attach the crash report to this ticket.

            boq [Mojang] Bartosz Bok
            Coderx_Gamer Coderx Gamer
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: