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
- 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
This is a duplicate of issue #1064175