Triangulating a mesh with overlapping tri and quad faces can cause an assertion failure #93574

Closed
opened 2021-12-02 15:28:23 +01:00 by Fen · 4 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12

Blender Version
Broken: version: 3.1.0 Alpha. Commit hash: 1620dcd208
Worked: Unsure

Short description of error
Triangulating a specific mesh in a specific object causes an assertion failure in the debug build.

Exact steps for others to reproduce the error
Without setup:

  1. Open the triangulate-bug.blend file
  2. Select Original and enter Edit Mode
  3. Run the Triangulate Faces operator
  4. Assert failure

Manual setup:

  1. Open the triangulate-bug.blend file
  2. Select DIY and enter Edit Mode
  3. Add a plane, merge at center to get a single vertex
  4. Duplicate three times to get four vertices
  5. Select all of the vertices and fill, producing a quad
  6. Select three of the vertices and fill, producing a tri
  7. Select all of the vertices and run the Triangulate Faces operator
  8. Assert failure

image.png

triangulate-bug.blend

Creating a brand-new object and following the same steps does not cause an assertion failure. However, using a copy of the object that caused the problem (even after deleting all of its vertices, which is how I made the DIY object) causes the assertion failure.

Just adding a plane to DIY in edit mode and adding a triangle face does not cause the assertion failure. However, if I delete the face (and only the face), then fill to create a quad, then fill to create a tri, the error happens.

I don't have any modifiers on the offending object, and I can't really tell if there's anything "special" about it. It has no constraints, vertex groups, materials, etc. etc.

This does not cause a crash in the release build.

BLI_assert failed: D:\blender-git\blender\source\blender\bmesh\intern\bmesh_mesh_normals.c:523, bm_mesh_loops_calc_normals_for_loop(), at '(bm->elem_index_dirty & (BM_FACE | BM_LOOP)) == 0'

Full error output: P2637

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12 **Blender Version** Broken: version: 3.1.0 Alpha. Commit hash: `1620dcd208` Worked: Unsure **Short description of error** Triangulating a specific mesh in a specific object causes an assertion failure in the debug build. **Exact steps for others to reproduce the error** Without setup: 1. Open the triangulate-bug.blend file 2. Select *Original* and enter Edit Mode 3. Run the *Triangulate Faces* operator 4. Assert failure Manual setup: 1. Open the triangulate-bug.blend file 2. Select *DIY* and enter Edit Mode 3. Add a plane, merge at center to get a single vertex 4. Duplicate three times to get four vertices 5. Select all of the vertices and fill, producing a quad 6. Select three of the vertices and fill, producing a tri 7. Select all of the vertices and run the *Triangulate Faces* operator 8. Assert failure ![image.png](https://archive.blender.org/developer/F12679799/image.png) [triangulate-bug.blend](https://archive.blender.org/developer/F12679771/triangulate-bug.blend) Creating a *brand-new object* and following the same steps does not cause an assertion failure. However, using a copy of the object that caused the problem (even after deleting *all of its vertices*, which is how I made the *DIY* object) causes the assertion failure. Just adding a plane to *DIY* in edit mode and adding a triangle face does not cause the assertion failure. However, if I delete the face (and only the face), then fill to create a quad, then fill to create a tri, the error happens. I don't have any modifiers on the offending object, and I can't really tell if there's anything "special" about it. It has no constraints, vertex groups, materials, etc. etc. This does not cause a crash in the release build. `BLI_assert failed: D:\blender-git\blender\source\blender\bmesh\intern\bmesh_mesh_normals.c:523, bm_mesh_loops_calc_normals_for_loop(), at '(bm->elem_index_dirty & (BM_FACE | BM_LOOP)) == 0'` Full error output: [P2637](https://archive.blender.org/developer/P2637.txt)
Author

Added subscriber: @chemicalcrux

Added subscriber: @chemicalcrux

This issue was referenced by 580c603df0

This issue was referenced by 580c603df08a95a2936380426b1b8c1038cdccf1

This issue was referenced by de5d36560f

This issue was referenced by de5d36560f9300e56d11e03ec6be161367d58df2

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Campbell Barton self-assigned this 2021-12-03 06:57:02 +01:00
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
3 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#93574
No description provided.