Skip to content

Crashed when selecting vertex from imported dxf file #7522

@drbode

Description

@drbode

Bug Description

I have imported a dxf file and created a new project from a blank template. I have activated the vertex for adding walls.
This worked for multiple walls. Then it crashed and showed that something is incomplete.
I am not sure if i selected the vertex twice or not. I have a blender file and a

BugReport.docx

Attachments

Image

Model_type_ifc_crashed.txt

Debug and Error Output

os: Windows
os_version: 10.0.19041
python_version: 3.11.13
architecture: ('64bit', 'WindowsPE')
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
blender_version: 5.0.1
bonsai_version: 0.8.4
bonsai_commit_hash: None
bonsai_commit_date: None
last_actions: 
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_save_project
# operator: BIM_OT_hotkey
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_hotkey
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_hotkey
# operator: BIM_OT_draw_polyline_wall
# operator: BIM_OT_draw_polyline_wall
last_error: Traceback (most recent call last):
  File "C:\Users\drbod\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\ifc.py", line 530, in execute_ifc_operator
    result = getattr(operator, "_modal")(context, event)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drbod\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\wall.py", line 718, in _modal
    self.get_product_preview_data(context, self.relating_type)
  File "C:\Users\drbod\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\polyline.py", line 997, in get_product_preview_data
    data = get_wall_preview_data(context, relating_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drbod\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\polyline.py", line 113, in get_wall_preview_data
    bm_base = create_bmesh_from_vertices(polyline_vertices, is_closed)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drbod\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\polyline.py", line 54, in create_bmesh_from_vertices
    bm.edges.new((new_verts[-1], new_verts[0]))
ValueError: edges.new(...): found the same (BMVert) used multiple times

ifc: Arauca_62_V2.ifc
schema: IFC4
preprocessor_version: IfcOpenShell 0.8.4
originating_system: Bonsai 0.8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions