Search Issue Tracker
Fixed
Fixed in 6000.1.0b9, 6000.2.0a5
Votes
0
Found in
6000.1.0b4
Issue ID
UUM-95787
Regression
No
Really long build profile name causes errors in the Console or Fatal Error by quitting the workflow
*Steps to reproduce:*
# Create a new project
# Go to "File" ->"Build Profiles"
# Click the "Add Build profile" button
# Observe the "Name" field in the window
# Enter this name 4 times "LoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsum"
# Click "Cancel" in the "Moving file failed" popup
# Observe the Console
# Click "Force Quit"
# Observe the result
*Actual results:* The "Name" field with all the entered name goes out of the window. The "Moving file failed" popup becomes visible. If a user clicks "Cancel", he get an error in the Console, and if the user clicks "Force Quit" he gets "Fatal Error".
A recording is added below in the "Attachments" section.
*Expected results:* We should prevent these not nice workflows, which do not look good. Name length validation should be added and the entered build name should be validated because causing the mentioned issues.
*Reproducible with versions:* 6000.1.0a10, 6000.1.0b4, 6000.2.0a1
*Not reproducible with versions:* 6000.0.35f1, 6000.1.0a9
*Can’t test with versions:* -
*Tested on (OS):* Apple M1 Max - Sequoia 15.1.1
*Notes:*
Full Console error:
UnityException: Creating asset at path Assets/Settings/Build Profiles/LoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsumLoremIpsum.asset failed.
UnityEditor.AssetDatabase.CreateAsset (UnityEngine.Object asset, System.String path) (at <770f611c08e940cbbe7092adaf384c46>:0)
UnityEditor.Build.Profile.BuildProfile.CreateInstance (UnityEditor.GUID platformId, System.String assetPath, System.Int32 preconfiguredSettingsVariant, System.String[] packagesToAdd) (at /Users/bokken/build/output/unity/unity/Editor/Mono/BuildProfile/BuildProfileCreate.cs:73)
UnityEditor.Build.Profile.Handlers.BuildProfileDataSource.CreateNewAssetWithName (UnityEditor.GUID platformId, System.String platformDisplayName, System.String preconfiguredSettingsVariantName, System.Int32 preconfiguredSettingsVariant, System.String[] packagesToAdd) (at /Users/bokken/build/output/unity/unity/Modules/BuildProfileEditor/Handlers/BuildProfileDataSource.cs:116)
UnityEditor.Build.Profile.PlatformDiscoveryWindow.AddSingleBuildProfile (UnityEditor.Build.Profile.Elements.BuildProfileCard card, System.String preconfiguredSettingsVariantName, System.Int32 preconfiguredSettingsVariant, System.String[] packagesToAdd) (at /Users/bokken/build/output/unity/unity/Modules/BuildProfileEditor/PlatformDiscoveryWindow.cs:101)
UnityEditor.Build.Profile.PlatformDiscoveryWindow.AddSelectedBuildProfiles (UnityEditor.Build.Profile.Elements.BuildProfileCard card, System.String[] packagesToAdd) (at /Users/bokken/build/output/unity/unity/Modules/BuildProfileEditor/PlatformDiscoveryWindow.cs:95)
UnityEditor.Build.Profile.PlatformDiscoveryWindow.OnAddBuildProfileClicked (UnityEditor.Build.Profile.Elements.BuildProfileCard card) (at /Users/bokken/build/output/unity/unity/Modules/BuildProfileEditor/PlatformDiscoveryWindow.cs:412)
UnityEditor.Build.Profile.PlatformDiscoveryWindow.<CreateGUI>b__27_5 () (at /Users/bokken/build/output/unity/unity/Modules/BuildProfileEditor/PlatformDiscoveryWindow.cs:245)
UnityEngine.UIElements.Clickable.Invoke (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Clickable.cs:314)
UnityEngine.UIElements.Clickable.ProcessUpEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.Vector2 localPosition, System.Int32 pointerId) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Clickable.cs:411)
UnityEngine.UIElements.Clickable.OnPointerUp (UnityEngine.UIElements.PointerUpEvent evt) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Clickable.cs:278)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallback.cs:64)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallbackRegistry.cs:246)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.EventBase compatibilityEvt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:318)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:586)
UnityEngine.UIElements.PointerEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/PointerEvents.cs:1262)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:419)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:215)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:617)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:513)
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:232)
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
- The "Install Packages" button misses tooltips that would explain its behaviors
Resolution Note (fix version 6000.2.0a5):
Build profile name length is now limited to 200 symbols.
Resolution Note (fix version 6000.1.0b9):
Build profile name length is now limited to 200 symbols.