mojira.dev
MCPE-184732

Combining 2 items with negative durability results in an invisible item that can cause the game to crash

Steps to reproduce:

  1. Run /give @s golden_leggings 2 16500. This should result in you obtaining 2 pieces of golden armor with negative durability

  2. Combine the 2 pieces of armor in the crafting table

  3. Shift click the resulting item into your leggings slot (on Windows)/Unequip the item from your leggings slot (on Android)

Observed result:
Upon combining the 2 pieces of armor, you receive an invisible piece of armor. Shift clicking/unequipping the item results in a game crash.

Expected result:
You receive a visible piece of armor that does not crash the game.

Original description:
As the name of the post implies, upon combining two negative durability items that are low enough to underflow, (a.k.a if the durability of the combination of items goes below -32768), it will generate an item with an invisible texture that if you right click, the game will proceed to crash as shown here.

https://drive.google.com/file/d/1p7H8wZtPN24aijEGs01PDmVyl1MfWc4Q/view?usp=drive_link 

I suspect it has to do with negative IDs and how the game handle such items. But I have no clue on why this happens

Linked issues

Comments 5

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

I cannot reproduce the crash. Does this happen without your resource packs enabled?
Edit: I was able to reproduce the crash by shift clicking the item.

What version does the bug exist on?


Reply from @unknown:
Please look at the Affects Version/s list.

What version does the bug exist on?


Reply from @unknown:
Please look at the Affects Version/s list.

I Tested In PC If You Use Crafting Grid In Inventory To Craft, It'll Crash If You Selected The Output Slot.

MrThink15000

(Unassigned)

1274496

Confirmed

Multiple

1.21.2 Hotfix, 1.21.40.23 Preview, 1.21.31 Hotfix

Retrieved