mojira.dev
MC-12363

Lava / water / powder snow bucket desync when using it while rapidly turning

The bug

A desync can happen when rapidly turning and trying to use a lava, water, or powder snow bucket. The bucket might appear full but you placed lava / water / powder snow; or the bucket might appear empty but you did not place lava / water / powder snow.

How to reproduce

  1. Give yourself a lava bucket

  2. Spin around (move mouse) standing on a flat plain and repeatedly try to put down and pick up the lava in the bucket
    โ†’ โŒ About 1 in 10 times, the client and server desync (e.g. I see the lava on the ground, and also in my bucket, until I use the bucket again or move it in my inventory; or I see no lava on the ground and my inventory displays the bucket as empty, but I actually still have lava and can place it).

Code analysis

Based on 1.12.2 decompiled using MCP 9.40

Using a bucket calls server-side net.minecraft.item.ItemBucket.onItemRightClick(World, EntityPlayer, EnumHand) which calculates the position itself and therefore can cause a desync. Ideally the position for picking up liquids and placing them should be calculated client-side only and then the server should only validate it and use that position.

Examples

[media]

[media]

[media]

Related issues

MC-153123 Water Pickup Bug MC-22377 Lava buckets in inventory randomly become empty MC-60815 Placing lava in water fast causes lava to stay lava MC-84326 Buckets emptying with torches in shield slot MC-127147 1x1 bubble created by bucket underwater doesn't disappear MC-127233 Spamming buckets creates phantom air MC-133539 Water does not fill empty spaces MC-133550 Holes in water MC-134139 Water does not refilled MC-134343 When spam filling a water bucket with water, air can be created under water. MC-134714 Minor water bug MC-134918 Source water blocks MC-136140 "Water bubble" in water if you spam empty buckets MC-136623 ghost water blocks MC-137083 Water Bug MC-139568 water is empty MC-140875 Picking up water very fast makes an "air" block MC-141794 Water Bucket or waters glitch MC-143878 Water is not flowing occasionally MC-144219 Disappearing blocks and reappearing blocks MC-146039 Right click with bucket in the water leaves air bubble MC-146180 Water doesn't flow after using a bucket MC-148261 water doesnt flow MC-148288 Right clicking a bucket on a body of water sources while moving your mouse really fast removes two water sources instead of one MC-150162 There is a problem with water buckets. Sometimes when placing water down from a water bucket, the water disappears. MC-150863 air block in the middle of water MC-151665 Water fails to be picked up and stays in current location but turns invisible. MC-157975 Picking water with buckets sometimes doesn't work MC-160166 Disappearing Water? MC-160970 Blocks of water disappear MC-161504 Infinite Water Bug MC-162880 Man Made Air Pocket in Water MC-166672 Water source block issue MC-168506 Using buckets towards fish underwater can sometimes cause air to appear in the water MC-168953 When a water is placed with a water bucket on a server, it has a chance to dissapear. MC-169081 Bucket falsely fills with water MC-169119 Infinite water source doesn't replenish MC-170369 Buckets cause water sources to disappear and not reflow until water is updated MC-170404 Water disapeared after placing down the water using a water bucket MC-177039 Placing water quickly on grass makes water float MC-177303 Lava in the buckets acts weird MC-178363 Causes a air gap in water MC-178416 Water Source Blocks are not being formed back after they are picked up with a Bucket MC-178492 Water/Bucket bug MC-178709 Air block in water lake not filling in. MC-181969 Picking up water or lava sometimes causes syncing issues, making ghost source blocks MC-182510 Water bug MC-182713 Water gathering issue using Frost Walker enchantment and teleportation between Water Bucket icons MC-183993 Water does not flow properly/create new water source block once removed MC-184310 Water Buckets filling when they aren't supposed to MC-184584 invisible water MC-187017 Invisible water issue MC-187376 Air bubbles when clicking on water with a empty bucket MC-187505 Lava not turning into obsidian in water. MC-188016 Buckets Sometimes Doesn't Place The Water MC-190185 Ghost Water or Lava Blocks MC-190377 Sometimes water gets picked up in bucket, but source stays MC-190391 broken water mechanics MC-191486 Item Disappearing when placed MC-192405 Water MC-195662 Water glitch MC-196051 Water Randomly Disappears From Bucket MC-196352 Water Update Glitch MC-196546 Waterbucket displaying wrong ico MC-196690 water air blocks MC-198038 Water disappear (visual bug) MC-198094 Inviseble water MC-198704 Lava doesn't go away MC-199800 Water Bug MC-199963 Water bug MC-200339 1 bucket + 2 clicks fast = 1 air 1 water (1b+2cf=1a1w) MC-200792 Picking up water and the code not registering it being picked up MC-202085 Bug with Endless source of water on 1. 16. 3. MC-202100 Weird water bucket behaviour MC-202878 Ghost water buckets MC-202897 Sometimes water and lava are not collected/placed correctly MC-203422 Water/lava client side cavity MC-204250 Water source block deleted on rare occasions MC-204517 Bucketing water too fast causes visual(?) error MC-204699 water replaces with air when filling buckets with water at a river/can't place water buckets MC-204728 The water bucket has a chance of glitching and not being usable MC-205225 Attempting to pick up Powder Snow in a bucket while running and jumping simultaneously doesn't remove block, but temporarily fills bucket. MC-205507 ghost water MC-206511 You Can Create Fake Air Pockets By Filling Up Buckets Too Fast MC-206537 Water and Lava Disappears Randomly MC-206782 Water Bucket Glitches MC-206882 Invisible water bug MC-207166 water buckets doesnt work as propperly MC-207990 Bucket bug MC-208190 Invisible lava in 20w49a MC-208414 Water bug MC-209105 20w51a Issue (Axolotl) MC-209179 Water doesnt dissapear (Bucket) MC-209358 Water doesn't go in my bucket MC-210157 Lava glitch MC-210297 water buckets act wierdly MC-210862 Buckets used at previous crosshair locations MC-211203 Water will sometimes appear in the bucket but it won't actually be in the bucket MC-213453 Desynced water with buckets MC-214247 Server-client desync when turning camera quickly (duplicate) MC-214391 Water Bug MC-214542 Water Glitch MC-215523 water bug MC-215572 Using a bucket underwater will pick up the water block you are in MC-216021 Spamming a bucket under water results in infinite oxygen. MC-216069 Invisible lava source block?! MC-216531 Water Physics Issue MC-217438 Bug with water and bucket MC-217508 Water stops updating? MC-217598 Water glitch MC-217744 water does not get picked up sometimes MC-219644 When you fill a bucket with water while moving the camera quickly, an empty block will remain in the water source, which should not be there MC-219801 Water Dissapearing When Placed MC-222975 Water Bug MC-223332 Fake lava bucket/ Ghost bucket MC-231630 Water source doesent pick up when it looks like it is

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media]
migrated

