Search Issue Tracker

Fixed

Votes

0

Found in

2023.3.0b3

Issue ID

UUM-60686

Regression

Yes

"ArgumentException: HostPlatform architecture detection failure []" errors becomes displayed in the Console when user selects Win build target on Mac

--

-

How to reproduce:
# Create a new project
# Go to "File" ->"Build Profiles". As I work on Mac, I select Windows in the Platforms section.
# If it was not added, you should do it through the "Install with Unity Hub "
# Restart the editor
# Go to "File" ->"Build Profiles", and in "Build Profiles" section click "Add Build Profile"
# In the next window select Windows and click "Add Build Profile"
# When it becomes added, just select it and observe the Console view

 

Actual result: The console displays errors. An attachment is added below in the "Attachments" section.
Expected result: No errors.

Reproducible with:  2023.3.0b1, 2023.3.0b3
Not reproducible with: 2023.3.0a19.

 

Error:

ArgumentException: HostPlatform architecture detection failure []
Utility.ArchStringToArchitecture (System.String osArchString) (at <0d224d101e2e49a4adbd0a01f322fe12>:0)
Utility.GetHostOSArchitecture () (at <0d224d101e2e49a4adbd0a01f322fe12>:0)
UnityEditor.WindowsStandalone.WindowsBuildProfileExtension+<>c_{_}DisplayClass27_0.<CreatePlatformSettingsGUI>b{_}_0 () (at <0d224d101e2e49a4adbd0a01f322fe12>: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 /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:422)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:711)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:576)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRenderer/UIRenderers.cs:134)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRenderChain.cs:535)
UnityEngine.UIElements.UIRRepaintUpdater.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRepaintUpdater.cs:81)
UnityEngine.UIElements.BaseVisualElementPanel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:787)
UnityEngine.UIElements.Panel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:1327)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:482)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:230)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:76)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:30)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.