Program hangs indefinitely when attempting to access any property of "link_loops" (BMElemSeq) #72946
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#72946
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00
Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash:
blender/blender@f1aa4d18d4
Worked: (optional)
Short description of error
Program hangs indefinitely when attempting to get length of, iterate, or access any element in "link_loops" property of BMElemSeq, of bmesh created from object in blend file:
crash.7z
Exact steps for others to reproduce the error
load blend file
Switch to Scripting View
Run the following python script code:
Added subscriber: @pyro789x
Program hangs indefinitely when attempting to get list of, or iterate, "link_loops" property of BMElemSeqto Program hangs indefinitely when attempting to access any property of "link_loops" (BMElemSeq)Added subscriber: @Stan_Pancakes
There's something very wrong with the geometry in that particular mesh. For example, there are edgeless faces (0 and 5). Attempting to cut an edge there manually (between verts 0 and 3) will also result in this freeze. Deleting both faces and trying to fill the hole with alt+f fills with "edgeless" faces again.
How was this mesh created? Is that an import? If this was created solely with Blender's tools, it'd be nice to find out how, exactly, such errors became even possible.
To "fix" the geometry you can run, in Python console, this (while being in object mode):
Not sure if you consider it "with Blender's tools", but it was created with the "from_pydata()" function
Here's the raw input:
make_bad_mesh.py
looks like throwing a blendMesh.validate() after blendMesh.from_pydata() does fix the issue. I wonder if from_pydata() should include an internal call to validate()?
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Archived'
Thx for the report, but this does not look like a bug to me.
(I havent checked in detail -- debugging external scripts for the exact misusage is out of scope of the bugtracker in this case, sorry)
But there is already a fat warning in the docs regarding this:
https://docs.blender.org/api/master/bpy.types.Mesh.html#bpy.types.Mesh.from_pydata
Closing as this is working as intended...
I wouldn't really classify it as a "script", the provided input is just providing a set of hardcoded vertices and faces. I'm also not seeing any of the issues you mention in the face list (out-of-range-indices, edges that contain the same index multiple times, or 2-sided faces, as each face is a simple triangle)