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)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.