Title: Bonsai: Extend Walls To Underside crashes with "'dict' object has no attribute 'extend'" on malformed BBIM_Boolean.Data · Issue #8821 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: Extend Walls To Underside crashes with "'dict' object has no attribute 'extend'" on malformed BBIM_Boolean.Data · Issue #8821 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: Extend Walls To Underside crashes with "'dict' object has no attribute 'extend'" on malformed BBIM_Boolean.Data · Issue #8821 · IfcOpenShell/IfcOpenShell
Description: Open source IFC library and geometry engine. Contribute to IfcOpenShell/IfcOpenShell development by creating an account on GitHub.
Open Graph Description: Open source IFC library and geometry engine. Contribute to IfcOpenShell/IfcOpenShell development by creating an account on GitHub.
X Description: Open source IFC library and geometry engine. Contribute to IfcOpenShell/IfcOpenShell development by creating an account on GitHub.
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: Extend Walls To Underside crashes with \"'dict' object has no attribute 'extend'\" on malformed BBIM_Boolean.Data","articleBody":"### Describe the bug\n\nRunning **Extend Walls To Underside** (the `S_E` hotkey in the wall tool workspace) can crash with:\n\n```\nAttributeError: 'dict' object has no attribute 'extend'\n```\n\nThe failure is in `Model.mark_manual_booleans`, which reads the wall's `BBIM_Boolean.Data` pset, `json.loads`es it, and calls `.extend()` on the result. That result is expected to be a JSON **list** of boolean ids, but on the affected wall the payload decoded to a `dict`, so `.extend()` raises.\n\nEvery writer of `BBIM_Boolean.Data` in the codebase stores a JSON list (`clip_solid`, `clip_solid_bounded`, `mark_manual_booleans`, `unmark_manual_booleans`), and every reader assumes a list — so any wall whose payload is not a list crashes the whole boolean machinery (`get_manual_booleans`, `mark_manual_booleans`, `unmark_manual_booleans`, and the duplicate/regeneration paths).\n\nThe origin of the non-list payload is currently unknown — no code path writes a dict, so it appears to come from a legacy or externally-modified file.\n\n### Traceback\n\n```\n File \".../bonsai/bim/module/model/workspace.py\", line 1320, in hotkey_S_E\n bpy.ops.bim.extend_walls_to_underside()\n File \".../bonsai/bim/module/model/wall.py\", line 452, in _perform\n core.extend_wall_to_slab(tool.Ifc, tool.Geometry, tool.Model, slabs, walls)\n File \".../bonsai/core/model.py\", line 235, in extend_wall_to_slab\n model.clip_wall_to_slab(wall, clip)\n File \".../bonsai/tool/model.py\", line 2945, in clip_wall_to_slab\n tool.Model.mark_manual_booleans(wall, booleans)\n File \".../bonsai/tool/model.py\", line 1045, in mark_manual_booleans\n data.extend(boolean_ids)\nAttributeError: 'dict' object has no attribute 'extend'\n```\n\n### To Reproduce\n\nTrigger Extend Walls To Underside on a wall whose `BBIM_Boolean.Data` is a JSON object rather than a JSON list. (Encountered on an existing model; a minimal reproducer file is not yet isolated.)\n\n### Expected behavior\n\nThe boolean machinery should not hard-crash on an unexpected `BBIM_Boolean.Data` shape; it should degrade gracefully (and ideally log a warning) rather than raise `AttributeError`.\n\n### Suggested fix\n\nRoute all `BBIM_Boolean.Data` readers through a single defensive parser that coerces a non-list payload to an empty list (rebuild from scratch) instead of assuming a list. The same `json.loads(pset[\"Data\"])` assumption also lives in the `ifcopenshell` library (`api/geometry/regenerate_wall_representation.py`, `api/geometry/clip_solid.py`) and would fail identically during regeneration.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-07-20T18:36:04Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8821"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:19158dc3-a0ea-4e4d-9335-53d3a8e0005c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4DE:36DD20:25F749:32DBA8:6B04B5AF |
| html-safe-nonce | 0a8a0741716a56ec62945bafdc8ea272f8546d53605274e7afa005735136f869 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENERFOjM2REQyMDoyNUY3NDk6MzJEQkE4OjZCMDRCNUFGIiwidmlzaXRvcl9pZCI6IjI0MzY3NTc5NTIxMDgyMTM2NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7ce41cebacf3dc984b21742a23e76bfaa3bcdc4789cde580aa92f6a9a40edf08 |
| hovercard-subject-tag | repository:40473201 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/issues/8821 |
| twitter:image | https://opengraph.githubassets.com/28e4520c7d86b1b5225c8b336ba660404d70fd027548b7630a2530d57c89e9c2/IfcOpenShell/IfcOpenShell |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28e4520c7d86b1b5225c8b336ba660404d70fd027548b7630a2530d57c89e9c2/IfcOpenShell/IfcOpenShell |
| og:image:alt | Open source IFC library and geometry engine. Contribute to IfcOpenShell/IfcOpenShell development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-cache |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width