Fix rare exception due to no function definition with multiple script loading threads#8563
Merged
UnderscoreTud merged 4 commits intodev/patchfrom May 1, 2026
Merged
Conversation
sovdeeth
requested changes
Apr 19, 2026
sovdeeth
approved these changes
Apr 19, 2026
Contributor
I still get errors with this |
Contributor
This causes serious issues making it worse than the original bug |
Contributor
Crashes the server |
Contributor
|
Original issues needs a priority bump |
Member
|
Can you post the log as a whole rather than just the stacktraces? it'll be helpful to see context around the errors. |
Member
Author
|
can you post the code you used to achieve this? im not seeing these errors |
UnderscoreTud
approved these changes
May 1, 2026
sovdeeth
approved these changes
May 1, 2026
Contributor
|
@sovdeeth @UnderscoreTud not fixed, it's even worse now. See original issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In rare cases, reloading a script which used a function definition in a different script with multiple script loading threads would cause the function implementation to be undefined, which would cause an exception.
Solution
Instead of setting the function implementation to null, now marks the function implementation to be unloaded. The function reference will continue to use the old implementation until a new one can be found.
Testing Completed
Spam
sk reload xwith 1 worker thread in config.Supporting Information
Completes: #8468
Related: none
AI assistance: none