Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminate Lua scripts hanging in LL.get_event_next(). #1079

Merged
merged 8 commits into from
Mar 28, 2024

Conversation

nat-goodspeed
Copy link
Collaborator

Make LuaListener listen for "LLApp" viewer shutdown events. On receiving such,
it closes its queue. Then the C++ coroutine calling getNext() wakes up with an
LLThreadSafeQueue exception, and calls LLCoros::checkStop() to throw one of
the exceptions recognized by LLCoros::toplevel().

Add an llluamanager_test.cpp test to verify this behavior.

Fixes secondlife/viewer-private#223.

Make LuaListener listen for "LLApp" viewer shutdown events. On receiving such,
it closes its queue. Then the C++ coroutine calling getNext() wakes up with an
LLThreadSafeQueue exception, and calls LLCoros::checkStop() to throw one of
the exceptions recognized by LLCoros::toplevel().

Add an llluamanager_test.cpp test to verify this behavior.
@nat-goodspeed nat-goodspeed merged commit 5e576c9 into release/luau-scripting Mar 28, 2024
11 checks passed
@nat-goodspeed nat-goodspeed deleted the lua-hangfix branch March 28, 2024 18:58
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants