ContextActionService:GetButton crashes thread without throwing an exception

If ContextActionService:GetButton is called within a Stepped callback it will hard-crash the thread so that it will not continue even if you wrap it in a pcall.

The pcall doesn’t return anything because it totaly shuts down the thread, it stops executing.

I’ve attached a sample scene file.

Open StarterPlayerScripts/LocalScript.lua.

Inside “1” and “2” are printed. If you run it only “1” will be printed because ContextActionService:GetButton hard crashes the thread.

Bug_ContextActionService.rbxl (35.5 KB)

We’ve filed a ticket to our internal database, and we’ll follow up when we have an update. Thanks for the report!

Thanks for flagging!

1 Like

Been a problem for many years:

1 Like

Hi!

I just released a fix for this. Please let me know if this resolves the issue or if any additional problems occur!

Thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.