U6 22f1 - Lightmapper is a mess: random crashes and freezes

Over the course of last two hours - Editor hanged up 14 times during light maps generation.

Its totally random.

It always happens at post-processing 2/3 stage where all CPU/GPU activity dies and remaining time clock begins to increase.

image

When it works, on my machine, with the settings below, for test scene it usually concludes within 15 mins for everything.

If I cancel it, it will hang up on GI.Tick, which never ends.

It’s absolutely unacceptable at what stage this software is right now - you know how to rise my fees, it’s about time to learn how to do stable, prod-ready engine!

It’s unsuable right now.

Settings:

Last log entires:

[BakePipeline::BakeStage] LightBaker bake took 70442.04ms and succeeded.
[BakePipeline::PostProcessStage] Started.
Request Asset Garbage Collect because used heap size increased from 0.86 GB to 3.64 GB, exceeding the threshold of 256.0 MB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 13138.
Memory consumption went from 3.64 GB to 3.64 GB.
Total: 38.903200 ms (FindLiveObjects: 1.299400 ms CreateObjectMapping: 0.970600 ms MarkObjects: 36.565200 ms  DeleteObjects: 0.066500 ms)

Request Asset Garbage Collect because used heap size increased from 3.64 GB to 4.56 GB, exceeding the threshold of 0.91 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13138.
Memory consumption went from 4.54 GB to 4.57 GB.
Total: 43.340500 ms (FindLiveObjects: 1.482100 ms CreateObjectMapping: 1.366100 ms MarkObjects: 40.414700 ms  DeleteObjects: 0.076700 ms)

Request Asset Garbage Collect because used heap size increased from 3.93 GB to 5.07 GB, exceeding the threshold of 0.98 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 13138.
Memory consumption went from 5.07 GB to 5.07 GB.
Total: 28.916400 ms (FindLiveObjects: 0.767700 ms CreateObjectMapping: 0.473700 ms MarkObjects: 27.629000 ms  DeleteObjects: 0.045300 ms)

Asset Pipeline Refresh (id=7994997d7a1c7b64288fd32303ba2d33): Total: 0.004 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)

Another crash, this time light map size was set to 2024


[BakePipeline::BakeStage] LightBaker bake took 22080.76ms and succeeded.
[BakePipeline::PostProcessStage] Started.
Request Asset Garbage Collect because used heap size increased from 0.63 GB to 1.46 GB, exceeding the threshold of 256.0 MB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 12858.
Memory consumption went from 1.46 GB to 1.56 GB.
Total: 29.789100 ms (FindLiveObjects: 0.821400 ms CreateObjectMapping: 0.169000 ms MarkObjects: 28.590900 ms  DeleteObjects: 0.206400 ms)

Request Asset Garbage Collect because used heap size increased from 1.41 GB to 1.81 GB, exceeding the threshold of 361.2 MB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 12858.
Memory consumption went from 1.81 GB to 1.81 GB.
Total: 22.830800 ms (FindLiveObjects: 0.788800 ms CreateObjectMapping: 0.488900 ms MarkObjects: 21.505700 ms  DeleteObjects: 0.046900 ms)

Request Asset Garbage Collect because used heap size increased from 1.40 GB to 1.81 GB, exceeding the threshold of 357.8 MB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 12858.
Memory consumption went from 1.81 GB to 1.81 GB.
Total: 20.091500 ms (FindLiveObjects: 0.785400 ms CreateObjectMapping: 0.515600 ms MarkObjects: 18.735200 ms  DeleteObjects: 0.054800 ms)

Request Asset Garbage Collect because used heap size increased from 1.40 GB to 1.81 GB, exceeding the threshold of 357.3 MB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 3 unused Assets / (0.8 KB). Loaded Objects now: 12858.
Memory consumption went from 1.81 GB to 1.81 GB.
Total: 22.822900 ms (FindLiveObjects: 0.775600 ms CreateObjectMapping: 0.453500 ms MarkObjects: 21.530000 ms  DeleteObjects: 0.063200 ms)

Asset Pipeline Refresh (id=7e041e038ea9c5e429a3f7055fd66de3): Total: 0.003 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)

