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

Fix scripting AssemblyLoadContext not getting unloaded #2469

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

GoaLitiuM
Copy link
Contributor

Refactor the ALC unload and creation process while also attempt to fix the unloading properly. The local variables in previous ReloadScriptingAssemblyLoadContext method were keeping the assemblies alive by holding references to the collectible types, so splitting the unloading and recreation into separate methods also fixes most of these issues.

Requires also fixing in Newtonsoft.Json: FlaxEngine/Newtonsoft.Json#1

@mafiesto4 mafiesto4 added this to the 1.9 milestone Apr 22, 2024
@GoaLitiuM GoaLitiuM marked this pull request as ready for review April 22, 2024 21:00
@GoaLitiuM
Copy link
Contributor Author

Visual Scripts still seems to cause lock ups during scripts recompilation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants