This is likely related to MC-177664. I am creating this issue to provide more context and a save file to demonstrate the issue.
In short, when the limit of 247 sounds is exceeded, the client stalls and writes the following to the console several thousands of times:
Maximum sound pool size 247 reached
Failed to create new sound handle
Once the sounds are within the limit, the client responds again.
When the client is stalled, the internal (or dedicated for multiplayer) server is still running, which can be demonstrated by the attached save file.
The limit can be reached during normal play when making a rabbit farm. I originally ran into the issue when building a rabbit farm similar to this one on a small multiplayer server. While populating the farm, my client stalled. I forced the game to close, then ran into the same problem each time I logged on again. While logged on, with the client stalling, I used the server console to teleport my player away from the farm, which made my client instantly respond again.
From my testing, the issue is only present from snapshot 20w09a onward. Previous versions force the number of sounds down before exceeding the limit.
The "Sound Overload Demo 20w09a.zip" contains 4 contraptions to show the issue. To the south is 2 contraptions that show the number of sounds from a single rabbit and a single cow (using f3, cow maxes out at 3, rabbit maxes out at 12). In the middle is a contraption like the rabbit farm with 72 rabbits that stalls the game for a few seconds before redstone removes the water to lower the sounds. To the north is a contraption with 432 chickens that causes the game to stall very briefly.
The "Sound Overload Demo 1_15_2.zip" has the same contraption that lags the game in the snapshots, but in 1.15.2 to show how the game handled the issue in previous versions.
Linked issues
testing discovered 1
Attachments
Comments 35
I'm currently seeing this used by players to crash other players on my server. Server is modded, running Paper but I cannot confirm whether or not the exploit works on vanilla as I can't find it published in a cheat client anywhere yet. Assuming since it can happen in vanilla survival it can be used against vanilla servers too.
Can confirm on 1.16 snapshots and 1.16.1, but without actualy overload. Just in a new world after some time of playing any sound disappears with that messages spam in logs.
Cannot confirm. I just summoned ~3500 rabbits in a box and my client did not freeze. F3 shows 0 or 1 sound at all times for some reason.
its seems to be fixed not sure how but after loading old versions i begin to see sound engine was coming up and since than its been fine i can hear sounds in minecraft i also added a screenshot to show can try out ya self too since loaded old old versions i also has updated my computer several times ill leave this up to ya to decide
I have this issue in my 1.16.1 world. My client log behaves in ex actly the same way, spamming that too many sounds are being played before ending with exit code -805306369. For me, what caused the issue is a sheep farm using 576 sheep and 900 dispensers.