Search Issue Tracker
Fixed
Fixed in 6000.0.37f1, 6000.1.0b2, 7000.0.0a17
Votes
0
Found in
6000.0.30f1
6000.1.0a7
7000.0.0a1
Issue ID
UUM-90236
Regression
No
"System.UnauthorizedAccessException" error appears when generating lighting due to "CellProbeOcclusionData" not being checked out in Perforce before writing to it
Reproduction steps:
1. Download, extract, and add the attached “repro_IN-89061.zip“ project to a Perforce workspace
2. Open the “repro_IN-89061“ project
3. Open the “Assets/OutdoorsScene.unity“ Scene
4. Connect to the Perforce server (“Edit → Project Settings…“)
5. Press the “Generate Lighting“ in the “Lighting“ tab (“Window → Rendering → Lighting“)
6. Observe the Console
Expected result: No errors appear
Actual result: “System.UnauthorizedAccessException: Access to the path "C:\<…>\OutdoorsScene Baking Set-Default.CellProbeOcclusionData.bytes" is denied.“ error appears
Reproducible with: 2021.3.46f1, 2022.3.54f1, 6000.0.30f1, 6000.1.0a7
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested
Notes:
* If the error does not reproduce after pressing the “Generate Lighting“ button, try pressing it again
* According to the reporter, the reason for the error is that the “outputPaths” in “AdaptiveProbeVolumes.WriteBakingCells” only contains 5 of the 6 asset paths that will be written to disk, and “CellProbeOcclusionData” is missing, so it’s not checked out in Perforce ([https://github.com/Unity-Technologies/Graphics/blob/ba62a59864270b82f88d9396878da2926f69b353/Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeGIBaking.Serialization.cs#L1034|https://github.com/Unity-Technologies/Graphics/blob/ba62a59864270b82f88d9396878da2926f69b353/Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeGIBaking.Serialization.cs#L1034|smart-link])
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
Add comment