Search Issue Tracker
Duplicate
Votes
1
Found in [Package]
1.1.11, 2.0.6, 3.3.0
Issue ID
1065215
Regression
No
[UWP][LWRP][IL2CPP][.NET 4.x] UWP build crashes on GetManagerFromContext when project is using Lightweight RP
How to reproduce:
1. Create a new Unity project using "Lightweight RP" template
2. Open Build Settings window and switch platform to UWP
3. In the Player Settings, make sure that Scripting Runtime Version is .NET 4.x
4. Also, make sure that Scripting Background is set to IL2CPP
5. Build the project
6. Open the Visual Studio solution file generated in the Build directory
7. Deploy the build on the Local Machine (tested with "Debug" and "x64" options selected)
Expected result: After deploying, the Build launches without a crash.
Actual result: Build crashes when being launched.
Reproducible with - 2018.1.0b13, 2018.1.9f2, 2018.2.6f1, 2018.3.0a10
Note: Lightweight RP was introduced in 2018.1 (therefore the issue was not tested on versions prior 2018.1).
The exception that is thrown in the VS when the project crashes:
-----
GetManagerFromContext: pointer to object of manager 'RenderSettings' is NULL (table index 24)
UnityEngine.RenderSettings:get_ambientProbe_Injected(SphericalHarmonicsL2&)
UnityEngine.RenderSettings:get_ambientProbe()
UnityEngine.Experimental.Rendering.LightweightPipeline.LightweightPipeline:SetupPerFrameShaderConstants()
UnityEngine.Experimental.Rendering.LightweightPipeline.LightweightPipeline:Render(ScriptableRenderContext, Camera[])
UnityEngine.Experimental.Rendering.RenderPipelineManager:DoRenderLoop_Internal(IRenderPipelineAsset, Camera[], IntPtr)
[C:\buildslave\unity\build\Runtime/BaseClasses/ManagerContext.cpp line 92]
(Filename: C:\buildslave\unity\build\Runtime/BaseClasses/ManagerContext.cpp Line: 92)
project_name.exe has triggered a breakpoint.
-----
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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
This is a duplicate of issue #1064175