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.