Skip to content

Crash when creating cyclic host nesting between elements #7248

@MGodsven

Description

@MGodsven

Bug Description

When creating two wall elements (e.g., Wall A and Wall B) and assigning Wall B as the host of Wall A, and then Wall A as the host of Wall B — thus creating a cyclic reference — Blender crashes as soon as either wall is moved or interacted with.

Steps to reproduce:

1 - Create Wall A.
2 - Create Wall B.
3 - Set Wall B as the host of Wall A.
4 - Set Wall A as the host of Wall B.
5 - Attempt to move either wall in the viewport.
6 - Blender crashes.

Expected behavior:

Blender should detect and prevent cyclic nesting or handle it gracefully without crashing.

Additional Notes

If the file is saved with cyclic host nesting, opening it again will cause Blender to crash immediately — no user interaction required. This suggests that neither Bonsai nor IfcOpenShell is validating or guarding against cyclic references.

Attachments

IFC File -> sample.txt

Image

Debug and Error Output

Blender 4.5.3 LTS
Bonsai 0.8.3-post1
Python 3.13.7
Windows 11

I honestly don't know if Bonsai generates logs for this, for it seems like an infinite loop...

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