avelgest / baker-node

A Blender add-on that adds a node to the Shader Editor which can bake its input to an image, vertex attribute or sculpt mask with one click.
GNU General Public License v2.0
43 stars 0 forks source link

Blender 4.0.1 crashing when baking with Image (Plane) #2

Closed UnKabaraQuiDev closed 10 months ago

UnKabaraQuiDev commented 11 months ago

Blender crashes (segmentation fault) when baking an image as plane

You also can't re-open the file after blender crashed, the file is "corrupted" forever

system-info.txt blender.crash.txt

Blender 4.0.1 and baker-node v0.8.2

UnKabaraQuiDev commented 11 months ago

Update !

Is seems like this only happens when the Baker's node input has no vector/coordinate input.

In this case the bake works and blender does not crash: image

In this case it also works: image Same for this: image

In this case it does not work: image It seems Mapping nodes break everyting

avelgest commented 11 months ago

Thanks for the detailed issue! I haven't been able to reproduce any consistent crashes, but have reproduced occasional crashes when using Image (Plane) which are due to the temporary plane created for baking being deleted too early.

I've pushed commit dcc2373 to main which should fix the crashes described above and hopefully fix the crashes that you're experiencing as well (not sure about the differences between node setups, but prehaps certain setups manage to finish reading the temporary plane's data before the plane is deleted). If the crashes persist could you try disabling Bake in Background in the add-on's preferences and seeing it changes anything?

UnKabaraQuiDev commented 10 months ago

Still on v0.8.2, i disabled "Bake in background" and now there isn't any issue while baking as Image(Plane) image

With the new commit dc2373 it also works with "Bake in background" enabled

Thanks 👍