Material not showing of geometry node Object #87241

Closed
opened 2021-04-06 16:46:59 +02:00 by johann schepke · 15 comments

Blender Version
Broken: 2.93 Daily 6.4.2021

Short description of error
Material not showing in Object mode of geometry nodes Object, unless the geometry Input is joined at the top of the join node.

Working:
grafik.png
Not working:
grafik.png

Exact steps for others to reproduce the error
Create Object
Add Material
Add Geometry nodes
Add primitve node
Join Input Geometry with primitive Node

**Blender Version** Broken: 2.93 Daily 6.4.2021 **Short description of error** Material not showing in Object mode of geometry nodes Object, unless the geometry Input is joined at the top of the join node. Working: ![grafik.png](https://archive.blender.org/developer/F9921917/grafik.png) Not working: ![grafik.png](https://archive.blender.org/developer/F9921919/grafik.png) **Exact steps for others to reproduce the error** Create Object Add Material Add Geometry nodes Add primitve node Join Input Geometry with primitive Node
Author

Added subscriber: @johann2709

Added subscriber: @johann2709

#87758 was marked as duplicate of this issue

#87758 was marked as duplicate of this issue

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm.
In a debug build, editing the material can still lead to a crash:

 	KernelBase.dll!00007ff81d0f4b59()	Unknown
 	[External Code]	
 	clang_rt.asan_dbg_dynamic-x86_64.dll!00007fff9ec226f7()	Unknown
 	clang_rt.asan_dbg_dynamic-x86_64.dll!00007fff9ec23db2()	Unknown
 	clang_rt.asan_dbg_dynamic-x86_64.dll!00007fff9ec27560()	Unknown
>	blender.exe!`anonymous namespace'::deg_iterator_objects_step(DEGObjectIterData * data) Line 317	C++

 	blender.exe!DEG_iterator_objects_next(BLI_Iterator * iter) Line 407	C++
 	blender.exe!DRW_render_object_iter(void * vedata, RenderEngine * engine, Depsgraph * depsgraph, void(*)(void *, Object *, RenderEngine *, Depsgraph *) callback) Line 1955	C
 	blender.exe!eevee_render_to_image(void * vedata, RenderEngine * engine, RenderLayer * render_layer, const rcti * rect) Line 547	C
 	blender.exe!DRW_render_to_image(RenderEngine * engine, Depsgraph * depsgraph) Line 1916	C
 	blender.exe!engine_render_view_layer(Render * re, RenderEngine * engine, ViewLayer * view_layer_iter, const bool use_engine, const bool use_grease_pencil) Line 870	C
 	blender.exe!RE_engine_render(Render * re, bool do_all) Line 999	C
 	blender.exe!do_render_3d(Render * re) Line 1096	C
 	blender.exe!RE_PreviewRender(Render * re, Main * bmain, Scene * sce) Line 2677	C
 	blender.exe!shader_preview_render(ShaderPreview * sp, ID * id, int split, int first) Line 1071	C
 	blender.exe!shader_preview_startjob(void * customdata, short * stop, short * do_update) Line 1111	C
 	blender.exe!icon_preview_startjob(void * customdata, short * stop, short * do_update) Line 1383	C
 	blender.exe!common_preview_startjob(void * customdata, short * stop, short * do_update, float * UNUSED_progress) Line 1402	C
 	blender.exe!other_id_types_preview_render(IconPreview * ip, IconPreviewSize * cur_size, const int pr_method, short * stop, short * do_update, float * progress) Line 1454	C
 	blender.exe!icon_preview_startjob_all_sizes(void * customdata, short * stop, short * do_update, float * progress) Line 1531	C
 	blender.exe!do_job_thread(void * job_v) Line 390	C
 	blender.exe!tslot_thread_start(void * tslot_p) Line 232	C++
 	[External Code]	

Here the file I used to replicate the problem:
geom_test.blend

I can confirm. In a debug build, editing the material can still lead to a crash: ``` KernelBase.dll!00007ff81d0f4b59() Unknown [External Code] clang_rt.asan_dbg_dynamic-x86_64.dll!00007fff9ec226f7() Unknown clang_rt.asan_dbg_dynamic-x86_64.dll!00007fff9ec23db2() Unknown clang_rt.asan_dbg_dynamic-x86_64.dll!00007fff9ec27560() Unknown > blender.exe!`anonymous namespace'::deg_iterator_objects_step(DEGObjectIterData * data) Line 317 C++ blender.exe!DEG_iterator_objects_next(BLI_Iterator * iter) Line 407 C++ blender.exe!DRW_render_object_iter(void * vedata, RenderEngine * engine, Depsgraph * depsgraph, void(*)(void *, Object *, RenderEngine *, Depsgraph *) callback) Line 1955 C blender.exe!eevee_render_to_image(void * vedata, RenderEngine * engine, RenderLayer * render_layer, const rcti * rect) Line 547 C blender.exe!DRW_render_to_image(RenderEngine * engine, Depsgraph * depsgraph) Line 1916 C blender.exe!engine_render_view_layer(Render * re, RenderEngine * engine, ViewLayer * view_layer_iter, const bool use_engine, const bool use_grease_pencil) Line 870 C blender.exe!RE_engine_render(Render * re, bool do_all) Line 999 C blender.exe!do_render_3d(Render * re) Line 1096 C blender.exe!RE_PreviewRender(Render * re, Main * bmain, Scene * sce) Line 2677 C blender.exe!shader_preview_render(ShaderPreview * sp, ID * id, int split, int first) Line 1071 C blender.exe!shader_preview_startjob(void * customdata, short * stop, short * do_update) Line 1111 C blender.exe!icon_preview_startjob(void * customdata, short * stop, short * do_update) Line 1383 C blender.exe!common_preview_startjob(void * customdata, short * stop, short * do_update, float * UNUSED_progress) Line 1402 C blender.exe!other_id_types_preview_render(IconPreview * ip, IconPreviewSize * cur_size, const int pr_method, short * stop, short * do_update, float * progress) Line 1454 C blender.exe!icon_preview_startjob_all_sizes(void * customdata, short * stop, short * do_update, float * progress) Line 1531 C blender.exe!do_job_thread(void * job_v) Line 390 C blender.exe!tslot_thread_start(void * tslot_p) Line 232 C++ [External Code] ``` Here the file I used to replicate the problem: [geom_test.blend](https://archive.blender.org/developer/F9923024/geom_test.blend)

Added subscriber: @Erindale

Added subscriber: @Erindale

Confirming this as well but I would also say that geometry generated inside Geometry Nodes needs to have the material assigned to the object data not the mesh data:
image.png

Doing this fixes the issue.

Confirming this as well but I would also say that geometry generated inside Geometry Nodes needs to have the material assigned to the object data not the mesh data: ![image.png](https://archive.blender.org/developer/F9923051/image.png) Doing this fixes the issue.
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

@mano-wii Does this crash still exist, I couldn't reproduce it. Can you give some more precise steps to reproduce the crash?

Besides that @Erindale provided the correct workaround that is necessary currently.

@mano-wii Does this crash still exist, I couldn't reproduce it. Can you give some more precise steps to reproduce the crash? Besides that @Erindale provided the correct workaround that is necessary currently.

Anyway, I tested it here and it seems that it doesn't happen anymore :)

Anyway, I tested it here and it seems that it doesn't happen anymore :)
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jacques Lucke self-assigned this 2021-04-16 19:15:45 +02:00
Member

Added subscribers: @BjornEckhardt, @Baardaap

Added subscribers: @BjornEckhardt, @Baardaap
Member

Added subscriber: @Calra

Added subscriber: @Calra
Member

@BjornEckhardt You can use @Erindale 's workaround for the material to show irrespective of the noodle connection order.

@BjornEckhardt You can use @Erindale 's workaround for the material to show irrespective of the noodle connection order.

@Calra thx, This works.

@Calra thx, This works.
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
7 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#87241
No description provided.