I hope somebody will response! ๐Ÿ˜ƒ ๐Ÿ™‚

migrated

This is an old bug and does not actually relate to doors.
Occasionally lava source blocks do not fill buckets correctly (serverside) and minecraft restates the faulty bucket (clientside) in your inventory as empty when you happen to update its item. If the item is in your hand it restates immediately after you use it (right click) even if you actually use something else like a door. Because you cannot stack full buckets, they also appear full in your inventory when (pseudo)filled. In this case your bucket will be restated when you try to move it in inventory.

Guide to reproduce:
1. Take 10-20 empty buckets to the lava source.
2. Quickly use them to drain as much source blocks as you can reach.
3. Try to move your lava buckets within your inventory or use them in any way. There is a chance some of them would reappear empty. Repeat if necessary.

migrated

Alright! ๐Ÿ™‚
Thank you for your reply!

Ezekiel

Is this still a concern in the latest Minecraft version 14w30c? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

Probably fixed. Spent 4 stacks of buckets in survival to drain a small lake - no bucket was considered empty by the game.

migrated

This just happened to me today on the latest snapshot 15w35e - was quite happily filling buckets of lava from a deep underground pool got to the surface to find the bucket was empty when I tried to placer it in a chest, had been carrying it in my hand on the way up not in my inventory. Happened after 7 buckets of lava had been transported.

