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

In Unity 2018.2 you cannot call GetBool() during System.AppDomain.CurrentDomain.DomainUnload #167

Open
nickludlam opened this issue Oct 9, 2018 · 0 comments

Comments

@nickludlam
Copy link

I'm seeing this error in the logs when closing Unity (both batch mode and editor mode)

[Package Manager] Server::Kill -- Server was shutdown
Cleanup mono
GetBool is not allowed to be called while application is terminating.
 
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/ScriptingThreadAndSerializationSafeCheck.cpp Line: 85)


Unhandled Exception: UnityEngine.UnityException: GetBool is not allowed to be called while application is terminating.
  at <0x00000> <unknown method>
  at <0x00000> <unknown method>
  at <0x00000> <unknown method>
  at <0x00000> <unknown method>

This comes from hooking into System.AppDomain.CurrentDomain.DomainUnload in order to act upon RevertExternalScriptEditorOnExit preference setting. When the callback is triggered, the Enabled property is queried, which results in this issue.

I don't know what the solution is, but this needs to be reworked to allow Unity to exit cleanly.

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

No branches or pull requests

1 participant