Crash
When I Generate Lighting or just “Bake Probe Volumes” everything stays responsive and until the third “Additional Bake” begins by which logging the error below before crashing the editor.
Crash Error: “Bake wasn’t completed for 1126301696 probes
System.Threading.ThreadHelper: ThreadStart()”
I was able to successfully bake a 500m2 volume in an empty scene with just terrain within the same project, so I am a bit confused on the culprit.
I have tried clearing the GI Cache, but it didn’t make a difference.
Anyways, does anyone know if this is a bug or an issue with my setup?
Can you also try disabling the Virtual Offset option in the APV Bake settings ? Both the Sky Occlusion and Virtual Offset settings require a baking step that uses a different code path.
It would be also interesting to know if the bake completes when the Progressive CPU lightmapper is selected.
Im having the same issues on Unity 6.0.032f1. I’ve tried disabling Virtual Offset and setting it to Progressive CPU, no luck. Unity crashes every time. It also uses all 32 GB of my system memory, sometimes giving a used all memory error.
Looking again at your post @MountainTiger, something looks suspicious. It’s trying to bake 1 billion probes but your probe volume is 20x10x20 with a minimum probe spacing of 2, there shouldn’t be as many probes. I suspect that you have another probe volume in your scene that must be much bigger than the one shown on your screenshot. Could you check if you don’t have another probe volume in your scene ? If not, please file a bug report.
In any case, if not careful with the APV volume parameters, the total number of probes can quickly skyrocket for any given scene. You can keep it under control by reducing the APV bounds and/or increase the probe spacing.
Hi @YvainR,
I have gone through all the scene’s objects and am sure there is only a single APV volume - as when I delete it and choose Lighting>Bake APV Volumes it requests to add one. I have tried every combination of settings, including both GPU and CPU mappers with this issue still persisting (6000.0.32).
The only crash difference with the latest 6.0 releases being it also triggers an AMD graphics driver crash and instead now says “Bake wasn’t completed for -1126301696 probes System.Threading.ThreadHelper: ThreadStart()”.
I’ll see if it has been fixed in 6.1 Beta, otherwise I’ll send a bug report.
I didn’t test for that before, but now when I open Resource Manager, my RAM jumps from 86% to 100% utilisation just before crashing the editor and AMD graphics driver.