mojira.dev
MC-300187

Interacting with items with certain components in the inventory causes a crash

This behavior was introduced in 25w31a.

The bug

Any inventory interaction with an item containing one of the following components crashes the game:

  • block_entity_data

  • bees

  • container (Only in some cases, see MC-300167 for an example crash report)

  • entity_data

Steps to reproduce

  1. Run the following command:

    give @s armor_stand[entity_data={id:"minecraft:armor_stand"}]
  2. In Survival mode, open your inventory and attempt to move the item.

Observed behavior

The game will crash with exit code -1.

Linked issues

MC-300167 Game crashes when moving items between chest and inventory Resolved MC-300211 Chest, Bee nest crash Resolved MC-300292 Clicking on Bee Nest in inventory crashes game. Resolved MC-300247 The game crashed when I copy Villager Spawn Egg with in the hopper GUI screen in Creative Mode Resolved MC-300312 Crashing when clicking/interacting with a bee nest Resolved

Attachments

Comments 6

Can confirm.

[media][media]

Not sure this is the same issue, but I had a comparator in my inventory which caused a client side crash if I tried to click on/more it. The only way to remove it from the inventory without a crash was using the clear command.

a freshly created comparator doesn’t cause the crash.

Can confirm.

[media]

It is important to note that the error occurs when you are in survival and adventure mode, but does not occur in creative mode.

LadyEternal

gegy

Confirmed

Platform

Very Important

Inventory

25w31a

25w32a

Retrieved