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

Crash caused by StackOverflowError when trading too many items at once

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 16w05a, Minecraft 16w05b, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1
    • Confirmation Status:
      Community Consensus

      Description

      This report is based on MC-34943

      The bug

      When you have a villager trading an item for an item with the Count of 0 and you Shift-click on the trade when you have a empty inventory, Minecraft crashes.

      How to reproduce

      1. Use the following command
         /summon Villager ~ ~1 ~ {Health:0.1f,Offers:{Recipes:[{buy:{id:"stone",Count:0b},sell:{id:"dirt",Count:1b},maxUses:2147483647,uses:0}]}} 
        
      2. Empty your inventory
      3. Give yourself one stone block
      4. Place the stone block in the trading window and Shift-click the offered item (dirt)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK:

                Zendesk Support