Page MenuHome

Material not showing of geometry node Object
Closed, ResolvedPublicBUG


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.


Not working:

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

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Wed, Apr 7, 5:27 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

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:

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:

Doing this fixes the issue.

@Germano Cavalcante (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 (Erindale) provided the correct workaround that is necessary currently.

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