Page MenuHome

Point density texture crashes
Closed, ResolvedPublicBUG


System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: AMD Radeon(TM) Vega 8 Graphics ATI Technologies Inc. 4.5.13558 Core Profile Context 26.20.11015.5009

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-24 14:22, hash: rB507ffee6e1f4
Worked: (optional)

Short description of error
using point density texture in cycles always crashes while tweaking the settings

Exact steps for others to reproduce the error
open blender,
select cycles as the renderer,
add a particle on the cube,
use point density in shader nodes,
tweak some point density settings,
and it crashes

Event Timeline

Germano Cavalcante (mano-wii) lowered the priority of this task from 90 to 50.

@Brecht Van Lommel (brecht), node->typeinfo sometimes is NULL.
Here is a file to reproduce the problem:

Can confirm this on 2.81 hash: 970d7ed860f1

Windows 10 64 bits
Intel i5-6500
NVidia GTX 1060

Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".Jan 24 2020, 7:17 PM
Brecht Van Lommel (brecht) triaged this task as High priority.Feb 18 2020, 11:06 AM

I think the issue is that the builtin_data parameter to builtin_image_float_pixels is sometimes a ID * and sometimes a bNode *. Currently, the function has no way to determine which pointer type it is afaik. The problem is that RNA_id_pointer_create((ID *)builtin_data, &ptr); is called even if builtin_data is actually a pointer to a node.

I don't really know at which level this should be fixed...