Search Issue Tracker
Fixed
Votes
0
Found in
6000.0.56f1
6000.1.16f1
6000.2.2f1
6000.3.0a5
Issue ID
UUM-114853
Regression
No
Putting a long Snapshot name throws “PathTooLongException” error
Steps to reproduce:
1. Create new Unity project
2. Install Memory profiler package
3. Open Memory profiler window
4. Capture a new Snapshot
5. Copy current name and paste it in the same name field as much as possible
6. Press Enter
7. Observe the name field and Console window
Actual results: Entering a long name in a field throws error in the Console
Expected results: Name field should minimize the maximum character limit
Reproducible with versions: 6000.0.56f1, 6000.1.16f1, 6000.2.2f1, 6000.3.0a5
Tested on (OS): macOS Silicon, Sequoia 15.6 (M1)
Error:
{code:java}
PathTooLongException: The specified file name or path is too long, or a component of the specified path is too long.
System.IO.FileSystem.LinkOrCopyFile (System.String sourceFullPath, System.String destFullPath) (at <fd98429b8c6c4f82ba907b21c76e6375>:0)
System.IO.FileSystem.MoveFile (System.String sourceFullPath, System.String destFullPath) (at <fd98429b8c6c4f82ba907b21c76e6375>:0)
System.IO.File.Move (System.String sourceFileName, System.String destFileName) (at <fd98429b8c6c4f82ba907b21c76e6375>:0)
Unity.MemoryProfiler.Editor.SnapshotDataService.Rename (System.String sourceFilePath, System.String targetFileName) (at ./Library/PackageCache/com.unity.memoryprofiler@8c7176da5e5a/Editor/UI/SnapshotDataService.cs:290)
Unity.MemoryProfiler.Editor.UI.SnapshotFileItemViewController.TryRename (System.String newSnapshotName) (at ./Library/PackageCache/com.unity.memoryprofiler@8c7176da5e5a/Editor/UI/Workbench/SnapshotFilesListItem/SnapshotFileTreeItemViewController.cs:336)
Unity.MemoryProfiler.Editor.UI.SnapshotFileItemViewController.<RefreshView>b__28_6 (UnityEngine.UIElements.FocusOutEvent evt) (at ./Library/PackageCache/com.unity.memoryprofiler@8c7176da5e5a/Editor/UI/Workbench/SnapshotFilesListItem/SnapshotFileTreeItemViewController.cs:161)
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.HandleEvent_BubbleUpCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement element) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:384)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPath (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:191)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:69)
UnityEngine.UIElements.EventDispatchUtilities.DefaultDispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:537)
UnityEngine.UIElements.EventBase.Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventBase.cs:115)
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.ProcessEventQueue () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:365)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:318)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:79)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:433)
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:642)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:543)
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:243)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:78)
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:32)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:224)
{code}
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Package signature validation unexpectedly return an invalid signature status if the validation check is done after the code signing certificate validaty range has passed
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
Resolution Note:
Fixed by another internal issue: UUM-114431: Changing Capture name has no character limit