How to reproduce:
1. Open the attached project "CrashSecondScreen.zip"
2. Build the project for UWP
3. Open the built Solution
4. Start Debugging with Debug x64 configuration
5. Click "Close" in the Debug window
Reproducible with: 2021.3.30f1, 2022.3.10f1, 2023.1.14f1, 2023.2.0b10, 2023.3.0a5
Reproducible on: Windows 10 22H2
Not reproducible on: No other environment tested
Stacktrace:
UnityPlayer.dll!Gradient::EvaluateHDR<0>(struct math::_float4 const &)
UnityPlayer.dll!Gradient::Evaluate<0>(float)
UnityPlayer.dll!Build3DLine(unsigned char *,struct LineParameters const &,struct math::float4x4 const &,struct math::float4x4 const &,struct math::float3_storage const *,float const *,unsigned __int64,bool,float)
UnityPlayer.dll!LineRenderer::RenderGeometryJob(struct SharedGeometryJobData *,unsigned int)
UnityPlayer.dll!JobQueue::ExecuteJobFunc<1>(struct JobInfo *,class JobGroup *,void )
UnityPlayer.dll!JobQueue::Exec(struct JobInfo *,__int64,int,bool)
UnityPlayer.dll!JobQueue::Steal(class JobGroup *,struct JobInfo *,__int64,int,bool,bool)
UnityPlayer.dll!JobQueue::ExecuteJobFromQueue(bool,bool &)
UnityPlayer.dll!JobQueue::ProcessJobs(struct JobQueue::ThreadInfo *,void *)
UnityPlayer.dll!JobQueue::WorkLoop(void *)
UnityPlayer.dll!Thread::RunThreadWrapper(void *)
kernel32.dll!00007ffe18597614()
ntdll.dll!00007ffe187026b1()