[MCPE-14225] Item Duplication/Loss on Close Created: 23/Apr/16  Updated: 27/Feb/18  Resolved: 26/Apr/16

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 0.14.1
Fix Version/s: None

Type: Bug
Reporter: Tyler Freeman
Resolution: Invalid Votes: 0
Labels: None

Confirmation Status: Unconfirmed
Platform: Android

 Description   

My phone is the Nexus 5x

There seems to be a disconnect between when an item is added/removed from save file inventory (happens first) and when it is added/removed from save file chests (happens later) in local games. I first noticed the issue when I logged into a game that I had switched out of the night before and found a duplicated set of items in my inventory and in the chest beside me.

The item loss side of this is what makes this issue critical as it means that if you switch to another app (such as for text messaging) and Android closes the app in the background, you could permanently lose items in survival.

I can reliably recreate the issue(s) using these steps:

Item Duplication:
0) In local Minecraft Survival
1) Move items from chest to inventory
2) Enter the Android application switcher and swipe the Minecraft App to close it
3) Re-Open the Minecraft App

Expected Result: Items are either in the chest, or are in the inventory.
Actual Result: Items are in both the chest and in the inventory. (duplicated)

Item Loss:
0) In local Minecraft Survival
1) Move items from inventory to chest
2) Enter the Android application switcher and swipe the Minecraft App to close it
3) Re-Open the Minecraft App

Expected Result: Items are either in the chest, or are in the inventory.
Actual Result: Items are nowhere. (lost)

I also noticed while testing this that there is sometime some sort of corruption in the player location data in the save: when I re-opened minecraft I would sometime be teleported to a location that I had not been to for a long time. This is not completely random as often (but not always) it was the same location. It seems like you need to do more testing around how MCPE works with Android's activity lifecycle: http://developer.android.com/training/basics/activity-lifecycle/pausing.html



 Comments   
Comment by Tyler Freeman [ 27/Feb/18 ]

I did a search for item duplication and found nothing. It is not clear to
me that this is a duplicate, that bug does not mention duplication and
seems to apply only to crashes. It does nor mention the specific
association with closing the app nor provide clear reproduction steps. You
are welcome.
On Apr 23, 2016 2:01 PM, "Kaleb Wasmuth (JIRA)" <bugs@mojang.com> wrote:

> Kaleb Wasmuth
> <https://bugs.mojang.com/secure/ViewProfile.jspa?name=kaleb418>
> commented on an issue
>
> Re: Item Duplication/Loss on Close
> <https://bugs.mojang.com/browse/MCPE-14225>
>
> This issue duplicates MCPE-747 <https://bugs.mojang.com/browse/MCPE-747>.
> Please perform a search next time, to make sure your bug hasn't already
> been reported.
> [image: Add Comment]
> <https://bugs.mojang.com/browse/MCPE-14225#add-comment> Add Comment
> <https://bugs.mojang.com/browse/MCPE-14225#add-comment>
>
>
> Minecraft Pocket Edition & Windows 10 Beta Edition
> <https://bugs.mojang.com/browse/MCPE> / [image: Bug]
> <https://bugs.mojang.com/browse/MCPE-14225> MCPE-14225
> <https://bugs.mojang.com/browse/MCPE-14225>
> Item Duplication/Loss on Close <https://bugs.mojang.com/browse/MCPE-14225>
> My phone is the Nexus 5x
>
> There seems to be a disconnect between when an item is added/removed from
> save file inventory (happens first) and when it is added/removed from save
> file chests (happens later) in local games. I first noticed the issue when
> I logged into a game that I had switched out of the night before and found
> a duplicated set of items in m...
> This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)
> [image: Atlassian logo]
>

Comment by Luis Robles [ 26/Apr/16 ]

One bug per ticket please. Also, these issues are duplicates of MCPE-11942 and MCPE-9475

Comment by Tyler Freeman [ 23/Apr/16 ]

I did a search for item duplication and found nothing that seemed related. It is not clear to me that this is a duplicate of MCPE-747, that bug does not mention duplication, which was the original issue I discovered and came to report. That bug report also does not mention the specific association with closing the app nor does it provide clear reproduction steps and additionally it is currently marked as fixed.

Comment by kaleb418 [ 23/Apr/16 ]

This issue duplicates MCPE-747. Please perform a search next time, to make sure your bug hasn't already been reported.

Comment by Tyler Freeman [ 23/Apr/16 ]

The location corruption appears to already have a bug report that was marked closed but seems to have re-appeared so should be re-opened: https://bugs.mojang.com/browse/MCPE-330

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