The bug
If you insert a music disc into a jukebox and quickly click it out again, the music will continue playing without the music disc actually being in the jukebox. In previous versions, when successfully reproduced, the following error would appear in the launcher log:
[media]How to reproduce
Get a jukebox.
Put any disc in.
Click as fast as you can to get the disc out.
→ ❌ Music continues to play without the music disc being in the jukebox
Related issues
is duplicated by
relates to
Attachments
Comments


Can confirm for 1.11.2
I had to try this multiple times (20+) to reproduce.
EDIT:
After testing with an auto-clicker I managed to reproduce this way faster. Even clicking the jukebox, giving it a block update or breaking the jukebox won't stop the music. When pressing escape the music stops but continues when going back to the game.
EDIT 2:
After quitting the world and reloading it, the music starts from the beginning. When the music has ended, the music just stops and no music disks are duplicated.
EDIT 3:
When clicking the jukebox with another music disk both sounds are played at once. This allows you to play 'an infinite' amount of disks at once.

I think you clicked so fast that the game couldn't manage to state if you put in a disk when clicking or not so it just returned null at the stop function, as seen in the launcher error message.

It would be probably a Won't Fix.
I agree with José; it is a game issue.
Can be reproduced very easily by changing your controls settings so that you use a keyboard key instead of a mouse button for "Use/Interact".

i found the same thing still not patched in 1.15.2 using a macro it works but clicking is very hard

Confirmed for 20w20b

Confirmed in 20w28a

Confirmed for 1.16.2

Can confirm for 1.16.3rc1

Confirmed 1.16.3

Found a way to stop it! Whenever you did that then make jukebox volume to 0% then 50% its stops

Affects 1.16.4 Pre Release 2
Can confirm in 20w49a.

Affects 1.16.4

Affects 1.16.5, music stops if you go into another dimension or in the case of servers, disconnect and reconnect.

Affects release 1.17

Affects 1.17.1

Affects 1.19?

Can confirm that this can also happen with the new 23w07a snapshot and the interaction with hoppers making it some what more likely

Still an issue in 1.19.4. It happens 99% of time for me

Happens in 1.20.1

Happened to me on my friend's server also. Both of us realized that when this happens, BOTH OF US can hear the disc, even after the glitch is performed. My guess for the cause being due to something similar to how ghost blocks were made...? (IE: Client vs. Server thing) This is mainly due to me having issues replicating it in single player worlds specifically.

i was watching a YouTube video about something (unrelated) and they accidentally created a redstone contraption that can basically spam this bug but it requires a specific timing to get it right

Also found found about this bug in a vanilla 1.20.4 server. Affects 1.20.4 Java Edition

Added video demonstrating the bug.

Happens in 1.21.1 and can easily be reproduced with a hopper minecart.

You can replicate the glitch even easier by adding a dropper that puts the disc into the jukebox and as the last comment said putting a hopper minecart underneath, letting you automatically trigger the glitch every time. (Tested in 1.21.4)