#Potential causes of editor permanently freezing or crashing during light baking process?

1 messages · Page 1 of 1 (latest)

meager sandal
#

Using 6.2 beta, I tried to bake lights in a medium sized scene with about 10m tris rendering at a given moment. The first time I tried to bake lights, my editor completely crashed. The second time, my editor completely bugged out and was using so many resources to the point where I could barely move my cursor. What is causing this to be so buggy?

mint dock
#

Could be a scene complexity issue too, if it's just way too much to bake

#

10M tris sounds like too much

#

Lightmapper is not effective at baking anything high-poly, and lightmapping in general works the best on flat surfaces

meager sandal
meager sandal
mint dock
# meager sandal I've never experienced this issue when baking lights before so i doubt that's it

When it happened to me it occurred quite randomly
Could happen when editor version changes, or when something's different in the temporary editor files of your project, or if something in the OS changes about how the editor and the GPU communicate I suppose
It's very cryptic so updating drivers and baking in test scenes and test projects is always worth it to ensure you're not looking for issues in the wrong place

#

If you assume the problem is in your scene or lighting settings, and it's somewhere above them you can spend forever testing solutions to no avail

mint dock
meager sandal
remote cypress
#

If it is a GPU timeout indeed, increasing the tdr delay might just fix your problem. The editor would still be not very responsive during the baking though. But this is normal.

#

Basically, you need to investigate the issue.

meager sandal
meager sandal
remote cypress
meager sandal
#

yes, there was a pop up

remote cypress
#

That being said, the fact that unity doesn't output a crash report(at least in the logs) is very weird.

meager sandal
remote cypress
#

Additionally, you could try looking in Event Viewer → Windows Logs. That should record any instances of apps shutting down incorrectly.

remote cypress
meager sandal
#

on another note, i tried rebaking my scene without setting any of my lights to baked, and my editor didnt crash, but it did spit out these errors

remote cypress
#

Buut, if it's a timeout, then yeah, probably everything should crash.

remote cypress
meager sandal
remote cypress
#

Are you on windows? Or Linux..?

#

Ah, ok

meager sandal
#

im on windows running dx11 i believe

remote cypress
meager sandal
#

this is all so confusing

remote cypress
#

Hmm... Maybe not. It seems to support many different platforms.

meager sandal
#

ok so i just tried baking lights again and it seemed to work...?

#

my editor didnt crash, but it doesnt feel like it worked even though it says it finished

#

yeah im getting the same fps as i did before so im inclined to believe that nothing actually happened

remote cypress
#

Did you actually mark objects as lighting static and change lights to baked?

meager sandal
#

yeah i just checked again and my setup seems fine

#

shouldnt it show the lightmaps that were baked in this area? or is that URP only? im new to HDRP so im not too sure

remote cypress
#

I think it should. Though to be honest, I don't have much experience with hdrp myself...

meager sandal
#

1700 lightmaps? that cant be right, can it?

remote cypress
#

Sounds like a lot indeed.

#

And it wouldn't be complete in 3 min for sure.

#

Or was it hours?

meager sandal
#

no you're right. it was 3 mins

remote cypress
#

Maybe try clearing the lighting data and trying again.

#

Also, did you try to use the cpu light mapper instead?

meager sandal
meager sandal
#

i'll give it a shot though

remote cypress
meager sandal
#

ah that could be it. i only have 8 gbs vram

remote cypress
remote cypress
meager sandal
#

the only other things i have open are discord and chrome 😔

remote cypress
#

Maybe unity itself is also getting in the way. How much vram does it use before baking?

meager sandal
#

while baking, it climbs to 8 but doesnt seem to hit 8 at all

remote cypress
#

Well, if it tried to allocate more than 200 in this state, it would definitely cause a crash.

#

Though, I'd assume it's implemented in a way where this shouldn't happen

meager sandal
remote cypress
#

What does the light mapper progress window shows?

meager sandal
#

seems to progress normally apart from sometimes blanking and showing nothing

remote cypress
#

Does it show how many light maps there are?

meager sandal
#

just so we're clear, you're talking about the background tasks window, right?

remote cypress
#

No. The bottom of the lighting tab with the baking settings.

meager sandal
#

just the bake time and the device

#

i assume any lightmaps that were generated before the baking process crashed (if any) get deleted after the crash

remote cypress
#

okay

meager sandal
#

ugh i'm not sure if i'll ever find a solution so i think it's best if i just call it quits on trying to bake lights for this scene specifically. thanks for the input @remote cypress @mint dock yall rock

mint dock
mint dock