Crash when trying to assign Automatic Weights to this particular mesh #80470

Closed
opened 2020-09-04 15:33:44 +02:00 by Demeter Dzadik · 10 comments
Member

System Information
Operating system: Linux-5.4.0-7634-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.100

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-02 17:10, hash: f5e55c3337

Short description of error
When trying to parent this mesh to the armature with Automatic Weights, Blender crashes.
Interestingly though, if you simply enter and leave edit mode beforehand, it doesn't crash!
I think the mesh was created with the Quadriflow remesher, maybe that's relevant?

Exact steps for others to reproduce the error

**System Information** Operating system: Linux-5.4.0-7634-generic-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.100 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-02 17:10, hash: `f5e55c3337` **Short description of error** When trying to parent this mesh to the armature with Automatic Weights, Blender crashes. Interestingly though, if you simply enter and leave edit mode beforehand, it doesn't crash! I think the mesh was created with the Quadriflow remesher, maybe that's relevant? **Exact steps for others to reproduce the error** - Download blend: [phil.crashycrash.blend](https://archive.blender.org/developer/F8840435/phil.crashycrash.blend) - Ctrl+P -> Automatic Weights - Crash.
Author
Member

Added subscriber: @Mets

Added subscriber: @Mets

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 the crash:

>	blender.exe!blender::deg::ComponentNode::clear_operations() Line 227	C++

 	blender.exe!blender::deg::ComponentNode::~ComponentNode() Line 101	C++
 	[External Code]	
 	blender.exe!blender::deg::IDNode::destroy() Line 136	C++
 	blender.exe!blender::deg::IDNode::~IDNode() Line 127	C++
 	[External Code]	
 	blender.exe!blender::deg::Depsgraph::clear_id_nodes() Line 164	C++
 	blender.exe!blender::deg::Depsgraph::clear_all_nodes() Line 236	C++
 	blender.exe!blender::deg::DepsgraphNodeBuilder::begin_build() Line 356	C++
 	blender.exe!blender::deg::AbstractBuilderPipeline::build_step_nodes() Line 78	C++
 	blender.exe!blender::deg::AbstractBuilderPipeline::build() Line 58	C++
 	blender.exe!DEG_graph_build_from_view_layer(Depsgraph * graph) Line 217	C++
 	blender.exe!DEG_graph_relations_update(Depsgraph * graph) Line 270	C++
 	blender.exe!scene_graph_update_tagged(Depsgraph * depsgraph, Main * bmain, bool only_if_tagged) Line 1504	C
 	blender.exe!BKE_scene_graph_update_tagged(Depsgraph * depsgraph, Main * bmain) Line 1547	C
 	blender.exe!wm_event_do_depsgraph(bContext * C, bool is_after_open_file) Line 361	C
 	blender.exe!wm_event_do_refresh_wm_and_depsgraph(bContext * C) Line 388	C
 	blender.exe!wm_event_do_notifiers(bContext * C) Line 569	C
 	blender.exe!WM_main(bContext * C) Line 488	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 531	C
 	[External Code]	

Strange that the mesh looks valid at first.
This may be related to the recent reports on corrupted mesh because in #80468 it was mentioned about connecting the armature to the mesh.
So I am confirming as a bug.

I can confirm the crash: ``` > blender.exe!blender::deg::ComponentNode::clear_operations() Line 227 C++ blender.exe!blender::deg::ComponentNode::~ComponentNode() Line 101 C++ [External Code] blender.exe!blender::deg::IDNode::destroy() Line 136 C++ blender.exe!blender::deg::IDNode::~IDNode() Line 127 C++ [External Code] blender.exe!blender::deg::Depsgraph::clear_id_nodes() Line 164 C++ blender.exe!blender::deg::Depsgraph::clear_all_nodes() Line 236 C++ blender.exe!blender::deg::DepsgraphNodeBuilder::begin_build() Line 356 C++ blender.exe!blender::deg::AbstractBuilderPipeline::build_step_nodes() Line 78 C++ blender.exe!blender::deg::AbstractBuilderPipeline::build() Line 58 C++ blender.exe!DEG_graph_build_from_view_layer(Depsgraph * graph) Line 217 C++ blender.exe!DEG_graph_relations_update(Depsgraph * graph) Line 270 C++ blender.exe!scene_graph_update_tagged(Depsgraph * depsgraph, Main * bmain, bool only_if_tagged) Line 1504 C blender.exe!BKE_scene_graph_update_tagged(Depsgraph * depsgraph, Main * bmain) Line 1547 C blender.exe!wm_event_do_depsgraph(bContext * C, bool is_after_open_file) Line 361 C blender.exe!wm_event_do_refresh_wm_and_depsgraph(bContext * C) Line 388 C blender.exe!wm_event_do_notifiers(bContext * C) Line 569 C blender.exe!WM_main(bContext * C) Line 488 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 531 C [External Code] ``` Strange that the mesh looks valid at first. This may be related to the recent reports on corrupted mesh because in #80468 it was mentioned about connecting the armature to the mesh. So I am confirming as a bug.

Added subscribers: @PabloDobarro, @dr.sybren

Added subscribers: @PabloDobarro, @dr.sybren

Bisecting shows that the crash seems to be caused by d7282537f0.
@PabloDobarro could you take a look at this?

Bisecting shows that the crash seems to be caused by d7282537f0. @PabloDobarro could you take a look at this?
Member

I can't reproduce it. I also find weird that that commit is the cause because that does not include any functionality that can be used from the UI to create a color datalayer in order to make it crash, it is just the datalayer definition.
2020-09-17 18-25-04.mp4

I can't reproduce it. I also find weird that that commit is the cause because that does not include any functionality that can be used from the UI to create a color datalayer in order to make it crash, it is just the datalayer definition. [2020-09-17 18-25-04.mp4](https://archive.blender.org/developer/F8892683/2020-09-17_18-25-04.mp4)

@PabloDobarro Have you tried with an ASAN-enabled build?

@PabloDobarro Have you tried with an ASAN-enabled build?

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sybren A. Stüvel self-assigned this 2020-09-24 12:48:19 +02:00

I can't reproduce this any more with current master, so I'll assume that it's been fixed in the mean time.

I can't reproduce this any more with current master, so I'll assume that it's been fixed in the mean time.
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
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#80470
No description provided.