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.
Related issues
testing discovered
Attachments
Comments


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.

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.


Actually, MC-1538 is about sounds being cut off, this is about the client freezing.


This is happening to two players on my server, but not to me. The first player experiences it consistently while working on a very large piston door, the other one experienced it in a piglin bartering area we were both at together.

What differences are there in your setups? Hardware, OS, settings, …?

also relates to the crash with

Confirmed 1.16.3. My bee farm is driving the sounds crazy, even though they barely make any noise.

Still an issue in 20w49a.

still in 1.16.4

Limit can also be easily reached with Sculk Sensors.

still in latest release for snapshot

In 1.17-rc1, I am experiencing the spam but not the client freeze; instead I am having a certain source of sound fail until the volume slider is adjusted.

can confirm 1.17

STILL AN ISSUE OR BUG NOT SOLED? do your need help from me?

its still saying this:
Maximum sound pool size 247 reached
Failed to create new sound handle
Can't keep up! Is the server overloaded? Running 2001ms or 40 ticks behind
am in single player world

minecraft default installation for Latest release (1.17) the JVM ARGUMENTS:
-Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

On Linux, Its still prevalent for me as well. Encountered it with a cave spider spawner. Sounds weren't being played, so I checked the logs, and sure enough that warning was being spammed. I don't encounter this issue in the windows version though.

O_o seems none mojang staff its on this report itsa saying Unassigned but reporter its Jerry Terrell

I have still this issue in my saved world and this was Created: 24/Apr/20 10:52 AM and still can confirm its never been fixed and i cant see any its saying Fix Version/s: None what its going on

Can confirm in Minecraft 1.17.1 Release Candidate 1

Can confirm in 1.17.1 I'd like to request ownership of this ticket since the current reporter has been inactive since October 2020. I'm willing to provide all of the necessary information and will keep this report updated.

this command should make the issue happend:
/fill ~-10 ~-10 ~-10 ~10 ~10 ~10 birch_pressure_plate hollow
if the pressure plates didn't start breaking,trigger them by walking into it/throwing items into the pressure plates.
This can be a great show if the bug isn't here

Finished porting a mod that eliminates the logspam, it removes the 247 limit.
No noticeable performance dip, 500 nether portal sounds playing.
It's my unofficial port of RaiseSoundLimit by ishland.

Can confirm in 21w37a.

the main reasons for this its Slow Tickrate and for that we get messages like this:
Can't keep up! Is the server overloaded? Running 2119ms or 42 ticks behind
Maximum sound pool size 247 reached
Failed to create new sound handle
Something's taking too long! 'root' took aprox 171.7215 ms
Something's taking too long! 'root.tick' took aprox 104.9761 ms
Something's taking too long! 'root.tick.levels.ServerLevel[tnt cannon] minecraft:overworld.tick.entities' took aprox 103.6515 ms
other similar reports related to Slow Tickrate/Minecraft game output.

and other thing found out, other main reasons for this its Slow Tickrate its cursed by too much info at one place if blow up 30k tnt or have over ton of command block with over 3k of command this means that its too much info handled at ones of nearby chunks. i have this place in my world this its and don't have this thing in other places in that world or other worlds. if this its the case than for Minecraft game output gets warn its than its that reason i explained, current me if am wrong.

Can confirm in 21w39a.

Can confirm in 21w40a.

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

Can confirm in 21w44a.

Can confirm in 1.18.2.