migrated

I can still reproduce this in SSP in 15w46a. A single bucket and a single lava source is enough; I just walked around constantly placing and the picking up the lava. After a minute, I ended up with a full bucket, but also lava flowing in front of me. Moving the bucket in my inventory cause the bucket to magically 'empty'. Simple client-server mismatch.

migrated

It sounds like possibly MC-94008 has some simple repro steps to reproduce this bug with milk, though I've not confirmed it.

migrated

MC-95720 has some useful demo/repro of possible de-sync conditions

migrated
migrated

I can confirm that this issue is still occurring sporadically, playing on Minecraft 1.10.2. Yesterday I was able to carry lava around in buckets just fine, but for some reason when I tried to do it today I encountered this issue where I would fill the bucket with lava, and then I would walk a little ways and look down and see that the bucket is empty.

migrated

Can someone tell me reproduction steps with lava or water for the current snapshot version?
I tried several tests, but couldn't manage to reproduce it so far with lava or water. Someone said (in 2015) it seemed to occur more frequently with high ping, which messes badly in PvP of course, if this is still the case.

I only could reproduce it in 17w16b with milk (MC-107103) as demonstrated in MC-94008.

(Offer to overtake this bugpost for more frequent updating, in case it still occurs with water/lava in the newest snapshot.)

migrated

Here you go, did the same thing I did a year ago (but now on the latest snapshot ofc). The second test (placing water) behaved a bit different this time around. This is all on singleplayer, once again the higher your ping to a server, the more often this happens.

wobst.michael

