Search Issue Tracker
Fixed
Fixed in 2021.3.22f1, 2022.2.5f1, 2023.1.0a25
Votes
0
Found in
2021.3.12f1
2022.1.20f1
2022.2.0b11
2023.1.0a15
Issue ID
UUM-16874
Regression
Yes
Lightmapper corrupts GI cache in the editor when the target platform is UWP
How to reproduce:
1. Delete C:\Users\[USER]\AppData\LocalLow\Unity\Caches\GiCache
2. Extract the attached "ReproCase.zip" project to C:\Test
3. Open Windows CMD
4. Run "C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\Unity.exe” -batchmode -nographics -executeMethod ReproCase.Build.ConfigurePlayerUWP -projectPath C:\Test\UnityProject -buildLocation C:\Test\UnityProject_BUILD
5. Open the project through Unity HUB
Expected results: The Sphere is rendered correctly
Actual results: The Spere is white
Reproducible with: 2021.2.0a19, 2021.3.12f1, 2022.1.20f1, 2022.2.0b11, 2023.1.0a15
Not reproducible with: 2020.3.40f1, 2021.2.a18
Reproducible on: Windows 10
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
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
- Shortcut Manager shows empty conflict filter when resolving runtime conflicts involving different contexts
Resolution Note (fix version 2023.1.0a25):
Problem was coming from the -nographics commandline argument. As part of the player build, the editor tries to generate the sky ambient probe and reflection probe. That computation requires a gfx device to be loaded otherwise the probes were simply filled with uninitialized data.
Solution is to either run the player build without -nographics or to generate lighting in the editor for each scene included in the build (no need to add lights or generate lightmaps, simply hitting generate lighting will bake the sky probes).
Also the application logic was modified to not attempt to render the probes when -nographics is set.