Search Issue Tracker
Fixed
Fixed in 6000.0.46f1, 6000.1.0b14, 6000.2.0a9
Votes
0
Found in
6000.0.44f1
6000.1.0b12
6000.2.0a7
Issue ID
UUM-101323
Regression
No
[APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
How to reproduce:
1. Open the attached “IN-95315“ project
2. Open the “SampleScene“
3. In the Hierarchy, select the “Adaptive Probe Volume 1” GameObject
4. In the Inspector, press the “Bake Probe Volumes” button
5. Observe the Console tab
Expected results: No errors are thrown in the Console, and the baking process completes successfully
Actual results: The baking process fails, and a NullReferenceException is displayed in the Console
Reproducible on: 2023.3.0b1, 6000.0.44f1, 6000.1.0b12, 6000.2.0a7
Could not test with: 2021.3.50f1, 2022.3.60f1 (No APV package)
Note:
The first line of the error reads:
”NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.GIContributors.FilterLayerMaskOnly (UnityEngine.LayerMask layerMask) (at ./Library/PackageCache/com.unity.render-pipelines.core@405083404c88/Runtime/Lighting/ProbeVolume/ProbeVolumeGIContributor.cs:393)”
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
- Unity Perforce Integration: VCS Connection Active State Fails via CLI with Valid Inputs
- Joint Gizmos for anchor and connectedAnchor do not respect their defined bodies when Swap Bodies is enabled
- Project Settings window opens up with a blank details pane when the "Configure" button is clicked in the Package Manager after installing the Cloud Diagnostics package
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
Resolution Note (fix version 6000.2.0a9):
We do some optimizations when processing scenes with more than one APVs but we missed the case when terrain trees have null mesh renderers.
Resolution Note (fix version 6000.1.0b14):
We do some optimizations when processing scenes with more than one APVs but we missed the case when terrain trees have null mesh renderers.
Resolution Note (fix version 6000.0.46f1):
We do some optimizations when processing scenes with more than one APVs but we missed the case when terrain trees have null mesh renderers.