Page MenuHome

Cycles baking crashes
Closed, ResolvedPublic

Description

System Information
Windows 7 64 bit
AMD Radeon HD 6950

Blender Version
Broken: Blender 2.71 RC (169c95b), Blender 2.70 (e53c00a)

Short description of error
When I try to bake details from a highpoly mesh to lowpoly model Blender crashes. I attempted to bake this model with two different Blender versions from Graphicall (as the latest release doesn't have Cycles baking yet) but both versions crashed upon bake. I did also try to bake some details to a cube which worked fine so there seems to be something weird with this specific scene.

I have tried using the simplify option to make the models a bit lighter, using square textures and using low-res textures neither of which seemed to help.

Exact steps for others to reproduce the error
The only step necessary should be to just press bake under the render settings. The highpoly models are located in the first top layer, the lowpoly model in the first bottom layer and the cage model in the second bottom layer.

Event Timeline

Robin Karlsson (nosslak) raised the priority of this task from to 90.
Robin Karlsson (nosslak) updated the task description. (Show Details)
Robin Karlsson (nosslak) edited a custom field.

@Dalai Felinto (dfelinto), it's possible that bvhtree_from_mesh_faces will return treeData.tree == NULL for meshes without any faces.This leads to a null-pointer dereference in the ray intersection code.

Guess we just need to skip rays is tree is NULL?

Sergey Sharybin (sergey) lowered the priority of this task from 90 to 50.Jun 13 2014, 3:13 PM

One more note,

if (&treeData[i].tree == NULL) {

is rather strange check -- why to get an address here? And it's invalid because NULL tree will also happen with mesh without faces a was mentioned above.

Fixed, the issue was indeed objects with zero faces:

By the way, you will get considerable faster baking if you join some of your highpoly objects. Baking in the external engine (Cycles) runs once per highpoly object.

Thanks for the report, closing commit coming shortly.

Dalai Felinto (dfelinto) changed the task status from Unknown Status to Resolved.Jun 13 2014, 7:38 PM

Closed by commit rBb0708dd7189d.