Page MenuHome

Archimesh: generates invalid meshes
Confirmed, NormalPublicBUG


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.

The file includes the textures as well.

Event Timeline

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.

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.

Running mesh.validate(verbose=True) shows that the mesh has invalid geometry. More specifically I get these errors:

ERROR (bke.mesh): .../mesh_validate.c:593 BKE_mesh_validate_arrays:      Poly 6 has duplicated vert reference at corner (3)
ERROR (bke.mesh): .../mesh_validate.c:733 BKE_mesh_validate_arrays:      Loop 24 is unused.
ERROR (bke.mesh): .../mesh_validate.c:733 BKE_mesh_validate_arrays:      Loop 25 is unused.
ERROR (bke.mesh): .../mesh_validate.c:733 BKE_mesh_validate_arrays:      Loop 26 is unused.
ERROR (bke.mesh): .../mesh_validate.c:733 BKE_mesh_validate_arrays:      Loop 27 is unused.
ERROR (bke.mesh): .../mesh_validate.c:733 BKE_mesh_validate_arrays:      Loop 28 is unused.

My guess is that archimesh generated this invalid geometry. @Antonio Vazquez (antoniov)

Jacques Lucke (JacquesLucke) changed the task status from Needs Triage to Confirmed.Sat, Dec 28, 3:03 PM
Jacques Lucke (JacquesLucke) changed the task status from Confirmed to Needs Information from User.

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.

Jacques Lucke (JacquesLucke) changed the task status from Needs Information from User to Confirmed.Sun, Dec 29, 11:50 AM

Thanks. In a debug build that even crashes as I set the top to "Arch".

Bastien Montagne (mont29) renamed this task from Crash when adding Bevel modifier to Archimesh: generates invalid meshes.Wed, Jan 15, 11:11 AM
Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Bug".