Another freeze, in the middle of post-processing it decided to refresh scene view:

[00:02:38] Finished 1 Tetrahedralize Probes job (0.00s execute, 0.00s integrate, 0.06s wallclock)
[00:02:38] Precompute took 0.507358 seconds.
Enlighten scene contents:   0 geometries.   0 instances.   0 systems.   0 probe groups.   0 cube maps. Scene is up-to-date.
Loading expansionAndGathering.cl with hash 0b574f35c79e5a0af51775b91bac1a9c from cache.
Loading prepareLightRays.cl with hash 50b706e5b0eb68864c8c80c0a89f26c4 from cache.
Loading processLightRays.cl with hash 940cc1a3a1985ef07e4e5c180a7a6c59 from cache.
Loading intersectBvh.cl with hash 3e58ac9049026e2075b999d83a1e830e from cache.
Loading preparePathRays.cl with hash 87d222da5a404e7a08b9eebaede56067 from cache.
Loading prepareEnvironmentRays.cl with hash d3cb77c6c930b62a6f43a739516c39c0 from cache.
Loading processEnvironment.cl with hash fecb44998976cea65af238a3dac39452 from cache.
Loading processBounce.cl with hash 18fdd6b46db6bd193d50c16b7781748b from cache.
Loading culling.cl with hash a1896fad97810c6eec1488e3138a78f7 from cache.
Loading fillBuffer.cl with hash b15c686fa022b957df8a698f6794bb36 from cache.
Loading expansionAndGathering.cl with hash e06e2605752ba1678dc90b254eaa1542 from cache.
Loading prepareLightRays.cl with hash d79dfb4f43c1129a63c2d44433f0588c from cache.
Loading preparePathRays.cl with hash 613c29d106b3e8b951cf370078b5be3b from cache.
Loading prepareEnvironmentRays.cl with hash 9d9725b31add3ce715fef2121b1b260d from cache.
Loading processEnvironment.cl with hash 9e32b417ea82f3e32b0a10891a6ffb4c from cache.
Loading processLightRays.cl with hash 8cfa04d939ac7626be1c202d5a91372f from cache.
Loading processBounce.cl with hash f9e6c5db545ae9b32604b7fb2a4fd8ee from cache.
Loading compositeLightmaps.cl with hash 2624503c26323db91bdefe485ba9d239 from cache.
Loading atrousFilter.cl with hash 92f6fa578e0b27cd3528484f3a749097 from cache.
Loading atrousFilter.cl with hash 946eaa4689a6ba15aaf3739ae951617f from cache.
Loading atrousFilter.cl with hash e0da5c35fe526a1f3f936a08ca8c1045 from cache.
Loading convergence.cl with hash 95c923b17ccc4f715323dddbabcedf96 from cache.
Loading customBake.cl with hash 9ca3387618874bde48fb3c3bf9559118 from cache.
Loading postProcessProbes.cl with hash 2f649a6d615849fea2e180dc2a7437fd from cache.
[PathTracer] Loaded OpenCL shaders in 0.020 secs -> Timestamps: [387.069 - 387.089].
Progress timing - render light probes	0.00	0	190104575396
Request Asset Garbage Collect because used heap size increased from 0.91 GB to 2.15 GB, exceeding the threshold of 256.0 MB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (5.2 KB). Loaded Objects now: 13025.
Memory consumption went from 2.15 GB to 2.15 GB.
Total: 26.198100 ms (FindLiveObjects: 0.787500 ms CreateObjectMapping: 0.423700 ms MarkObjects: 24.925400 ms  DeleteObjects: 0.060500 ms)

Request Asset Garbage Collect because used heap size increased from 2.15 GB to 3.17 GB, exceeding the threshold of 0.54 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (1.0 KB). Loaded Objects now: 13025.
Memory consumption went from 3.17 GB to 3.17 GB.
Total: 26.953900 ms (FindLiveObjects: 0.870200 ms CreateObjectMapping: 0.561700 ms MarkObjects: 25.458700 ms  DeleteObjects: 0.062700 ms)

