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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
This is a duplicate of issue #1064175