Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Resolved Various Win32 Window Errors Flooding Console, Breaking Editor.

Discussion in '2022.2 Beta' started by VRGJerry, Sep 6, 2022.

  1. VRGJerry

    VRGJerry

    Joined:
    Sep 6, 2022
    Posts:
    2
    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:

    Code (CSharp):
    1. MissingReferenceException: The object of type 'ContainerWindow' has been destroyed but you are still trying to access it.
    2. Your script should either check if it is null or you should not destroy the object.
    3. UnityEditor.ContainerWindow.Save () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    4. UnityEditor.ContainerWindow.Close () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    5. UnityEditor.TooltipView.ForceClose () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    6. UnityEditor.TooltipView.Update () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    7. UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    Code (CSharp):
    1. UnityException: Win32 could not create GUI view becasue CreateWindowEx failed with message: The operation completed successfully.
    2.  
    3. UnityEditor.GUIView.SetWindow (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    4. UnityEditor.View.SetWindowRecurse (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    5. UnityEditor.ContainerWindow.set_rootView (UnityEditor.View value) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    6. UnityEditor.TooltipView.Show (System.String tooltip, UnityEngine.Rect rect, UnityEditor.GUIView hostView) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    Code (CSharp):
    1. UnityException: Win32 could not create GUI view becasue CreateWindowEx failed with message: The operation completed successfully.
    2.  
    3. UnityEditor.GUIView.SetWindow (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    4. UnityEditor.HostView.SetWindow (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    5. UnityEditor.View.SetWindowRecurse (UnityEditor.ContainerWindow win) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    6. UnityEditor.View.AddChild (UnityEditor.View child, System.Int32 idx) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    7. UnityEditor.SplitView.AddChild (UnityEditor.View child, System.Int32 idx) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    8. UnityEditor.View.AddChild (UnityEditor.View child) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    9. UnityEditor.EditorWindow.CreateNewWindowForEditorWindow (UnityEditor.EditorWindow window, System.Boolean loadPosition, System.Boolean showImmediately, System.Boolean setFocus) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    10. UnityEditor.EditorWindow.Show (System.Boolean immediateDisplay) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    11. UnityEditor.EditorWindow.Show () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    12. UnityEditor.ProgressWindow.ShowDetails (System.Boolean shouldReposition) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    13. UnityEditor.Progress.ShowDetails (System.Boolean shouldReposition) (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    14. UnityEditor.AppStatusBar.DrawRefreshStatus () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    15. UnityEditor.AppStatusBar.OldOnGUI () (at <abd09a1057bb4f8db3b2cc7e0eb62dcf>:0)
    16. 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)
    17. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    18. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    19. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    20. UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    21. UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    22. UnityEngine.UIElements.IMGUIContainer.ProcessEvent (UnityEngine.UIElements.EventBase evt) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    23. UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    24. UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    25. UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    26. UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    27. UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    28. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    29. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    30. UnityEngine.UIElements.EventDispatcher.OpenGate () (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    31. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    32. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    33. UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    34. UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    35. UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    36. UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    37. UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    38. UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <bdadec060fc14ef08f2f7baeafd3a269>:0)
    39. UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <405ac71c73e84226a33d646516b4c433>:0)
    40.  
     
    Last edited: Sep 6, 2022
  2. Farcilo

    Farcilo

    Joined:
    Dec 4, 2021
    Posts:
    9
    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
     
  3. Farcilo

    Farcilo

    Joined:
    Dec 4, 2021
    Posts:
    9
    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
     
  4. Farcilo

    Farcilo

    Joined:
    Dec 4, 2021
    Posts:
    9
    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。
     
  5. RyanTheTechMan

    RyanTheTechMan

    Joined:
    Oct 1, 2019
    Posts:
    4
    Hey, I have the same issue. I am running Windows 11 (OS Build 25193.1000)
    Here is a Related Form
     
    Last edited: Sep 13, 2022
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    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.
     
  7. SuperAssets

    SuperAssets

    Joined:
    Apr 23, 2020
    Posts:
    2
    I am also facing same issue with Latest windows Insider! hope you get it resolved soon
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    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?
     
  9. RyanTheTechMan

    RyanTheTechMan

    Joined:
    Oct 1, 2019
    Posts:
    4
    Sorry for such a late reply. After updating Windows, it has fixed the issue.