mojira.dev
MC-177664

Sound system warning messages are spamming the system log

The bug

In the situation of many sounds produced at the same time, there is a high chance of warnings form the sound system to spam the game error log. It can also cause client to freeze when the error is spammed.

[02:06:26] [Sound engine/WARN]: Maximum sound pool size 247 reached
[02:06:26] [main/WARN]: Failed to create new sound handle
[02:06:26] [Sound engine/WARN]: Maximum sound pool size 247 reached
[02:06:26] [main/WARN]: Failed to create new sound handle
[02:06:26] [Sound engine/WARN]: Maximum sound pool size 247 reached
[02:06:26] [main/WARN]: Failed to create new sound handle
[02:06:26] [Sound engine/WARN]: Maximum sound pool size 247 reached
[02:06:26] [main/WARN]: Failed to create new sound handle
[02:06:26] [Sound engine/WARN]: Maximum sound pool size 247 reached
[02:06:26] [main/WARN]: Failed to create new sound handle
[02:06:26] [Sound engine/WARN]: Maximum sound pool size 247 reached
[02:06:26] [main/WARN]: Failed to create new sound handle
[02:06:26] [Sound engine/WARN]: Maximum sound pool size 247 reached
[02:06:26] [main/WARN]: Failed to create new sound handle
[02:06:26] [Sound engine/WARN]: Maximum sound pool size 247 reached
...

Attachments

Comments

migrated
[media][media]
CreeperMagnet_

Can confirm.

Jarno_Wit

Can confirm for 1.16.1 as well.

migrated

1.16.3 too.

blublu_owns123

still in 1.16.4

[media]
Avoma

Can confirm in 20w51a.

migrated

Can confirm too (1.16.4). I first thought the huge lag spike was due to my client not able to process the entities when killed, but after I opened the console I see that this error was being spammed a lot. The lag is annoying when dealing with mob farms especially.

blublu_owns123

still in latest release for snapshot

blublu_owns123

Can confirm in Minecraft 1.17.1 Release Candidate 1

migrated

Updating to comment that hacked clients / players are exploiting this glitch to crash / freeze users by in game proximity. We banned 3 players utilizing this exploit on our server today.

migrated

Seems like there's a script / tool to do this. We've banned more players.

lovexyn0827

It is a very annoying problem which makes the client more lagged or crash by sending so many messages to the console.You may know that calculating the square root of integers between 0 and 1M and output to the console is more than 10 times slower than only calculating them.So the carpetmod decides to avoid the annoying messages by adding a rule to decide if messages like this should be output.

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 Apr 2020. I'm willing to provide all of the necessary information and will keep this report updated.

migrated

Happens a lot on multiple pistons running simultaneously, reduces frames and makes the game stuttery.

Seen first in 1.13, confirming for 1.16 (all versions) & 1.17 (both versions)

ampolive

The performance issue is tracked in MC-180398.

migrated

Game crashed to due same bug while having console open on MultiMc

migrated

Should this maybe be set to private, considering this can be used to create gigabytes worth of log files for other players?

ampolive

Would MC-180398 be set to private as well?

ampolive

Can confirm in 21w37a.

ampolive

Can confirm in 21w39a.

ampolive

Can confirm in 21w40a.

ampolive

Can confirm in 21w44a.

migrated

Can confirm in 1.16.5

migrated

This was fixed in 1.18...1.16 is outdated...

blublu_owns123

Can confirm solved in 1.18.2

[media]

gnembon

gnembon

Confirmed

Important

Performance, Sound

1.15.2, 20w14a, 1.16.2, 1.16.4, 20w51a, ..., 21w37a, 21w39a, 21w40a, 21w42a, 21w44a

1.18 Pre-release 5

Retrieved