Point density texture crashes #67718

Closed
opened 2019-07-26 08:44:48 +02:00 by John Marshal · 21 comments

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: 507ffee6e1
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

**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: `507ffee6e1` 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
Author

Added subscriber: @johninvirtual

Added subscriber: @johninvirtual

#73027 was marked as duplicate of this issue

#73027 was marked as duplicate of this issue

#66915 was marked as duplicate of this issue

#66915 was marked as duplicate of this issue

#72265 was marked as duplicate of this issue

#72265 was marked as duplicate of this issue

#71296 was marked as duplicate of this issue

#71296 was marked as duplicate of this issue

#69902 was marked as duplicate of this issue

#69902 was marked as duplicate of this issue

Added subscribers: @brecht, @mano-wii

Added subscribers: @brecht, @mano-wii
Brecht Van Lommel was assigned by Germano Cavalcante 2019-07-26 15:30:58 +02:00

@brecht, node->typeinfo sometimes is NULL.
Here is a file to reproduce the problem:
tmp.blend

@brecht, `node->typeinfo` sometimes is `NULL`. Here is a file to reproduce the problem: [tmp.blend](https://archive.blender.org/developer/F7629858/tmp.blend)
Member

Added subscribers: @KuldeepSingh, @lichtwerk

Added subscribers: @KuldeepSingh, @lichtwerk
Member

Added subscriber: @EAW

Added subscriber: @EAW

Added subscriber: @edg422

Added subscriber: @edg422

Can confirm this on 2.81 hash: 970d7ed860

Windows 10 64 bits
Intel i5-6500
NVidia GTX 1060

Can confirm this on 2.81 hash: 970d7ed860f1 Windows 10 64 bits Intel i5-6500 NVidia GTX 1060

Added subscriber: @bent

Added subscriber: @bent

Added subscriber: @Mrqozy

Added subscriber: @Mrqozy
Brecht Van Lommel was unassigned by Dalai Felinto 2019-12-23 16:33:31 +01:00

Added subscribers: @AsaCristallFama, @iss, @ankitm, @Mets

Added subscribers: @AsaCristallFama, @iss, @ankitm, @Mets

Added subscriber: @crantisz

Added subscriber: @crantisz
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

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...

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...

This issue was referenced by blender/cycles@a21189d487

This issue was referenced by blender/cycles@a21189d4879b77c3b5d6a80272db95d1a59dffea

This issue was referenced by 6cf4861c3a

This issue was referenced by 6cf4861c3ac09fd65a765e8f8e3584713cc5303b

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2020-03-11 20:49:30 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
9 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#67718
No description provided.