ExitGUIException with Automate AOT DLL Generating

Issue #570 resolved
Son created an issue

Running on Unity 2019.2.0f1 on Mac OSX 10.13.6.

After upgrading to version 2.1.2, we are getting the ExitGUIException being thrown whenever we are building to Android. In order to fix the issue temporarily, Automate Before Builds has to be disabled and AOT DLL has to be generated manually.

This is not the issue with previous version (2.1.0 possibly) of Odin Inspector.

Here’s the stack trace of the exception:

ExitGUIException: Exception of type 'UnityEngine.ExitGUIException' was thrown.
UnityEngine.GUIUtility.ExitGUI () (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:156)
Sirenix.Serialization.AOTGenerationConfig.GenerateDLL () (at C:/Projects/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Config/AOTGenerationConfig.cs:302)
Sirenix.Serialization.Internal.PreBuildAOTAutomation.OnPreprocessBuild (UnityEditor.BuildTarget target, System.String path) (at Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/BuildAOTAutomation.cs:36)
Sirenix.Serialization.Internal.PreBuildAOTAutomation.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/BuildAOTAutomation.cs:44)
UnityEditor.Build.BuildPipelineInterfaces+<OnBuildPreProcess>c__AnonStorey0.<>m__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:376)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:356)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Comments (4)

  1. Tor Esa Vestergaard

    … Whoops. I’ve fixed this, and we’ll be pushing a patch shortly with a hotfix - meanwhile, if you want the fix quickly, please write me on Discord and I’ll send over a fixed build.

  2. Log in to comment