Search Issue Tracker
Fixed in 10.3.0
Votes
0
Found in [Package]
0.0.0-preview.26, 9.0.0-preview.55
Issue ID
1285104
Regression
No
[URP] NullReferenceException error is thrown on clicking "Open in LookDev window" button in the Inspector
Unable to open LookDev window along with NullReferenceException error is thrown on clicking "Open in LookDev window" button in the Inspector.
Steps to repro:
1. Create a new URP project.
2. Project Window > Click on "" > LookDev > Environment Library.
3. Select Environment Library > Inspector.
4. Click on "Open in LookDev window".
5. Repeat step 4.
Actual Result:
NullReferenceException error is thrown in the console.
Unable to open LookDev window.
Expected Result:
Lookdev window opens up without any error.
Reproducible in:
2020.2.0b7, 2020.1.10f1, 2020.1.0b6 with Package Version 10.0.0-preview.26, 9.0.0-preview.55, 8.2.0, 8.1.0.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stacktrace:
Exception: LookDev is not supported by this Scriptable Render Pipeline: UnityEngine.Rendering.Universal.UniversalRenderPipeline
UnityEditor.Rendering.LookDev.LookDev.WaitingSRPReloadForConfiguringRenderer (System.Int32 maxAttempt, System.Boolean reloadWithTemporaryID, System.Int32 attemptNumber) (at library/packagecache/com.unity.render-pipelines.core@8.1.0/editor/lookdev/lookdev.cs:146)
UnityEditor.Rendering.LookDev.LookDev<>c__DisplayClass31_0.<WaitingSRPReloadForConfiguringRenderer>b__0 () (at library/packagecache/com.unity.render-pipelines.core@8.1.0/editor/lookdev/lookdev.cs:141)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at <ee59ffdb2ee84322996931dbffc3a33c>:0)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.LookDev.EnvironmentLibraryEditor+<>c__DisplayClass1_0.<CreateInspectorGUI>b__0 () (at library/packagecache/com.unity.render-pipelines.core@10.0.0-preview.30/editor/lookdev/environmentlibrary.cs:127)
UnityEngine.UIElements.Clickable.Invoke (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.Clickable.ProcessUpEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.Vector2 localPosition, System.Int32 pointerId) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.Clickable.OnMouseUp (UnityEngine.UIElements.MouseUpEvent evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <931b26b61f444e3485195721b0227b20>: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
- TableEntryAdded event is not triggered when a new entry is added in the Localization Tables window
- The macOS Player is built to a different folder than the selected one when the Player is built on Windows
- Editor memory leak in VisualElement when recompiling in a blank URP project
- Project Auditor suggests to update package to a lower version than installed when the recommended package version is not the latest version
- Low performance when multiple meshes using BlendShape are rendered on screen
Resolution Note (fix version 10.3.0):
Fixed in Package Version 10.3.0.