Blender segfault after switching to the material tab with a model imported from a GLTF file #59993

Closed
opened 2018-12-30 20:13:05 +01:00 by Gabriel Dube · 8 comments

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]

**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** * Launch Blender * Import the "damaged helmet" file from this github repository: https://github.com/KhronosGroup/glTF-WebGL-PBR * Switch to the material tab * Blender segfault 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] ```
Author

Added subscriber: @gdube

Added subscriber: @gdube

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Clément Foucault was assigned by Sebastian Parborg 2018-12-31 13:25:37 +01:00

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:
glft.blend

Doesn't crash with cycles.

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: [glft.blend](https://archive.blender.org/developer/F6128864/glft.blend) Doesn't crash with cycles.

Added subscriber: @capnm

Added subscriber: @capnm

It crashes with eevee by trying to create the material thumbnail, a simpler file
#59993-UVmap-crash.blend

It crashes with eevee by trying to create the material thumbnail, a simpler file [#59993-UVmap-crash.blend](https://archive.blender.org/developer/F6141894/T59993-UVmap-crash.blend)
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure
Member

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

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

Closed as duplicate of #56545

Closed as duplicate of #56545
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
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
4 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#59993
No description provided.