Search Issue Tracker

Fixed

Fixed in 2022.3.11f1

Votes

24

Found in

2022.2.21f1

2022.3.6f1

Issue ID

UUM-44061

Regression

Yes

ArgumentException errors are thrown when selecting a Lens Flare (SRP) asset

-

How to reproduce:
1. Open the “IN-48701_repro“ project
2. Select the “New Lens Flare (SRP)“ asset
3. Observe the console

Expected result: No errors are seen in the Console
Actual result: Errors are seen in the Console

Reproducible with: 2022.3.5f1, 2022.3.6f1
Not reproducible with: 2021.3.29f1, 2022.3.4f1, 2023.1.6f1, 2023.2.0b2

Reproducible on: Windows 10

Error:
ArgumentException: Incorrect number of arguments supplied for call to method 'UnityEditor.GenericMenu FillPropertyContextMenu(UnityEditor.SerializedProperty, UnityEditor.SerializedProperty, UnityEditor.GenericMenu, UnityEngine.UIElements.VisualElement)'
Parameter name: method
System.Dynamic.Utils.ExpressionUtils.ValidateArgumentCount (System.Reflection.MethodBase method, System.Linq.Expressions.ExpressionType nodeKind, System.Int32 count, System.Reflection.ParameterInfo[] pis) (at <de4a1a1490a74771a34fee0d1d586658>:0)
System.Linq.Expressions.Expression.ValidateArgumentCount (System.Reflection.MethodBase method, System.Linq.Expressions.ExpressionType nodeKind, System.Int32 count, System.Reflection.ParameterInfo[] pis) (at <de4a1a1490a74771a34fee0d1d586658>:0)
System.Linq.Expressions.Expression.Call (System.Linq.Expressions.Expression instance, System.Reflection.MethodInfo method, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2) (at <de4a1a1490a74771a34fee0d1d586658>:0)
UnityEditor.Rendering.LensFlareDataSRPEditor..cctor () (at ./Library/PackageCache/com.unity.render-pipelines.core@14.0.8/Editor/PostProcessing/LensFlareDataSRPEditor.cs:114)
Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.Rendering.LensFlareDataSRPEditor' threw an exception.
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Comments (4)

  1. Blepius

    Aug 07, 2023 01:48

    Lens Flare (SPR) assets are unusable for me as well in a fresh 2022.3.6f1 project, made from the URP template.

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.