OSArch Community

(Just a notice) Bonsai loading IFC will freeze/crash Blender with later Blender 4.5 Alpha versions

  1. Z

    Just a small hint ...

    Usually latest Bonsai builds worked great for me in Blender 4.3 LTS, 4.4 and 4.5 Alphas over many weeks. I am on Apple ARM and usually use/test Bonsai in Blender 4.5 Alpha and update both bonsai and Blender daily builds every few days.

    But since a few days, I noticed that loading any (small) IFC will freeze Blender 4.5 with beach balling of death and I have to force quit. Or if I try creating a new file from scratch and save it, Blender crashes.

    Still no problem loading IFCs into Bonsai with Blender 4.3 or 4.4 though.

    May take 6-8 month until Blender 4.5 gets official, so no hurry.

    Maybe Blender took a route with python voodoo or other things that interferes with Bonsai compatibility.

  1. Z

    Well, it does not seem to always work (without freezing Blender) or to not throw any warning messages anyway ....

    At least I realized that I was able to open 2 IFCs already.

    So it seems that latest Bonsai builds do also/again/already work in latest Blender 4.5 Alpha - which is absolutely great !

  1. D
  1. Z

    Blender 4.4 is ok here.

    I just noticed that with Blender 4.5 Alpha, at one point, Bonsai started to freeze when trying to load any IFC.

    Now, 1-2 weeks/Bonsai builds later, that seems to generally work again.

    I had crappy Vectorworks IFCs lately, which cause problems for Bonsai in general, but the same IFCs in 4.4 loaded silent, while in 4.5 it threw Python Warnings every now and then. So it may not yet by 100% compatible or as error tolerant with 4.5 Alpha.

    With a less problematic IFC from Bricscad I get a Warning like this :

    Python: Traceback (most recent call last):

    File "/Users/User/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/project/operator.py", line 1092, in execute

    ifc_importer.execute()

    File "/Users/User/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/import_ifc.py", line 286, in execute

    self.clean_mesh()

    File "/Users/User/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/import_ifc.py", line 891, in clean_mesh

    bpy.ops.object.editmode_toggle()

    File "/Applications/Blender450.app/Contents/Resources/4.5/scripts/modules/bpy/ops.py", line 109, in call

    ret = _op_call(self.idname_py(), kw)
    
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    RuntimeError: Operator bpy.ops.object.editmode_toggle.poll() failed, context is incorrect

    But it seems to import fine anyway and no more freezing - which is fine.

Login or Register to reply.