Archimesh: generates invalid meshes #72635
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#72635
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
Graphics card: Geforce 1080
Blender Version
Broken: v 2.81a and 2.81
Worked: (optional)
Short description of error
Adding a Bevel modifier to an object leads to instant crash of Blender.
Exact steps for others to reproduce the error
I have created a window with archimesh, updated the mesh, added uv and a material. Then I removed all parenting with Alt-P, then removed the group and empty created by the addon, such that the object only contains the window.
When I now add a Bevel modifier, Blender crashes instantly.
This can be reproduced with the attached file in 2.81 and 2.81a. lfFenster.blend The file includes the textures as well.
Added subscriber: @hc3d
Added subscriber: @HooglyBoogly
Thanks for the report!
I'd like to look into this, but it would be helpful if you could upload a version of the file with just the object that crashes Blender, without textures or anything else.
lfFensterUpdate.blend
Here you go. Only one object, no textures included.
(I did not expect to get a reply on a Sunday - thanks a lot!)
Thank you! That's helpful. I'm just a volunteer who's been working with bevel so I figured I would take a look.
It looks like the crash happens when the mesh from the object is changed into a BMesh for the modifier, so before it's touched by bevel. Because of that I'm also getting a crash getting into edit mode with the object.
Added subscribers: @antoniov, @JacquesLucke
Running
mesh.validate(verbose=True)
shows that the mesh has invalid geometry. More specifically I get these errors:My guess is that archimesh generated this invalid geometry. @antoniov
Changed status from 'Needs Triage' to: 'Confirmed'
Changed status from 'Confirmed' to: 'Needs User Info'
Please describe more exactly how you generated the window so that we can check if geometry has been generated by archimesh indeed.
Dear Jacques, thank you for looking into this issue!
I have created the attached pdf with screenshots of how to reproduce the crash. I assume that the crash is related to the arched top of the window as it does not happen when the top is flat.
BlenderCrash.pdf
Changed status from 'Needs User Info' to: 'Confirmed'
Thanks. In a debug build that even crashes as I set the top to "Arch".
Crash when adding Bevel modifierto Archimesh: generates invalid meshesThe steps in the PDF still cause a crash in Blender version 3.6.3
Archimesh version has had some updates since this ticket was raised and is now at 1.2.5.
The curved top window has significantly more non-manifold elements compared with the flat top.
Looks like there are 4 commits ahead of this release.
I can stop it crashing with an edit to the python addon :)
In another toolbox I saw the use of mesh.validate()
Add the following lines at the end of remove_doubles in achm_tools.py
Now when launching blender from the terminal I get a lot of output relating to fixing the mesh:
The corrected mesh now means I can then add a Bevel without crashing Blender.
FYI the tail of the crash file
Further testing with my suggestion shows that while Blender no longer crashes the mesh ends up with a non-contiguous surface. The root to fixing this is going to be understanding the generation of the archway over the window rather than a sticking plaster.... More work to do, I'll continue to investigate as I get time.