Search Issue Tracker
Fixed in 13.0.0
Fixed in 12.x.x
Votes
19
Found in [Package]
12.0.0
Issue ID
1360871
Regression
Yes
NullReferenceException is thrown in Universal.ShadowCasterGroup2DManager when entering/exiting Play Mode
How to reproduce:
1. Open a new URP project
2. Enter Play Mode
3. Exit Play Mode
Expected result: No errors are thrown in the Console
Actual result: "UnityEngine.Rendering.Universal.ShadowCasterGroup2DManager.OnPlayModeStateChanged" error is thrown in the Console
Reproducible with: 12.0.0 (2021.2.0b9, 2022.1.0a6)
Not reproducible with: 7.7.1 (2019.4.30f1), 10.6.0 (2021.1.17f1), 11.0.0 (2021.1.19f1), 12.0.0 (2021.2.0b8, 2022.1.0a5)
Comments (5)
-
Hafazeh
Aug 13, 2022 12:07
how am i getting this in 2021.3.8f.1??? is there a fix for LTS?
-
kit_qt
Sep 20, 2021 09:28
Ye Vitya krosavcheg, bolshoi molodec
-
kamil-dawidow
Sep 20, 2021 06:48
When is a fix coming? NRE thrown on every play mode exit is really annoying and might hide other bugs.
-
CyRaid
Sep 16, 2021 04:53
Oops, someone forgot to do a null reference check! Quite an annoying error though.
-
oobartez
Aug 30, 2021 15:40
This bug makes it impossible to upgrade to 2021.2.0b9.
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 GfxDeviceD3D12::AllocBottomLevelAccelerationStructure when using Raytracing
- The search icon in the "Searches" sections is blurry and inconsistent
- "RenderingCommandBuffer" error is thrown when switching to the tvOS platform
- Left side cog menu button is obstructed by the maximum Y value of the graph when editing a curve in the Particle System Curves
- "Property exceeds previous array size (64 vs 32)." warnings are thrown when switching from tvOS platform to a Standalone platform after restarting the Editor
Resolution Note (fix version 13.0.0):
A fix for this issue is available on Unity 2022.1.0a12 and above