Request Asset Garbage Collect because used heap size increased from 3.17 GB to 4.17 GB, exceeding the threshold of 0.79 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 13025.
Memory consumption went from 4.17 GB to 4.17 GB.
Total: 26.282000 ms (FindLiveObjects: 0.824500 ms CreateObjectMapping: 0.519900 ms MarkObjects: 24.875800 ms  DeleteObjects: 0.060600 ms)

Request Asset Garbage Collect because used heap size increased from 4.17 GB to 5.22 GB, exceeding the threshold of 1.04 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13025.
Memory consumption went from 5.23 GB to 5.31 GB.
Total: 26.272800 ms (FindLiveObjects: 0.840900 ms CreateObjectMapping: 0.521900 ms MarkObjects: 24.860400 ms  DeleteObjects: 0.049100 ms)

Request Asset Garbage Collect because used heap size increased from 5.31 GB to 6.64 GB, exceeding the threshold of 1.33 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13025.
Memory consumption went from 6.66 GB to 6.74 GB.
Total: 25.272100 ms (FindLiveObjects: 0.890000 ms CreateObjectMapping: 0.567300 ms MarkObjects: 23.769100 ms  DeleteObjects: 0.045300 ms)

Request Asset Garbage Collect because used heap size increased from 4.20 GB to 5.70 GB, exceeding the threshold of 1.05 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 13025.
Memory consumption went from 5.70 GB to 5.70 GB.
Total: 30.339800 ms (FindLiveObjects: 1.030400 ms CreateObjectMapping: 0.631200 ms MarkObjects: 28.620700 ms  DeleteObjects: 0.056900 ms)

Request Asset Garbage Collect because used heap size increased from 5.70 GB to 7.27 GB, exceeding the threshold of 1.42 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13025.
Memory consumption went from 7.27 GB to 7.35 GB.
Total: 31.794600 ms (FindLiveObjects: 1.425100 ms CreateObjectMapping: 1.047200 ms MarkObjects: 29.258500 ms  DeleteObjects: 0.062500 ms)

Request Asset Garbage Collect because used heap size increased from 7.02 GB to 8.84 GB, exceeding the threshold of 1.75 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13025.
Memory consumption went from 8.84 GB to 8.90 GB.
Total: 31.376200 ms (FindLiveObjects: 1.455700 ms CreateObjectMapping: 1.032500 ms MarkObjects: 28.804600 ms  DeleteObjects: 0.081900 ms)

Request Asset Garbage Collect because used heap size increased from 7.52 GB to 9.53 GB, exceeding the threshold of 1.88 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 3 unused Assets / (0.6 KB). Loaded Objects now: 13025.
Memory consumption went from 9.53 GB to 9.53 GB.
Total: 32.740800 ms (FindLiveObjects: 0.879000 ms CreateObjectMapping: 0.553500 ms MarkObjects: 31.242100 ms  DeleteObjects: 0.065400 ms)

Request Asset Garbage Collect because used heap size increased from 2.13 GB to 3.15 GB, exceeding the threshold of 0.53 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 13025.
Memory consumption went from 3.15 GB to 3.15 GB.
Total: 28.711900 ms (FindLiveObjects: 0.868100 ms CreateObjectMapping: 0.551600 ms MarkObjects: 27.231000 ms  DeleteObjects: 0.060800 ms)

Request Asset Garbage Collect because used heap size increased from 3.15 GB to 4.15 GB, exceeding the threshold of 0.79 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 13025.
Memory consumption went from 4.15 GB to 4.15 GB.
Total: 26.681300 ms (FindLiveObjects: 0.864400 ms CreateObjectMapping: 0.542800 ms MarkObjects: 25.223700 ms  DeleteObjects: 0.049200 ms)

Request Asset Garbage Collect because used heap size increased from 4.15 GB to 5.20 GB, exceeding the threshold of 1.04 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13023.
Memory consumption went from 5.20 GB to 5.29 GB.
Total: 26.683900 ms (FindLiveObjects: 0.860000 ms CreateObjectMapping: 0.560100 ms MarkObjects: 25.210700 ms  DeleteObjects: 0.052700 ms)

