mojira.dev
MC-218167

Chatting causes lag to occur

Relates to MC-65587 and MC-225777

Possibly related to MC-131219, however, that bug takes place when you open chat; this is once you've hit enter to put something in the chat.

The bug

Often, I want to make a note to myself in singleplayer of something like coordinates. But lately, when I attempt to place such information in chat, it causes the game to freeze for a second for no reason even though I am in singleplayer.

Steps to reproduce:

1. Log into a singleplayer world that isn't open to LAN, etc.

2. Type something in chat and hit enter when you are done.

--> ❌  Notice the big lag spike.

 

Additional Information

Note: It doesn't always happen, and it doesn't happen twice in a row.

Another note: Significantly less lag in 21w18a, but still there.

It seems like the game is trying to access the log and that is why it causes so much lag. It also occurs with command feedback. and feedback from debug profiling, but only the message including where the profile saved.

Linked issues

Attachments

Comments 20

I know the screenshot is from 05b, but it happens in the other versions listed as well.

i have experienced this bug in multiplayer 1.16.5(modded server) and 21w18a(vanilla)

Can confirm in 1.17-pre1.

Can confirm in 1.17 Pre-release 3.

Can Confirm in 1.17 release

10 more comments

affects 1.18.1

lag occurs again after a while of someone not chatting, likely due to the player name cache being cleared

this can be fixed fairly easily by making the server request asynchronous i assume

It appears this bug has re-arisen. 1.18+

Can confirm that this is occurring again in 1.18.1. client freezes for approximately 1-2 seconds whenever a player is silent for a while and sends a message.

If you think this still affects the latest version, please file a new bug report. If possible with some information, i.e. video/f3 screenshot etc.

MC-247973 is the new ticket for this issue as this behavior has reappeared in 1.18.1.

Brevort

boq

Confirmed

Normal

Performance

chat, lag-spike, singleplayer

1.16.5, 21w08b, 21w11a, 21w15a, 21w16a, ..., 1.17 Pre-release 1, 1.17, 1.17.1, 21w37a, 21w38a

21w39a

Retrieved