Mojira Archive
MCPE-101258

Autosaving is handled improperly on game crash

The game handles the player's inventory and the world improperly when crashing, likely due to being in the process of autosaving (MCPE-51837), causing either deletion or duplication of item stacks changed in the inventory. (I'm guessing from this point forward) In some cases, it seems as though the game autosaves the world first, then autosaves the inventory. In other cases, it's the other way around, autosaving the inventory first, then the world. When the game crashes, the second step is not run at all.

Steps to Reproduce

  1. Load a world
  2. Change your inventory (throw out an item, place a block, die, or something else that changes your inventory)
  3. Travel about 4 chunks away from the area you performed it in
  4. Find a way to crash the game quickly (Alt + F4 was used here)
  5. Reload the world

At this stage, the items either duplicated or disappeared.

Video Example (this is unlisted)

https://youtu.be/9RxHsBNr3Jc