mojira.dev
MC-180398

Too many sounds causes client to stall, limit can be easily reached with rabbits

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

Attachments

Comments

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

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.

migrated

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.

migrated

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. 

FaRo1

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.

migrated

I think this is MC-1538?

No wait, this is related to MC-1538. This talks about a client side issue whilst MC-1538 talks about sound exceeding the limit of all that can play at once.

FaRo1

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

migrated

This definitely relates to MC-1538, maybe MC-1538 causes this but whatsoever this issue does not duplicate it.

migrated

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.

FaRo1

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

migrated

also relates to the crash with 

  1. MC-201197

migrated

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

migrated

Still an issue in 20w49a.

blublu_owns123

still in 1.16.4

migrated

Limit can also be easily reached with Sculk Sensors.

blublu_owns123

still in latest release for snapshot

Brevort

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.

blublu_owns123

can confirm 1.17

blublu_owns123

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

blublu_owns123

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

blublu_owns123

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

migrated

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.

blublu_owns123

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

blublu_owns123

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

blublu_owns123

Can confirm in Minecraft 1.17.1 Release Candidate 1

blublu_owns123

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.

migrated

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

migrated

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.

ampolive

Can confirm in 21w37a.

blublu_owns123

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.

blublu_owns123

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.

ampolive

Can confirm in 21w39a.

ampolive

Can confirm in 21w40a.

blublu_owns123

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

 

ampolive

Can confirm in 21w44a.

blublu_owns123

Can confirm in 1.18.2.

migrated

gnembon

Community Consensus

Important

Performance, Sound

20w17a, 1.16.2, 1.16.3, 1.16.4, 20w46a, ..., 1.17.1, 21w37a, 21w39a, 21w40a, 21w44a

1.18 Pre-release 5

Retrieved