Request Asset Garbage Collect because used heap size increased from 5.29 GB to 6.62 GB, exceeding the threshold of 1.32 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13023.
Memory consumption went from 6.62 GB to 6.71 GB.
Total: 26.681500 ms (FindLiveObjects: 0.838500 ms CreateObjectMapping: 0.522800 ms MarkObjects: 25.269900 ms  DeleteObjects: 0.049600 ms)

Request Asset Garbage Collect because used heap size increased from 4.22 GB to 5.72 GB, exceeding the threshold of 1.05 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 13025.
Memory consumption went from 5.72 GB to 5.72 GB.
Total: 26.532200 ms (FindLiveObjects: 0.821500 ms CreateObjectMapping: 0.450600 ms MarkObjects: 25.206900 ms  DeleteObjects: 0.052800 ms)

Request Asset Garbage Collect because used heap size increased from 5.72 GB to 7.27 GB, exceeding the threshold of 1.43 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (1.5 KB). Loaded Objects now: 13023.
Memory consumption went from 7.27 GB to 7.27 GB.
Total: 30.161400 ms (FindLiveObjects: 0.954900 ms CreateObjectMapping: 0.574200 ms MarkObjects: 28.572800 ms  DeleteObjects: 0.058800 ms)

Request Asset Garbage Collect because used heap size increased from 7.02 GB to 8.86 GB, exceeding the threshold of 1.75 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13023.
Memory consumption went from 8.86 GB to 8.86 GB.
Total: 33.618400 ms (FindLiveObjects: 1.018600 ms CreateObjectMapping: 0.678000 ms MarkObjects: 31.846400 ms  DeleteObjects: 0.074600 ms)

Request Asset Garbage Collect because used heap size increased from 7.52 GB to 9.52 GB, exceeding the threshold of 1.88 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (16.0 MB). Loaded Objects now: 13023.
Memory consumption went from 9.52 GB to 9.50 GB.
Total: 37.412400 ms (FindLiveObjects: 0.974400 ms CreateObjectMapping: 0.521300 ms MarkObjects: 35.849400 ms  DeleteObjects: 0.066600 ms)

Request Asset Garbage Collect because used heap size increased from 2.12 GB to 3.14 GB, exceeding the threshold of 0.53 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 13025.
Memory consumption went from 3.14 GB to 3.14 GB.
Total: 26.730800 ms (FindLiveObjects: 0.847400 ms CreateObjectMapping: 0.533600 ms MarkObjects: 25.296600 ms  DeleteObjects: 0.052800 ms)

Request Asset Garbage Collect because used heap size increased from 3.14 GB to 4.14 GB, exceeding the threshold of 0.78 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 13025.
Memory consumption went from 4.14 GB to 4.14 GB.
Total: 28.223200 ms (FindLiveObjects: 0.854000 ms CreateObjectMapping: 0.568700 ms MarkObjects: 26.736900 ms  DeleteObjects: 0.063200 ms)

Request Asset Garbage Collect because used heap size increased from 4.14 GB to 5.18 GB, exceeding the threshold of 1.03 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 3 unused Assets / (Unknown). Loaded Objects now: 13025.
Memory consumption went from 5.18 GB to 5.27 GB.
Total: 27.784000 ms (FindLiveObjects: 0.801400 ms CreateObjectMapping: 0.524700 ms MarkObjects: 26.404800 ms  DeleteObjects: 0.052700 ms)

Request Asset Garbage Collect because used heap size increased from 5.27 GB to 6.59 GB, exceeding the threshold of 1.32 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 13025.
Memory consumption went from 6.61 GB to 6.69 GB.
Total: 25.816900 ms (FindLiveObjects: 0.794700 ms CreateObjectMapping: 0.480100 ms MarkObjects: 24.493100 ms  DeleteObjects: 0.048700 ms)

TrimDiskCacheJob: Current cache size 1241mb
Request Asset Garbage Collect because used heap size increased from 4.21 GB to 5.71 GB, exceeding the threshold of 1.05 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 13025.
Memory consumption went from 5.71 GB to 5.71 GB.
Total: 28.143100 ms (FindLiveObjects: 0.833200 ms CreateObjectMapping: 0.437000 ms MarkObjects: 26.821800 ms  DeleteObjects: 0.050200 ms)

