Dissolve Faces can result in invalid geometry (leading to crashes on further modeling operators such as Subdivide Edges) #116217

Closed
opened 2023-12-15 10:48:03 +01:00 by Alphonsus-Okoye · 2 comments

System Information
Operating system:
OS Name Microsoft Windows 10 Home
Version 10.0.19044 Build 19044

Graphics card:
GPU 0

Intel(R) Iris(R) Xe Graphics

Driver version:	27.20.100.8935
Driver date:	10/28/2020
DirectX version:	12 (FL 12.1)
Physical location:	PCI bus 0, device 2, function 0

Utilization	0%
Dedicated GPU memory	
Shared GPU memory	0.6/3.8 GB
GPU Memory	0.6/3.8 GB

Blender Version
Broken: (4.0.0, 878f71061b, blender-v4.0-release, 2023-11-13, as found on the splash screen)
Worked: *

Short description of error
After I made a square from a cube. Edge -> Subdivide operator is activated and tweaking the Number of Cuts in Adjust Last Operator panel crashes the system immediately.

Exact steps for others to reproduce the error
Based on the default startup .blend file,

  1. Enter Edit Mode with Tab and select a face.
  2. Invert selection Ctrl-I and dissolve the selected faces to leave just one square in the 3d viewport
  3. Use the Edge -> Subdivide operator in Edit Mode
  4. In the Adjust Last Operator panel try to increase the value of the Number of Cuts field by pressing the right arrow
  5. The program crashes immediately. The crash txt file is uploaded. This also happened in Blender 3.6.5
**System Information** Operating system: OS Name Microsoft Windows 10 Home Version 10.0.19044 Build 19044 Graphics card: GPU 0 Intel(R) Iris(R) Xe Graphics Driver version: 27.20.100.8935 Driver date: 10/28/2020 DirectX version: 12 (FL 12.1) Physical location: PCI bus 0, device 2, function 0 Utilization 0% Dedicated GPU memory Shared GPU memory 0.6/3.8 GB GPU Memory 0.6/3.8 GB **Blender Version** Broken: (4.0.0, 878f71061b8e, blender-v4.0-release, 2023-11-13, as found on the splash screen) Worked: * **Short description of error** After I made a square from a cube. `Edge -> Subdivide` operator is activated and tweaking the `Number of Cuts` in Adjust Last Operator panel crashes the system immediately. **Exact steps for others to reproduce the error** Based on the default startup .blend file, 1. Enter Edit Mode with `Tab `and select a face. 2. Invert selection `Ctrl-I` and dissolve the selected faces to leave just one square in the 3d viewport 3. Use the `Edge -> Subdivide` operator in Edit Mode 4. In the `Adjust Last Operator` panel try to increase the value of the `Number of Cuts` field by pressing the right arrow 5. The program crashes immediately. The crash txt file is uploaded. This also happened in Blender 3.6.5
Alphonsus-Okoye added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-12-15 10:48:03 +01:00
Iliya Katushenock added the
Interest
Modeling
label 2023-12-15 10:48:51 +01:00
Member

I can confirm.

The underlying problem is that step [2] actually creates 2 faces (bot using the same 4 vertices)

C.active_object.data.validate(verbose=True) then gives:

ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:701 BKE_mesh_validate_arrays: 	Polys 0 and 1 use same vertices (0
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:703 BKE_mesh_validate_arrays: , 1
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:703 BKE_mesh_validate_arrays: , 2
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:703 BKE_mesh_validate_arrays: , 3
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:705 BKE_mesh_validate_arrays: ), considering face 1 as invalid.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:782 BKE_mesh_validate_arrays: 	Loop 4 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:782 BKE_mesh_validate_arrays: 	Loop 5 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:782 BKE_mesh_validate_arrays: 	Loop 6 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:782 BKE_mesh_validate_arrays: 	Loop 7 is unused.
I can confirm. The underlying problem is that step [2] actually creates 2 faces (bot using the same 4 vertices) `C.active_object.data.validate(verbose=True)` then gives: ``` ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:701 BKE_mesh_validate_arrays: Polys 0 and 1 use same vertices (0 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:703 BKE_mesh_validate_arrays: , 1 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:703 BKE_mesh_validate_arrays: , 2 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:703 BKE_mesh_validate_arrays: , 3 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:705 BKE_mesh_validate_arrays: ), considering face 1 as invalid. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:782 BKE_mesh_validate_arrays: Loop 4 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:782 BKE_mesh_validate_arrays: Loop 5 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:782 BKE_mesh_validate_arrays: Loop 6 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:782 BKE_mesh_validate_arrays: Loop 7 is unused. ```
Philipp Oeser changed title from Attempts to increase the value in the <Number of Cuts> option crashes both blender 3.6.5 and 4.0.0 to Dissolve Faces can result in invalid geometry (leading to crashes on further modeling operators such as Subdivide Edges) 2023-12-15 12:49:50 +01:00
Philipp Oeser added
Module
Modeling
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-12-15 12:50:07 +01:00
Member

Actually, this has been reported before, see #70977.

There is some discussion in #70977 as to whether or not you should be able to achieve such invalid geometry with blenders modeling tools (my clear vote is for blender to not ever result in such geometry).

Nevertheless, this is a duplicate, will close. Please subscribe in #70977 if you want further updates

Actually, this has been reported before, see #70977. There is some discussion in #70977 as to whether or not you should be able to achieve such invalid geometry with blenders modeling tools (my clear vote is for blender to not ever result in such geometry). Nevertheless, this is a duplicate, will close. Please subscribe in #70977 if you want further updates
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-12-15 13:01:17 +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
2 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#116217
No description provided.