Task.wait() in TextChatService.OnIncomingMessage causes crash without log

Using task.wait() in the TextChatService.OnIncomingMessage causes both studio and the client to crash without a crash dump or a “Roblox needs to quit” popup. This causes a crash on every platform regardless of operating system or specs.

I am not sure when this started happening.

Reproduction Steps:

  • Open the attached place to this report.
  • Type in chat.
  • Client or Studio crashes without any logs.

CrashRepoPlace.rbxl (53.1 KB)



We’ve filed a ticket into our internal database for this issue, and we will update you when we have further information!

Thanks for the report!

1 Like

Quick question, what’s the use case for calling task.wait() in OnIncomingMessage? These callbacks should not yield since any yielding logic would prevent messages from being processed until they’re resolved.

Hey! Sorry for the extremely late response. I was porting over a script from the legacy chat system to use text chat service. It was an unintended side effect from blind copy and paste.