Search Issue Tracker

Active

Under Consideration for 6000.4.X

Votes

0

Found in

6000.4.0b4

Issue ID

UUM-131986

Regression

Yes

Scan button is not disabled in Play Mode and NullReferenceExceptions are logged when Scanning in the Render Pipeline Converter while in Play Mode

Graphics Tools

-

Steps to reproduce:

  1. Create a new URP Project
  2. Open the RPC (Window > Rendering > Render Pipeline Converter)
  3. Enable all Converter checkboxes
  4. Enter Play Mode
  5. Click the "Scan" button in the RPC Window and observe the Console
  6. Close the RPC Window and Exit Play Mode
  7. Observe the Console again

Actual results: Error is logged when Scanning: "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)"

Errors 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)"

Converter initialization hangs

Expected results: No Errors are logged when Scanning the Project for Assets to convert in Play Mode, RPC is disabled in Play Mode

Reproducible with versions: 6000.4.0b1, 6000.4.0b4

Not reproducible with versions: 6000.0.65f1, 6000.2.15f1, 6000.3.4f1, 6000.4.0a5

Can't test with versions: 6000.5.0a4 (Scan button is disabled in Play Mode)

Tested on (OS): Windows 11

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.