Search Issue Tracker
Fixed
Fixed in 2023.1.X, 2023.1.0a1
Votes
0
Found in
2023.1.0a26
Issue ID
UUM-22497
Regression
Yes
[HDRP] APV invalidation volumes Update results in an error
Is there any automation for the Adjustment volumes? Is it possible to automate? Tested on srp/devs HDRP branch + 2023.1.a26 editor
Repro
1) Open the scene called apv (optional, can repro in any apv project)
2) Select the last gameobject in the hierarchy (invalidation volume)
3) Click update Update probe validity
The error is different depending if probes are baked or not. Here is the baked variant:
ArgumentOutOfRangeException: sub array range 0-32767 is outside the range of the native array 0--1
Parameter name: length
Unity.Collections.NativeArray`1[T].CheckGetSubArrayArguments (System.Int32 start, System.Int32 length) (at /Users/bokken/build/output/unity/unity/Runtime/Export/NativeArray/NativeArray.cs:704)
Unity.Collections.NativeArray`1[T].GetSubArray (System.Int32 start, System.Int32 length) (at /Users/bokken/build/output/unity/unity/Runtime/Export/NativeArray/NativeArray.cs:715)
UnityEngine.Rendering.ProbeGIBaking.GetCellChunkData (UnityEngine.Rendering.ProbeReferenceVolume+CellData cellData, System.Int32 chunkIndex) (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeGIBaking.cs:660)
UnityEngine.Rendering.ProbeGIBaking.ConvertCellToBakingCell (UnityEngine.Rendering.ProbeReferenceVolume+CellDesc cellDesc, UnityEngine.Rendering.ProbeReferenceVolume+CellData cellData) (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeGIBaking.cs:1443)
UnityEngine.Rendering.ProbeGIBaking.RecomputeValidityAfterBake () (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeGIBaking.Invalidation.cs:227)
UnityEditor.Rendering.ProbeTouchupVolumeEditor+ProbeTouchupVolumeUI.DrawTouchupContent (UnityEditor.Rendering.SerializedProbeTouchupVolume serialized, UnityEditor.Editor owner) (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeTouchupVolumeEditor.cs:148)
UnityEditor.Rendering.ProbeTouchupVolumeEditor+ProbeTouchupVolumeUI+<>c.<.cctor>b__12_1 (UnityEditor.Rendering.SerializedProbeTouchupVolume serialized, UnityEditor.Editor owner) (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeTouchupVolumeEditor.cs:179)
UnityEditor.Rendering.CoreEditorDrawer`1+GroupDrawerInternal[TData].UnityEditor.Rendering.CoreEditorDrawer<TData>.IDrawer.Draw (TData data, UnityEditor.Editor owner) (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/CoreEditorDrawers.cs:396)
UnityEditor.Rendering.CoreEditorDrawer`1+FoldoutGroupDrawerInternal`1[TData,TEnum].UnityEditor.Rendering.CoreEditorDrawer<TData>.IDrawer.Draw (TData data, UnityEditor.Editor owner) (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/CoreEditorDrawers.cs:492)
UnityEditor.Rendering.CoreEditorDrawersExtensions.Draw[TData] (System.Collections.Generic.IEnumerable`1[T] drawers, TData data, UnityEditor.Editor owner) (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/CoreEditorDrawers.cs:992)
UnityEditor.Rendering.CoreEditorDrawer`1+GroupDrawerInternal[TData].UnityEditor.Rendering.CoreEditorDrawer<TData>.IDrawer.Draw (TData data, UnityEditor.Editor owner) (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/CoreEditorDrawers.cs:396)
UnityEditor.Rendering.ProbeTouchupVolumeEditor.OnInspectorGUI () (at /Users/motiejus.viltrakis/Documents/Git/unity/Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeTouchupVolumeEditor.cs:228)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass71_0.<CreateIMGUIInspectorFromEditor>b__0 () (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/Inspector/InspectorElement.cs:688)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:196)
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 2023.1):
This PR has landed in trunk - Unity 2023.2.0a2