Unity Issue Tracker - SkyManager Graphics error when building Addressables in nographics mode
Closed
UUM-45843
SkyManager Graphics error when building Addressables in nographics mode
Unity: Shadows/Lights
macOS
Won't Fix
2021.3.X
The SkyManager needs a graphics device to produce the ambient probe. To fix this run without the -nographics argument or pregenerate lighting for the scenes using the button in the Lighting Window. The SkyManager is removed in 2023.X.
How to reproduce:
1. Download and unzip the attached project "Minimal_repro.zip"
2. Build addressables in nographics mode by running the following command:
<PATH_TO_UNITY>/Unity.app/Contents/MacOS/Unity -projectPath <PATH_TO_PROJECT> -executeMethod Com.King.GradleAddressablesBuildHelper.Build -buildTarget iOS -BuildConfig=<PATH_TO_PROJECT>/build-config.json -environment DEV -batchmode -nographics -quit -logFile <PATH_TO_PROJECT>/addressables_ios_minimal.log
3. Once the process is done running, check the addressables_ios_minimal.log
Expected results: No errors are logged during the addressables build.
Actual results: Many instances of the error message listed above ("GfxDevice renderer is null...") are logged (over 200).
Reproduced with: 2021.3.24f1 (cf10dcf7010d)
Reproduced on: MacOS 13.4 (Intel-based)
Not reproduced on: No other environments tested
Prioritise and Follow this issue
Have a workaround or additional info about this issue?