[MCPE-20243] Inventory Items Disappear While Trading with Villager Created: 05/Mar/17  Updated: 29/Jul/17  Resolved: 04/Apr/17

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 1.0.4.1, 1.0.4.11, 1.1.0.0
Fix Version/s: None

Type: Bug
Reporter: Mr Smeo
Resolution: Duplicate Votes: 9
Labels: inventory, trading, villager

Attachments: PNG File Case2-1.png     PNG File Case2-2.png     PNG File Case2-3.png     PNG File Case2-4.png     PNG File Case2-5.png     PNG File Shot1.png     PNG File Shot2.png    
Issue Links:
Duplicate
duplicates MCPE-18617 Inventory items disappear while inter... Resolved
Relates
relates to MCPE-19511 Random inventory items disappearing Resolved
Confirmation Status: Community Consensus
Platform: Phone - Android - HTC One
CHK:

 Description   

I noticed some of my primary inventory items had disappeared on day one of 1.0.4.1 after a long session of testing trading.
As there are several long standing bugs causing loss of items in one way or other (definately NOT MCPE-15010 happening here!!), I didn't report until I got time to recreate it with meaningful info.

Recreation:

  • Using PE GUI
  • In a single session without exiting the villager trading GUI.
  • Librarian offering 1 emerald at cost of 25 paper.

Shot1 Inventory before trading: Note slots 1, 2 and 3.

I cant be sure of the exact additions and trades order as I was fiddling
and watching how the gui behaved but essentially I was just stuffing the
input with as much paper as I could, to 64 obviously, then trading as much
as possible, then topping the input up again by long pressing a full stack
to refill the input slot. Kept trading until the villager locked out the offer.

Shot2 Inventory after trading.
Note that contents of slot 1, 2 and 3 have been overwritten with paper contents.
The original content of Cooked Pork, Steak and Mutton have disappeared.

Observations:
I noticed the following, if for example..

  • I loaded the 43 part stack of paper into the input slot.
  • Trade one emerald.
  • I have 18 paper in the input slot (offer is 25)
  • Long pressed a full stack in invetory to fill input slot to 64 (46 transfer to input slot, then input slot stops incrementing at 64)
  • Release the long press.
    • At this point the GUI animates a movement from the long pressed slot to some slot towards slot 1.
    • As I was TopUp/Trading repeatedly this happened on each top up so several times in total over the trading session.
    • This correlates with the number of inventory slots overwritten and items lost.

I think the overwrite/loss is happening here while reshuffling the remainder of the long pressed slot back into inventory once the slot is filled and the long press subsequently released.

Other Info:
Villager Spawn Versions..
Not sure if this is a factor..
I'm not sure on what version all of the villagers were spawned some may have been as far back as 0.14.
Many of them were "born" and raised on 1.0.4/1.0.4.1 as I have been breeding and selectively culling the villagers to shape the professions of the population and improve randomized elements of the offers.
I can post villager NBT data From MCPEViz logs if it helps debug.



 Comments   
Comment by Lt Taz [ 29/Jul/17 ]

Happens with enchanted tools and weapons. Seems random but the higher the enchantment the more likely it will disappear.

Comment by Michael Haczynskyj [ 29/Jul/17 ]

This still happing to me now it's really frustrating spend ages at a zombie spawner to get an awesome sword and then when I went to trade all the rotten flesh my sword dissapeared

Comment by hal good [ 05/May/17 ]

I play win10 in pocket mode. I switch between classic and pocket. This seems to trigger the disappearing of items from inventory. Just a thought.

Comment by [Mojang] Mega_Spud (Jay Wells) [ 04/Apr/17 ]

Thank you for your report!
However, this issue has been closed as a Duplicate of MCPE-18617.

If you could add any additional information to that ticket it would be appreciated, as we are trying to get to the bottom of these inventory/ui bugs!

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki

Comment by Fred la Poignée [ 03/Apr/17 ]

Still happening to me after the last update (1.05) on my Ipad, exactly as Mr Smeo has described it; very annoying, I have to go trading with almost nothing in my inventory if I don't want to lose valuable items (losing an enchanted diamond sword is extremely annoying as you can guess)! I thought this was fixed, but it is not, please do something

edit: this is also happening on villagers born after 1.05 in survival mode

Comment by Mr Smeo [ 02/Apr/17 ]

Heh heh, cheers Zeb, aye was just having a wee chuckle

Comment by Zeb [ 02/Apr/17 ]

Smeo00, yeah, that happens whenever a new version is added to the tracker but the admin adding it forgets to mark it as "released".

Comment by Mr Smeo [ 02/Apr/17 ]

@[Bot] Arisa,
What?????
Oh but I DO have access to 1.1.0.0 thank you very much!
The Bot is malfunctioning

Comment by [Bot] Arisa [ 01/Apr/17 ]

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Comment by Mr Smeo [ 01/Apr/17 ]

Affects 1.0.6

Comment by Mr Smeo [ 01/Apr/17 ]

Please see MCPE-19511 for the comment from "[MCPE Mod] elite041802 (Kaleb Wasmuth)" which prompted adding more detailed steps to recreate this bug.

MCPE-20243 Villager Trading Case

Setup:

1. Items in inventory - Case2-1.png
2. Open a Farmers Trading GUI, goto Potato page - Case2-2.png

3. Load Input slot with 64 Potatos from slot 3 on left hand side
4. Trade 15 Potato for 1 Emerald, leaving 49 Potatos in Input slot - Case2-3.png

  • Up to this point all is as expected, pay close attention to next actions.
  • So now I want to top up the Input Slot, from slot 2 on the left.
  • (Obviously I cannot capture this action in a screenshot)
  • This is done by long pressing from a stack on the left until the Input slot is topped up.

*IMPORTANT BIT START*

5. Long press slot 2 on left hand side.
6. Wait until the input slot refills to 64.

*NEXT STEP IS WHERE THE BUG HAPPENS*

7. Release the long press.

So, now the Input slot is filled back up to 64, from the stack of potatos in slot 2 on
left hand side of the Trading GUI and
*the remaining 49 potatoes are returned to the Inventory*
(Confusing why it ended up with 50 in slot1 and 63 in slot2?) - Case2-4.png

8. Exit Trading GUI
9. Open Inventory - Case2-5.png

*Obvserve that*

  • 64 potatos have moved from the original stacks position
  • in slot 35, to slot 1
    *OVERWRITING THE ORIGINAL CONTENTS OF SLOT1, namely Glass*
    ^^^^^^^^^^^^^^^^^THE BUG^^^^^^^^^^^^^^^^
Comment by Jazak Scrant [ 23/Mar/17 ]

Can also confirm. Lost whatever is in slot 1 while trading with a Villager.

Comment by Fred la Poignée [ 14/Mar/17 ]

Same here, lost one enchanted sword in my first inventory slot (replaced by the extra carrots that the villager didn't want because he received enough of them) while trading ; happened twice the same way.

Comment by Finger PickinRic [ 10/Mar/17 ]

I can confirm this issue. Pick, Sword, Stack of iron bars all lost during trading.
This happened in a Realms world

Comment by Mr Smeo [ 05/Mar/17 ]

Relates to: MCPE-18617

Generated at Sat Jan 11 15:26:19 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.