Request Asset Garbage Collect because used heap size increased from 5.71 GB to 7.27 GB, exceeding the threshold of 1.42 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 10 unused Assets / (1.9 KB). Loaded Objects now: 12953.
Memory consumption went from 7.27 GB to 7.27 GB.
Total: 30.211600 ms (FindLiveObjects: 0.939700 ms CreateObjectMapping: 0.599100 ms MarkObjects: 28.570300 ms  DeleteObjects: 0.101600 ms)

Request Asset Garbage Collect because used heap size increased from 7.02 GB to 8.80 GB, exceeding the threshold of 1.75 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (95.4 MB). Loaded Objects now: 12953.
Memory consumption went from 8.87 GB to 8.77 GB.
Total: 36.426500 ms (FindLiveObjects: 1.178100 ms CreateObjectMapping: 0.651900 ms MarkObjects: 34.532000 ms  DeleteObjects: 0.063800 ms)

Request Asset Garbage Collect because used heap size increased from 7.52 GB to 9.41 GB, exceeding the threshold of 1.88 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 12953.
Memory consumption went from 9.52 GB to 9.52 GB.
Total: 33.444400 ms (FindLiveObjects: 1.360400 ms CreateObjectMapping: 0.950200 ms MarkObjects: 31.070400 ms  DeleteObjects: 0.062200 ms)

Request Asset Garbage Collect because used heap size increased from 2.13 GB to 3.14 GB, exceeding the threshold of 0.53 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 12953.
Memory consumption went from 3.14 GB to 3.14 GB.
Total: 28.413200 ms (FindLiveObjects: 0.850000 ms CreateObjectMapping: 0.549300 ms MarkObjects: 26.963400 ms  DeleteObjects: 0.049900 ms)

Request Asset Garbage Collect because used heap size increased from 3.14 GB to 4.14 GB, exceeding the threshold of 0.79 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 12953.
Memory consumption went from 4.14 GB to 4.14 GB.
Total: 26.669300 ms (FindLiveObjects: 0.835500 ms CreateObjectMapping: 0.461300 ms MarkObjects: 25.327400 ms  DeleteObjects: 0.044800 ms)

Request Asset Garbage Collect because used heap size increased from 4.14 GB to 5.19 GB, exceeding the threshold of 1.04 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 12951.
Memory consumption went from 5.19 GB to 5.27 GB.
Total: 24.742800 ms (FindLiveObjects: 0.822200 ms CreateObjectMapping: 0.436700 ms MarkObjects: 23.436800 ms  DeleteObjects: 0.046600 ms)

Request Asset Garbage Collect because used heap size increased from 5.27 GB to 6.59 GB, exceeding the threshold of 1.32 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (Unknown). Loaded Objects now: 12953.
Memory consumption went from 6.60 GB to 6.68 GB.
Total: 24.978800 ms (FindLiveObjects: 0.786100 ms CreateObjectMapping: 0.432000 ms MarkObjects: 23.715200 ms  DeleteObjects: 0.045200 ms)

Request Asset Garbage Collect because used heap size increased from 4.21 GB to 5.71 GB, exceeding the threshold of 1.05 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 12953.
Memory consumption went from 5.71 GB to 5.71 GB.
Total: 25.528000 ms (FindLiveObjects: 0.830200 ms CreateObjectMapping: 0.483600 ms MarkObjects: 24.158600 ms  DeleteObjects: 0.055100 ms)

