Maniphest T59993

Blender segfault after switching to the material tab with a model imported from a GLTF file
Closed, Duplicate

Assigned To
Clément Foucault (fclem)
Authored By
Gabriel Dube (gdube)
Dec 30 2018, 8:13 PM
Tags
  • BF Blender
Subscribers
Gabriel Dube (gdube)
Julien DUROURE (julien)
Martin Capitanio (capnm)
Sebastian Parborg (zeddb)

Description

System Information
Operating system: Windows 10 / Ubuntu 18.10
Graphics card: AMD R9 380 / Ryzen VEGA 10

Blender Version
Broken: 2.80, 266b1e2cbdc1, blender2.8, 2018-12-29

After importing a model from a .gltf file and switching to the material tab, blender segfaults

Exact steps for others to reproduce the error

Other notes:

  • blender segfaults with other model too (ex: the avocado)
  • The material tab works fine when there is no textures (ex: the models in MetalRoughSpheres)
  • the format (glb, gltf) do not change anything

Backtrace from "blender.crash.txt"

# Blender 2.80 (sub 39), Commit date: 2018-12-29 18:10, Hash 266b1e2cdbc1
bpy.context.space_data.recent_folders_active = 1  # Property
bpy.context.space_data.recent_folders_active = 1  # Property
bpy.context.space_data.recent_folders_active = 0  # Property
bpy.ops.object.parent_clear(type='CLEAR_KEEP_TRANSFORM')  # Operator
bpy.ops.object.delete(use_global=False)  # Operator
Deleted 1 object(s)  # Info
bpy.context.space_data.context = 'MATERIAL'  # Property

# backtrace
./blender(BLI_system_backtrace+0x1d) [0x1b91dbd]
./blender() [0x1153ca9]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f7875cfaf20]
./blender(BLI_ghashutil_strhash_p+0) [0x1b49350]
./blender() [0x17417d0]
./blender(DRW_mesh_batch_cache_create_requested+0x922) [0x17496f2]
./blender(DRW_render_object_iter+0xf0) [0x174fd00]
./blender() [0x17666f2]
./blender(DRW_render_to_image+0x217) [0x1750c97]
./blender(RE_engine_render+0x311) [0x14dcbf1]
./blender() [0x1442d17]
./blender() [0x14430c1]
./blender() [0x1443262]
./blender() [0x144358f]
./blender() [0x11655ef]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7f78775146db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f7875ddd88f]

Event Timeline

Gabriel Dube (gdube) created this task.Dec 30 2018, 8:13 PM
Sebastian Parborg (zeddb) assigned this task to Clément Foucault (fclem).Dec 31 2018, 1:25 PM
Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 50.
Sebastian Parborg (zeddb) added a subscriber: Sebastian Parborg (zeddb).

I'm getting an assert with the debug build:

BLI_assert failed: /blender/source/blender/draw/intern/draw_cache_impl_mesh.c:1031, mesh_render_data_create_ex(), at 'CustomData_number_of_layers(&rdata->cd.output.ldata, CD_TANGENT) == rdata->cd.layers.tangent_len'

.blend file:

Doesn't crash with cycles.

Martin Capitanio (capnm) added a subscriber: Martin Capitanio (capnm).Jan 1 2019, 7:16 PM

It crashes with eevee by trying to create the material thumbnail, a simpler file

Julien DUROURE (julien) added a subscriber: Julien DUROURE (julien).EditedJan 1 2019, 9:01 PM

This is a known issue, not linked to gltf import. Closed as duplicate of T56545
(but seems I don't have authorization to close this issue as duplicate)

Sebastian Parborg (zeddb) closed this task as a duplicate of T56545: Normal map node with named UV map crashes material preview.Jan 1 2019, 9:13 PM