Page MenuHome

Crash when baking vertex colors when Auto Smooth is enabled
Closed, DuplicatePublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.11

Blender Version
Broken: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash: rB1b8d33b18c2f

Short description of error
When baking vertex colors with Cycles, Blender crashes when a mesh's normals are set to Auto Smooth.

Exact steps for others to reproduce the error

  1. Create a new mesh object primitive (cube).
  2. Add a vertex color channel to the mesh.
  3. Toggle Auto Smooth to true in the Normals properties of the object's mesh.
  4. Set renderer to Cycles and GPU compute.
  5. Set the output bake target to 'Vertex Colors'.
  6. Click bake and observe Blender crashing.

See this blend file:

When baking the object 'Cube', having Auto Smooth disabled, no crash.
When baking the object 'CubeAutoSmooth', having Auto Smooth enabled, Blender crashes.

Event Timeline

Joep Peters (Joep) updated the task description. (Show Details)

Already fixed with the commit rB5f9677fe0c53: Fix T88756: crash when baking with autosmooth but not backported yet (can still reproduce with recent 2.93.2 build but not with 3.0.0)

@Joep Peters (Joep) , can you please try again with most recent 3.0.0 build? (https://builder.blender.org/download/daily/)

Yep! Seems to be fixed in the most recent 3.0.0 build ae379714e4f1.

Can the fix also make it into 2.93.2? Would love to see it fixed in the LTS version.

I have added the fix on the list to be backported, see T88449: Blender LTS: Maintenance Task 2.93.
Will merge this report with T88756 though, no reason to keep two reports open now.

Thanks @Philipp Oeser (lichtwerk)! Looking forward to the new 2.93 release : )