Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2021.1.X
Votes
0
Found in
2021.1
2021.2
2021.2.0a7
Issue ID
1317448
Regression
No
[Search] Saving Search Query with system reserved keywords throws UnityException
In the Search window, On searching for any asset and then saving the Search Query with system reserved keywords throws UnityException. Refer to the attached video and stack trace.
Steps to repro:
1. Create a new project
2. Window > Search
3. Type any required asset name in the Search.
4. Now Save Search Query with system reserved keywords like 'dot'(.)
Actual Result:
Saving Search Query with system reserved keywords throws UnityException
Expected Result:
No error should be in the console.
Occurring on:
2021.2.0a7, 2021.2.0a1, 2021.1.0b9, 2021.1.0a1
Note:
Quick Search is a Built-In Package in the Unity 2021.1.0a1
Environment:
Occurring on Windows 10 & macOS 10.15.
Stack Trace:
'Assets/..asset' is not a valid asset file name.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
UnityException: Creating asset at path Assets/..asset failed.
UnityEditor.Search.SearchQuery.SaveQuery (UnityEditor.Search.SearchQuery asset, UnityEditor.Search.SearchContext context, System.String folder, System.String name) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/SearchQuery.cs:115)
UnityEditor.Search.QuickSearch.CreateSearchQueryFromContext () (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/UI/QuickSearch.cs:1697)
UnityEditor.Search.QuickSearch.DrawToolbarButtons () (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/UI/QuickSearch.cs:1620)
UnityEditor.Search.QuickSearch.DrawToolbar (UnityEngine.Event evt) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/UI/QuickSearch.cs:1535)
UnityEditor.Search.QuickSearch.OnGUI () (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/UI/QuickSearch.cs:679)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Visual Effect Material causes Scene view to update continuously when both Scene and Game views are open, despite "Always Refresh" being disabled
- "EndLayoutGroup" error is thrown when turning on/off UI Toolkit Live Reload in the Inspector with GameObject selected
- Crash on __pthread_kill when opening a specific object
- UI Toolkit Debugger "Pick Element" selection works only after clicking it for the second time
- "InvalidOperationException: Trying to use a texture (_MainLightShadowmapTexture)..." and other Render Graph errors when MSAA is enabled with Render Graph and Game view tab is active
Add comment