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
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
- Previously deleted “DefaultLookDevProfile“ is present when upgrading the Editor version
- [Ubuntu] UI text and buttons are missing spaces in Unity Version Control > New Workspace window
- "Inherit attribute is not supported" warning is shown but attributes are available in VFX Graph Output and Update blocks
This is a duplicate of issue #1064175