Search Issue Tracker

Won't Fix

Votes

0

Found in

2021.3.13f1

2022.1.21f1

2022.2.0b14

2023.1.0a17

Issue ID

UUM-18886

Regression

No

Editor crashes when attempting to bake Unity Terrain Sample project with GPULM

-

Steps to reproduce:

  1. Download and open Unity - Terrain project
  2. Open the TerrainDemoScene scene file
  3. In the Lighting window, make sure that the Lightmapper field is set to Progressive GPU
  4. Click on Generate Lighting

Expected result:

  • Bake finishes successfully without crashing the editor

Actual result:

  • Editor crashes during the bake preparation step (see [^Editor.log])

Notes:

  • Affects Unity 2021.3.11f1, 2022.1.20f1, 2022.2.0b10, 2023.1.0a19
  • Only affects the GPU lightmapper; CPU lightmapper is unaffected
  • Crash reproduced on macOS 10.15.7; does not reproduce on Windows 10

Stack trace:

 
{code:java}
Thread 0x700009772000 may have been prematurely finalized
#0  0x007fff6eb3232a in __pthread_kill
Thread 0x700009772000 may have been prematurely finalized
#1  0x007fff6eab9808 in abort
Thread 0x700009772000 may have been prematurely finalized
#2  0x007fff6bd16458 in abort_message
Thread 0x700009772000 may have been prematurely finalized
#3  0x007fff6bd078bf in demangling_unexpected_handler()
Thread 0x700009772000 may have been prematurely finalized
#4  0x007fff6d8445b1 in _objc_terminate()
Thread 0x700009772000 may have been prematurely finalized
#5  0x007fff6bd15887 in std::__terminate(void ()())
Thread 0x700009772000 may have been prematurely finalized
#6  0x007fff6bd181a2 in __cxa_get_exception_ptr
Thread 0x700009772000 may have been prematurely finalized
#7  0x007fff6bd18169 in __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception
)
Thread 0x700009772000 may have been prematurely finalized
#8  0x0000010ffcfa2c in Calc::DeviceClw::CreateBuffer(unsigned long, unsigned int)
Thread 0x700009772000 may have been prematurely finalized
#9  0x0000010ffbfce0 in RadeonRays::IntersectorLDS::Process(RadeonRays::World const&)
Thread 0x700009772000 may have been prematurely finalized
#10 0x0000010ffb55d1 in RadeonRays::CalcIntersectionDevice::Preprocess(RadeonRays::World const&)
Thread 0x700009772000 may have been prematurely finalized
#11 0x0000010ffb447d in RadeonRays::IntersectionApiImpl::Commit()
Thread 0x700009772000 may have been prematurely finalized
#12 0x00000106897340 in RadeonRaysMeshManager::StoreToGPU(OpenCLState&, OpenCLCommonBuffers const&, RadeonRaysContextManager)
Thread 0x700009772000 may have been prematurely finalized
#13 0x0000010689597e in RadeonRaysContextManager::SetSceneStateOnTechnique(BakeLightProbesTechnique
)
Thread 0x700009772000 may have been prematurely finalized
#14 0x00000106895567 in RadeonRaysBakeLightProbesTechnique::AttachHeavyDataPointers(int, dynamic_array<Vector4f, 0ul> const&, RefcountedDataHandle<PVRLightProbeBakeHeavyData> const&, dynamic_array<ProbeVisibilityLightData, 0ul> const&)
Thread 0x700009772000 may have been prematurely finalized
#15 0x0000010681f210 in BakeJobInitializeLightProbeData::Execute(bool)
Thread 0x700009772000 may have been prematurely finalized
#16 0x000001067d6e60 in BakeContextManager::UpdateFunction()
Thread 0x700009772000 may have been prematurely finalized
#17 0x000001067d5fa6 in BakeContextManager::DispatchUpdateFunction(void
)
Thread 0x700009772000 may have been prematurely finalized
#18 0x00000103fde691 in Thread::RunThreadWrapper(void*)
Thread 0x700009772000 may have been prematurely finalized
#19 0x007fff6ebef109 in _pthread_start
Thread 0x700009772000 may have been prematurely finalized
#20 0x007fff6ebeab8b in thread_start {code}
 

 

  1. Resolution Note:

    This issue no longer reproduces in:
    - 2021.3.16f1
    - 2022.1.24f1
    - 2022.2.2f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.