Search Issue Tracker
Not Reproducible
Votes
0
Found in [Package]
7.1.7
Issue ID
1234330
Regression
No
[SRP] Crash in CullCastersCommon after assigning a script with specific shadow matrix to the camera
Steps to repro:
1. Open the attached project and 'SampleScene' scene;
2. Make sure that you have an active Game view instance in the Editor;
3. Drag and drop the ShadowCameraMatrix.cs script from the Hierarchy to the Directional light gameobject.
Actual result:
Editor crashes. Last calls from the stacktrace:
#1 0x00000105c67d97 in CullShadowCastersDetailDirectionalThreaded(ShadowCullingJobData&, BlockRange&, int)
#2 0x00000105c67874 in CullDirectionalShadowCastersJob(ShadowCullingJobData, unsigned int)
#3 0x00000106279486 in JobQueue::Exec(JobInfo, long long, int, bool)
#4 0x0000010627b247 in JobQueue::WaitForJobGroupID(JobGroupID, JobQueue::JobQueueWorkStealMode)
#5 0x0000010626b618 in CompleteFenceInternal(JobFence&, WorkStealMode)
#6 0x000001062212f2 in GetShadowCasterBounds(ScriptableCullResults&, int, AABB&)
#7 0x00000106def357 in CullingResults_CUSTOM_GetShadowCasterBounds(void*, int, AABB&)
See attached video.
Expected result:
Editor doesn't crash. Error about the invalid input matrix is shown.
Notes:
- Reproducible in 2020.2.0a5, 2020.1.0b5, 2019.3.9f1, 2019.2.21f1, 2018.4.20f1;
- Reproducible in HDRP and URP;
- Reproducible on Windows and macOS;
- If the issue doesn't happen right away after following the steps, enable the active Game view and enter Play mode.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment