Various Win32 Window Errors Flooding Console, Breaking Editor.

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)

I also ran into this problem last week, I am currently updated to the latest win11 version, I now very much suspect that the latest version of win11 has this problem

And I also have the unfortunate news that you will be running into this problem in any 2021, 2022, 2023 version of unity.I’ve personally tested these versions and they all have problems with this situation after a while

I posted my screenshot on the bug forum in 2023 and you can see that our questions are exactly the same, since I’m from China, there are some Chinese above, but the meaning is the same.Now that you’ve also encountered this problem, I’m now more convinced that it should come from the latest dev version of Win11。

Hey, I have the same issue. I am running Windows 11 (OS Build 25193.1000)
Here is a Related Form

Hi, we have noticed that this issue is happening exclusively on Windows 11 insider version. We’re still in middle of investigating it, but for now the workaround is to downgrade to a non-insider version of Windows.

I am also facing same issue with Latest windows Insider! hope you get it resolved soon

We believe this has been fixed by Windows 11 Insider build 25201. If anyone is still facing this issue, can you upgrade to that version and report back whether it fixes it for you?

1 Like

Sorry for such a late reply. After updating Windows, it has fixed the issue.

It’s now September 2024 and I am still getting this issue on assets from the Asset Store when installing. Windows 11 is well beyond preview. And Windows 10 is EOL in year (10/2025).

Any word on solution for this?

October 2024.

I’m receiving the exact same issue, just not on Windows 11, but on Windows 10.
This is not just a Win11 issue.

Unity Version: 2022.3.46f1
Windows Version: Windows 10 - v10.0.19045

same issue Windows 11 Home 23H2 with unity 6 (6000.0.27f1)

Hi folks, when did this start happening?

I suddenly started getting after update to 6000.0.33f1. Trying to update Feel from 5.2 to 5.3

Can you please share the editor log after this happens?

Hi, I encountered the same error. Here are my logs from the editor.

Unity 2022.3.59f1
Windows 11 24H2

EditorLogs.zip (87.8 KB)

Is this error something that you get consistently?

We’ve been unable to reproduce this error internally. There could be multiple reasons this occurs, some of which would be in our control to fix, some of which not. Such as if a plugin hooks into a WndProc.

The course of action that would be most helpful on the investigation side would be to report a bug and, if you are able to consistently reproduce this, include a repro project even if that project is minimized to just show this issue.

edit @sherzhen (or others), do you know if you are solely seeing this error during the build process, if so, do you recall if you kicked off the build using a shortcut like Ctrl+B?