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
- Crash on EnsureUniqueSiblingName when calling GameObjectUtility.EnsureUniqueNameForSibling() with a null argument
- Changes are not applied when selecting Platform settings for Plugins
- Particle System only collides with one Terrain Collider at a time when Collision Type is set to 'World'
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
This is a duplicate of issue #1064175