Is this still an issue in the most recent versions (currently that is 1.12.2, or 18w02a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

migrated

I am the Reporter, yes. I don't really play the game anymore so I can't tell, if it is still an issue or not.

If it's possible I give anyone the right who is currently active to modify the version. ๐Ÿ™‚

migrated

This is trivial to reproduce:

Give yourself a lava bucket. As you spin around (move mouse) standing on a flat plain, repeatedly try to put down and pick up the lava in the bucket. About 1 in 10 times, the client and server desync (e.g. I see the lava on the ground, and also in my bucket, until I use the bucket again or move it in my inventory; or I see no lava on the ground and my inventory displays the bucket as empty, but I actually still have lava and can place it).

(I just reproduced in in 18w02a)

violine1101

Gave the report to @unknown.

marcono1234

Happened to me with water as well, therefore I am going to change the report.

lord.quadrato

Confirmed for 18w20c

violine1101

@unknown, please write new comments (and delete your old ones if you want to keep the comment section clean) instead of just editing your latest comment. If you edit a comment, that's only visible to users that are watching the report, and doesn't appear in the activity feed.

lord.quadrato

Thank you, I did'nt know that

lord.quadrato

Confirmed for 1.13-pre2

lord.quadrato

Confirmed for 1.13-pre3

ZeNico13

Confirmed for 1.13-pre9

marcono1234

@@unknown, thank you very much, but there is no need to provide screenshots or gifs every time you confirm this bug. The now attached examples should be enough.

ZeNico13

@Marcono1234 Oh okay! Sorry

And also... Confirmed for 1.13-pre10!

ZeNico13

Just a question : why no manager is still associated with this bug report?

violine1101

Because this bug isn't being worked on right now.

ZeNico13

Still in 18w30b

ZeNico13

Still in 18w31a

ZeNico13

Still in 18w32a

ZeNico13

Still in 18w33a

ZeNico13

Still in 1.13.1-pre1

ZeNico13

Still in 1.13.1 release

migrated

Ghost water blocks are still a thing in 1.13.1

[media]
ZeNico13

Still in 1.13.2-pre1

ZeNico13

Still in 1.13.2-pre2

ZeNico13

Still in 18w43b

migrated

Why is there still a fixed version for a bug that was reopened ? Also, it can happen in creative too (not only in gamemode survival)

ZeNico13

Still in 19w05a

ZeNico13

Still in 19w06a

ZeNico13

Still in 19w07a

ZeNico13

Still in 19w08a

ZeNico13

Still in 19w09a

ZeNico13

Still in 19w11a

ZeNico13

Still in 19w11b

ZeNico13

Still in 19w12b

ZeNico13

Still in 19w13a

ZeNico13

Still in 19w14a

ZeNico13

Still in 1.14 Pre-Release 1

ZeNico13

Still in 1.14 Pre-Release 2

ZeNico13

Still in 1.14 pre-3 and 1.14 pre-4

ZeNico13

Still in 1.14 pre-5

ZeNico13

Still in 1.14 Release

ZeNico13

Still in 1.14.1 Release

ZeNico13

Still in 1.14.2 Pre-Release 1 and 1.14.2 Pre-Release 2

migrated

Still in 19w36a

muzikbike

Relates to MC-9591

migrated

Affects 20w12a

migrated

Also affects multiplayer from my experience.

migrated

Affects 1.16 pre-release 5

migrated

Affects 1.16.2 snapshot 20w28a

migrated

Can't imagine this has never been reported, almost positive this is a duplicate.

Chandler

This is the original report? It was created in 2013

migrated

The eternal bug

migrated

Just replicated this bug in the latest version (1.16.3). Saving and exiting the world then relaunching it fixes the holes in the water. With this you can theoritically make an empty pool on nothing and have a player drown in the air.

violine1101

Also affects powder snow buckets, see MC-205225

migrated

Confirmed in 20w46a

migrated

Confirmed in 20w51a

migrated

I wonder if they will ever fix this, it is marked as important and should be a simple fix

migrated

Try making the max speed of picking up water less.

migrated

I feel like this is from the bucket picking up two blocks of water/lava simultaneously then not filling in the gap that's left over, making the speed of picking up water less would still cause the bug but just less frequently

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 21w08b.

Avoma

I'd like to request ownership of this ticket since the reporter has been inactive since February 2018. I'm willing to keep this ticket updated and provided all of the necessary information.

migrated

It is not fully fixed in 21w11a, but it seems harder to reproduce now.

[media]

Panda4994

@unknown Thanks for testing! Impressive how fast you managed to break it ๐Ÿ˜‰
I was able to reproduce what you showed, though it turns out to be a different issue with a similar effect.
This report is about the desync when rapidly turning the camera (because the position and rotation server and client would simulate the right click action with could be mismatched), the other version you found happens when picking up two liquid blocks that are behind each other in close succession. It can be reproduced by having two water blocks with empty space behind them and then clicking two times with an empty bucket with roughly 250ms delay in between.

[media]


This issue warrants a new report.

migrated

New report is MC-219875

migrated

@panda4994ย Why exactly are liquids calculated server-side? It would be much simpler to calculate it client-side and have the server validate it, just like the rest off the blocks.ย 

Panda4994

@unknown Yes, you are absolutely right, it should work like this. However it's not a simple change to do at the moment, as it has implications for how the offhand is handled, and the resulting changes have implications for modded servers.
The current fix is a small patch to avoid the most annoying part of the issue from showing up.

migrated

I can confirm this happening on 1.16.5. In vanilla survival on a vanilla server.

Scenarios that can happen (from experience) that can be related to this:
1.ย 

[media]

2. Your water bucket looks full with water, but when you try to place it, your water disappears.

Makzevu

This issue has been fixed in the 1.17 snapshots, and should be released alongside Caves and Cliffs: Part 1 on June 8th (in a little less than two days).

migrated

Not fixed, Reproduced in 1.17

[media]

Makzevu

Are you experiencingย MC-219875?

HackProtectorX

This bug is not possible to fix โ€” it is a knowledge problem between the server and client. There will always be a chance of desynchronization due to simple physics, and packet loss is a reality. Attempts at fixing it have only caused more issues for plugin developers, who then have to deal with filtering duplicate packets.

Avoma

Panda4994

Confirmed

Important

Block states, Networking

bucket, desync, empty, lava, water

Minecraft 1.5, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.7.4, Minecraft 14w27b, ..., 21w05b, 21w06a, 21w07a, 21w08b, 21w10a

Minecraft 14w30c, 21w11a

Retrieved