Maniphest T80470

Crash when trying to assign Automatic Weights to this particular mesh
Closed, ResolvedBUG

Assigned To
Sybren A. Stüvel (sybren)
Authored By
Demeter Dzadik (Mets)
Sep 4 2020, 3:33 PM
Tags
  • BF Blender
  • Animation & Rigging
Subscribers
Demeter Dzadik (Mets)
Germano Cavalcante (mano-wii)
Pablo Dobarro (pablodp606)
Sybren A. Stüvel (sybren)

Description

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: rBf5e55c33378b

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:
  • Ctrl+P -> Automatic Weights
  • Crash.

Related Objects

Mentioned Here
rBd7282537f016: CD_PROP_COL datalayer
T80468: Objects deleted in outliner but exist in the scene

Event Timeline

Demeter Dzadik (Mets) created this task.Sep 4 2020, 3:33 PM
Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Sep 8 2020, 5:41 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".
Germano Cavalcante (mano-wii) added a project: Animation & Rigging.
Germano Cavalcante (mano-wii) added a subscriber: Germano Cavalcante (mano-wii).

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 T80468 it was mentioned about connecting the armature to the mesh.
So I am confirming as a bug.

Sybren A. Stüvel (sybren) added subscribers: Pablo Dobarro (pablodp606), Sybren A. Stüvel (sybren).Sep 17 2020, 6:17 PM

Bisecting shows that the crash seems to be caused by rBd7282537f0165b957efc6b0dc16208906f0202a8.
@Pablo Dobarro (pablodp606) could you take a look at this?

Pablo Dobarro (pablodp606) added a comment.Sep 17 2020, 6:27 PM

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.

Sybren A. Stüvel (sybren) added a comment.Sep 24 2020, 10:43 AM

@Pablo Dobarro (pablodp606) Have you tried with an ASAN-enabled build?

Sybren A. Stüvel (sybren) closed this task as Resolved.Sep 24 2020, 12:48 PM
Sybren A. Stüvel (sybren) claimed this task.

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