Start importing Assets/Project Platinum/Scenes/pp_d_combat_testing/pp_d_combat_testing Baking Set.asset using Guid(31d2e2ce11c10b84f9a988ca170f82b3) (NativeFormatImporter) -> (artifact id: '7d4065784fa5253df34fb96d98c3fe53') in 0.0009218 seconds
Refreshing native plugins compatible for Editor in 0.76 ms, found 5 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
Asset Pipeline Refresh (id=10208785175836f43966736a0af86d9a): Total: 0.036 seconds - Initiated by StopAssetImportingV2(NoUpdateAssetOptions)
Start importing Assets/Project Platinum/Scenes/pp_d_combat_testing.unity using Guid(20c2574b98201b24698f6323992781a8) (DefaultImporter) -> (artifact id: '12715754d024c632eb9f693e8302e97d') in 0.0007152 seconds
Refreshing native plugins compatible for Editor in 0.90 ms, found 5 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
Asset Pipeline Refresh (id=f4bef416532d45640b3ad067e7e8a0c0): Total: 0.124 seconds - Initiated by StopAssetImportingV2(NoUpdateAssetOptions)
Request Asset Garbage Collect because used heap size increased from 5.70 GB to 7.28 GB, exceeding the threshold of 1.42 GB.
Unloading 19 Unused Serialized files (Serialized files now loaded: 0)
Unloading 122 unused Assets / (Unknown). Loaded Objects now: 12953.
Memory consumption went from 7.28 GB to 7.37 GB.
Total: 34.957100 ms (FindLiveObjects: 1.472300 ms CreateObjectMapping: 1.134800 ms MarkObjects: 32.020900 ms  DeleteObjects: 0.328000 ms)

Request Asset Garbage Collect because used heap size increased from 7.03 GB to 8.87 GB, exceeding the threshold of 1.76 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (319.8 MB). Loaded Objects now: 12953.
Memory consumption went from 8.97 GB to 8.65 GB.
Total: 33.194100 ms (FindLiveObjects: 1.211300 ms CreateObjectMapping: 0.664800 ms MarkObjects: 31.252800 ms  DeleteObjects: 0.064200 ms)

Request Asset Garbage Collect because used heap size increased from 7.28 GB to 9.26 GB, exceeding the threshold of 1.82 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (96.0 MB). Loaded Objects now: 12953.
Memory consumption went from 9.26 GB to 9.17 GB.
Total: 35.631100 ms (FindLiveObjects: 1.368100 ms CreateObjectMapping: 0.915400 ms MarkObjects: 33.288600 ms  DeleteObjects: 0.058500 ms)

[BakePipeline::BakeStage] LightBaker bake took 85808.79ms and succeeded.
[BakePipeline::PostProcessStage] Started.
Request Asset Garbage Collect because used heap size increased from 0.89 GB to 3.67 GB, exceeding the threshold of 256.0 MB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 12953.
Memory consumption went from 3.67 GB to 3.67 GB.
Total: 37.721200 ms (FindLiveObjects: 1.501500 ms CreateObjectMapping: 0.972900 ms MarkObjects: 35.164500 ms  DeleteObjects: 0.081400 ms)

Request Asset Garbage Collect because used heap size increased from 3.66 GB to 4.71 GB, exceeding the threshold of 0.91 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.8 KB). Loaded Objects now: 12953.
Memory consumption went from 4.71 GB to 4.71 GB.
Total: 25.538700 ms (FindLiveObjects: 0.825700 ms CreateObjectMapping: 0.496000 ms MarkObjects: 24.162800 ms  DeleteObjects: 0.053400 ms)

Request Asset Garbage Collect because used heap size increased from 4.47 GB to 5.60 GB, exceeding the threshold of 1.12 GB.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 2 unused Assets / (0.9 KB). Loaded Objects now: 12953.
Memory consumption went from 5.60 GB to 5.60 GB.
Total: 25.328600 ms (FindLiveObjects: 0.861000 ms CreateObjectMapping: 0.472600 ms MarkObjects: 23.945200 ms  DeleteObjects: 0.049500 ms)


Looking at all of these, it seems that there’s some race condition that clogs the whole thing - either assetimport jobs or other non-baking related stuff.

Also, baking/post-processing any light map bigger than 1024 is a guaranted to crash/freeze.

1024s are baked in most stable way…

Thanks Unity - for making my dream come true work a nightmare!

Thanks for the report! We are able to repro this issue as well, but only on certain hardware. We are investigating and I’ll update you once I know more.

Thanks!

