Search Issue Tracker
Fixed
Fixed in 6000.5.0a6
Votes
0
Found in
6000.5.0a5
Issue ID
UUM-131986
Regression
No
Scan button is not disabled in Play Mode and NullReferenceExceptions are logged when Scanning in the Render Pipeline Converter while in Play Mode
Steps to reproduce:
- Create a new URP Project
- Open the RPC (Window > Rendering > Render Pipeline Converter)
- Enable all Converter checkboxes
- Enter Play Mode
- Click the "Scan" button in the RPC Window and observe the Console
- Close the RPC Window and Exit Play Mode
- Observe the Console again
Actual results: Scan button is not disabled, an error is logged when scanning, and Converter initialization hangs.
Expected results: Scan button is disabled in Play Mode
Reproducible with versions: 6000.4.0a3, 6000.4.0b4
Not reproducible with versions: 6000.5.0a4
Fixed in: 6000.5.0a1
Could not test with: 6000.0.65f1, 6000.2.15f1, 6000.3.4f1, 6000.4.0a2 (Scan button is not implemented)
Tested on (OS): Windows 11
Notes:
1. The errors start occurring from 6000.4.0b1 and do not reproduce with 6000.4.0a5
2. Error logged when clicking the Scan button:
"NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Search.SearchDatabase.IncrementLoadBytes (UnityEditor.Search.SearchTask`1[T] loadTask, System.Collections.Generic.HashSet`1[T] deletedAssets) (at <4739927896a24b09bce429c4f942903c>:0)
UnityEditor.Search.SearchDatabase+<>c_{_}DisplayClass107_0.<IncrementalLoad>b{_}1 () (at <4739927896a24b09bce429c4f942903c>:0)
UnityEditor.Search.SearchTask`1+<>c{_}DisplayClass77_0[T].<DispatchWaitForThread>b{_}_0 () (at <4739927896a24b09bce429c4f942903c>:0)
UnityEditor.Search.Dispatcher+Task.Invoke () (at <4739927896a24b09bce429c4f942903c>:0)
UnityEditor.Search.Dispatcher.Process (UnityEditor.Search.Dispatcher+Task& task) (at <4739927896a24b09bce429c4f942903c>:0)
UnityEditor.Search.Dispatcher.Update () (at <4739927896a24b09bce429c4f942903c>:0)
UnityEditor.EditorApplication.Internal_InvokeTickEvents () (at <c44e7a60e9ad492b88da99c20b4d1cdc>:0)"
3. Error logged when exiting Play Mode:
"MissingReferenceException: The object of type 'UnityEditor.Rendering.Converter.RenderPipelineConvertersEditor' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object. Parameter name: target
UnityEngine.Object+MarshalledUnityObject.TryThrowEditorNullExceptionObject (UnityEngine.Object unityObj, System.String parameterName) (at <7e11edc47b2d475c8077267b2d336806>:0)"
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
- Unity Cloud icon does not appear next to project and does not connect correctly when the project is created with Cloud but closed right after creation
- ScrollerSlider in the Scroller Control is still using UXMLTraits
- Crash on ExtractHandles when shutting down the Editor in a specific scene while Burst jobs are in progress
- Unity Hub closes with no "Project is currently open" window when selecting an already open project from the Projects list
- The Hub freezes indefinitely when copy/pasting a lot of characters in the “Set project display name” Hub window since it has no character limit
Resolution Note:
Fixed in 6000.5.0a6
Resolution Note (fix version 6000.5.0a6):
Fixed in 6000.5.0a6