Unity 2022.2.0b7
Windows 11 (10.0.25193 Build 25193)
Multiple times during normal editor interaction I can trigger: “UnityException: Win32 could not create GUI view becasue CreateWindowEx failed with message: The operation completed successfully.”
As a side note, the error has because misspelled…
Listed below is one that’s easy to reproduce:
- Create a new project on 2022.2.0b7 with the 3D Sample Scene (URP)
- Open Project Settings > Editor > Numbering Scheme > Game Object Naming
- Click the dropdown
Some of the editor console feedback:
MissingReferenceException: The object of type 'ContainerWindow' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEditor.ContainerWindow.Save () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.ContainerWindow.Close () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.TooltipView.ForceClose () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.TooltipView.Update () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityException: Win32 could not create GUI view becasue CreateWindowEx failed with message: The operation completed successfully.
UnityEditor.GUIView.SetWindow (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.View.SetWindowRecurse (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.ContainerWindow.set_rootView (UnityEditor.View value) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.TooltipView.Show (System.String tooltip, UnityEngine.Rect rect, UnityEditor.GUIView hostView) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityException: Win32 could not create GUI view becasue CreateWindowEx failed with message: The operation completed successfully.
UnityEditor.GUIView.SetWindow (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.HostView.SetWindow (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.View.SetWindowRecurse (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.View.AddChild (UnityEditor.View child, System.Int32 idx) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.SplitView.AddChild (UnityEditor.View child, System.Int32 idx) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.View.AddChild (UnityEditor.View child) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.EditorWindow.CreateNewWindowForEditorWindow (UnityEditor.EditorWindow window, System.Boolean loadPosition, System.Boolean showImmediately, System.Boolean setFocus) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.EditorWindow.Show (System.Boolean immediateDisplay) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.EditorWindow.Show () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.ProgressWindow.ShowDetails (System.Boolean shouldReposition) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.Progress.ShowDetails (System.Boolean shouldReposition) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.AppStatusBar.DrawRefreshStatus () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEditor.AppStatusBar.OldOnGUI () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.IMGUIContainer.ProcessEvent (UnityEngine.UIElements.EventBase evt) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <405ac71c73e84226a33d646516b4c433>:0)