If this helps, here’s the machine spec:

         Operating System: Windows 11 Pro 64-bit (10.0, Build 22631) (22621.ni_release.220506-1250)
                Processor: AMD Ryzen 9 7950X 16-Core Processor             (32 CPUs), ~4.5GHz
                   Memory: 196608MB RAM
      Available OS Memory: 195722MB RAM
                Page File: 32609MB used, 175400MB available
          DirectX Version: DirectX 12
           Card name: NVIDIA GeForce RTX 4080 SUPER
        Manufacturer: NVIDIA
           Chip type: NVIDIA GeForce RTX 4080 SUPER
            DAC type: Integrated RAMDAC
         Device Type: Full Device (POST)
          Device Key: Enum\PCI\VEN_10DE&DEV_2702&SUBSYS_141A196E&REV_A1
       Device Status: 0180200A [DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER] 
 Device Problem Code: No Problem
 Driver Problem Code: Unknown
      Display Memory: 113907 MB
    Dedicated Memory: 16047 MB
       Shared Memory: 97860 MB
        Current Mode: 2560 x 1080 (32 bit) (59Hz)
 Driver File Version: 32.00.0015.6094 (English)
      Driver Version: 32.0.15.6094
         DDI Version: 12
      Feature Levels: 12_2,12_1,12_0,11_1,11_0,10_1,10_0,9_3,9_2,9_1
        Driver Model: WDDM 3.1
   Driver Attributes: Final Retail
    Driver Date/Size: 14.08.2024 02:00:00, 799776 bytes

Thanks for the specs, I was just about to ask for that. Interestingly, this issue seems to only repro on (relatively) high-end systems (many CPU cores and 4080+ cards). We suspect it may be a CPU race condition happening inside lightmap post processing but we are still investigating…

Same problem for me (bug with 2048 and sometime work with 1024)

My spec :

  • Unity 6000.22, URP (Nintendo Switch)
  • Windows 10 22H2
  • Geforce 4080, last driver
  • 16 giga of Ram
  • Intel core i7 6900k

I tested the rendering with the CPU and I have the same bug.

Same problem for me.
It always gets stuck at phase Post Processing 2/3, 29%.
Tried both in baked indirect and substractive.
I have noticed it doesn’t happen on 6000.0.21f, but on 6000.0.22f and 6000.0.23f, so maybe something to investigate there

Specs :
AMD Ryzen 9 5950X 16-Core Processor
Windows 11
Geforce 3090
64GB ram.

Yeah, for me, with lm size 512/1024 works 99% no problem.

Fails 99% with lm size 2048/4096.

If I try to cancel such job, it hangs up on GI.Tick.

Probably there’s a problem with threads synchro, or swallowed exception in the parallel code.

Fingers crossed to snipe it quick, because I love how fast lm is right now, when it works, on this spec :sweat_smile: It’s such a step up in terms of iterations and quality you get from it.

So happy I found this. I was going crazy trying to figure why I keep freezing on bakes.

Happens on GTX 1070, 16GB RAM, Windows 10, Unity 6000.0.23f1, DX11 also on scenes that baked perfectly fine before on Unity 2022 like 3 days ago, so the mention it only affects Higher End GFX cards isnt my case. Even tried delete entire “Library” folder, default baking settings, always ends up at “Post processing 2/3”, stuck forever, GL.Tick useally appear and have to End Task to get rid of everything.

Also happening to me on Unity 6000.0.23f1 with 32GB Ram, RTX 3070. Seems to the get the Post Processing stage and completely freezes

Mine hangs on third bake “Post processing 2/3” 6000.0.22f1 1x(2048x2048px) RTX 4090

Same for me but on an older system
Win 10
16GB Ram
Radeon rx580
6000.0.23f1

In the meantime, disabling “Use job threads” and “Allow Graphics jobs in Editor” makes it work. Has to be done every time the editor is started though.

We’re actively tracking this new issue. Seems related to multi-threading on some configurations. Could anyone having the issue post his exact CPU model and amount of cores/threads here?

i9-12900K 16 cores 24 threads

Ryzen 7 5800X - 8 Cores, 16 Threads

AMD Ryzen 9 7950X 16-Cores/32-threads