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

The game crashes when putting items with max stack sizes above 64 into bundles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w14a
    • 24w12a, 24w13a
    • None
    • Confirmed
    • Crash
    • Very Important
    • Platform

      The Bug:

      The game crashes when putting items with max stack sizes above 64 into bundles.

      A crash report regarding this has been attached and can be found below.

      Stack Trace:

      Description: Container click
      
      java.lang.ArithmeticException: / by zero
          at cvk$a.c(SourceFile:134)
          at cvk$a.a(SourceFile:145)
          at crg.a(SourceFile:90)
          at csz.a(SourceFile:461)
          at cod.a(SourceFile:535)
          at cod.b(SourceFile:408)
          at cod.a(SourceFile:294)
          at fmq.a(SourceFile:370)
          at fmb.b(SourceFile:521)
          at fmq.b(SourceFile:606)
          at fdf.a(SourceFile:103)
          at fld.a(SourceFile:453)
          at fdf.a(SourceFile:103)
          at fdf.c(SourceFile:186)
          at boc.execute(SourceFile:108)
          at fdf.b(SourceFile:186)
          at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
          at org.lwjgl.system.JNI.invokeV(Native Method)
          at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)
          at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:236)
          at fde.c(SourceFile:1364)
          at fde.f(SourceFile:895)
          at net.minecraft.client.main.Main.main(SourceFile:265)

      Steps to Reproduce:

      1. Obtain a bundle.
      2. Give yourself a diamond sword with a max stack size of 65 by using the command provided below.
        /give @s minecraft:diamond_sword[minecraft:max_stack_size=65] 1
      3. Put the diamond sword into the bundle.

      Observed Behavior:

      The game crashes.

      Expected Behavior:

      The game would not crash.

            Karaoglu [Mojang] Nilay Karaoglu
            Avoma [Mod] Avoma
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: