mojira.dev
MCPE-396

Duplication Glitch when mining and quitting immediately

Duplication Glitch

You should get one item.

Instead you get two items.

1. Mine item
2. While still holding down from mining, immediately hit pause and then quit to title
3. Go back into world
4. The item will be in your inventory and back on the spot where you chopped it down already.

Linked issues

Attachments

Comments 5

The problem is that the chunks(map) and the entitly(inventory) data are on separated files, i think the entitly data is saving every seconds, but the chunks data is saving every 5 seconds because the chunks.dat is the bigger file.

Marked as affecting 0.6.1 in favor of MCPE-2058.

0.8.0 alpha build 6
HTC Thunderbolt
I noticed this when MCPE locked up and I force closed it. I had been trying to pick up a crafting bench, and didn't think anything of it when I reentered my world after restarting MCPE, I just picked up the crafting bench that was there. I went to place what I thought was my only crafting bench at the time and found I had 2.

I think this may also be the issue that put me on top of a tree I thought I had chopped down, again after a lock up and force close cycle. The tree (and a couple of others I know I chopped down) were present again.

Cleaning up all the old issues - please reply if this affects 0.9.3.

What I expected to happen was...:

Scenario: Expected: picking up an item, quitting and loading - the item should be in my inventory, there should not be a duplicate on the ground
Given there is an item on the ground
When I pick up the item
And force quit Minecraft pocket
And open the world again
Then the item is in my inventory
And the item is NOT on the ground

What actually happened was...:

*Scenario: Actual: picking up an item, quitting and loading - There item is duplicated - it's in my inventory and on the ground

Given there is an item on the ground
When I pick up the item
And force quit Minecraft pocket
And open the world again
Then the item is in my inventory
And the item is an item on the ground
When I pick up the item
Then I have the item twice in my inventory

Steps to Reproduce

  1. Put one item in your inventory (step 1.png)

  2. Throw it on the ground (step 2.png)

  3. Wait for 10 seconds (presumably the inventory and the map chunks both save at this time)

  4. Pick up the item

  5. Immediately quit (presumably the inventory is saved immediately, but we are quitting before the map chunks have saved, as per comments by @unknown)

  6. reload the world (step 3.png)

  7. You can see you have the item in the inventory and on the ground (step 4.png)

  8. Picking up the item proves it's duplicated, as it's in the inventory twice (step 5.png)

Doesn't follow the ACID test: http://en.wikipedia.org/wiki/ACID

System info

  • I am using an iPhone 6+

  • I am using MCPE 0.10

  • I am in survival mode

Forrest Herr

(Unassigned)

Community Consensus

Tablet - iOS - iPad 3

duplication, item

0.5.0, 0.4.0, 0.6.0, 0.6.1

Retrieved