Search Issue Tracker
Fixed
Fixed in 2023.2.11f1, 2023.3.0b7
Votes
0
Found in
2023.2.0b5
2023.3.0b1
Issue ID
UUM-46943
Regression
Yes
[MacOS] Console displays errors when "Tree"object is added in URP project
Steps to reproduce:
# Create a 3D (URP) project
# Make a right-click in the "Hierarchy" window
# 3D Object -> Tree
# Observe Console window
Expected Result: No errors in the console window.
Actual Result: The console displays errors (added screenshot in the "Attachments" section):
MissingReferenceException: The object of type 'UnityEngine.Camera' 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.
UnityEngine.Object+MarshalledUnityObject.TryThrowEditorNullExceptionObject (UnityEngine.Object unityObj, System.String parameterName) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:697)
UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/BindingsHelpers.cs:47)
UnityEngine.Camera.set_fieldOfView (System.Single value) (at <6c78bc6ba8d84acca4ebc3c7d83e51e2>:0)
UnityEditor.PreviewRenderUtility.Render (System.Boolean allowScriptableRenderPipeline, System.Boolean updatefov) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/PreviewRenderUtility.cs:541)
UnityEditor.MaterialEditor.DoRenderPreview (UnityEditor.PreviewRenderUtility previewRenderUtility, System.Boolean overridePreviewMesh) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/MaterialEditor.cs:2735)
UnityEditor.MaterialEditor.DefaultPreviewGUI (UnityEngine.Rect r, UnityEngine.GUIStyle background) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/MaterialEditor.cs:2859)
UnityEditor.MaterialEditor.OnPreviewGUI (UnityEngine.Rect r, UnityEngine.GUIStyle background) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/MaterialEditor.cs:2765)
UnityEditor.MaterialEditor.OnHeaderIconGUI (UnityEngine.Rect iconRect) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/MaterialEditor.cs:3091)
UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header, System.Single leftMargin) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Editor.cs:1151)
UnityEditor.MaterialEditor.OnHeaderGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/MaterialEditor.cs:958)
UnityEditor.Editor.DrawHeader () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Editor.cs:929)
UnityEditor.UIElements.EditorElement.DrawEditorLargeHeader (UnityEditor.Editor[] editors, System.Boolean& wasVisible) (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/Inspector/EditorElement.cs:561)
UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/Inspector/EditorElement.cs:517)
UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/Inspector/EditorElement.cs:454)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:413)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:698)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:563)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRenderer/UIRenderers.cs:134)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRenderChain.cs:502)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRepaintUpdater.cs:84)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/VisualTreeUpdater.cs:114)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:1188)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:1252)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:475)
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:225)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:74)
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:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:206)
Reproducible with: 2023.2.0b5, 2023.2.0b7.
Not Reproducible with:
2023.3.0a2 as at this time this stream has no this template (UUM-46823), 2023.2.0b4, 2023.1.8f1, 2022.3.6f1, 2021.3.29f1.
Confirmed OS: MacOS Ventura 13.5
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Packman: The same asset data is displayed differently in "Import" and "Remove" popups
- Reference to a deleted GameObject becomes "None" instead of "Missing" when the GameObject is restored with undo after entering and exiting Play Mode
- Size value in Particle System Curve's tab is highlighted with selection across all tab header
- Particle System Curve's Presets window has no visual indication of what preset is selected
- Blur shader doesn't work when the "Scene Color" Node is attached to the UI "Output" Node
Add comment