René's URL Explorer Experiment


Title: StackTrace at wall creation · Issue #8597 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: StackTrace at wall creation · Issue #8597 · IfcOpenShell/IfcOpenShell

X Title: StackTrace at wall creation · Issue #8597 · IfcOpenShell/IfcOpenShell

Description: Bug Description Got this bug with BonsaiBIM 0.8.5 and 0.8.6-alpha260713 on Ubuntu 24.0 LTS and Blender 5.1.2. Steps: Create Project Click on X on gizmo coordinate to have Z/Y plan Click on "Wall tool" and "Quick Create IfcWallType" Then ...

Open Graph Description: Bug Description Got this bug with BonsaiBIM 0.8.5 and 0.8.6-alpha260713 on Ubuntu 24.0 LTS and Blender 5.1.2. Steps: Create Project Click on X on gizmo coordinate to have Z/Y plan Click on "Wall to...

X Description: Bug Description Got this bug with BonsaiBIM 0.8.5 and 0.8.6-alpha260713 on Ubuntu 24.0 LTS and Blender 5.1.2. Steps: Create Project Click on X on gizmo coordinate to have Z/Y plan Click on "Wa...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8597

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"StackTrace at wall creation","articleBody":"### Bug Description\n\nGot this bug with BonsaiBIM 0.8.5 and 0.8.6-alpha260713 on Ubuntu 24.0 LTS and Blender 5.1.2.\n\nSteps:\n1. Create Project \n2. Click on X on gizmo coordinate to have Z/Y plan\n3. Click on \"Wall tool\" and \"Quick Create IfcWallType\"\n4. Then \"Add\", when moving mouse cursor to viewport, I got a popup with following stacktrace with BonsaiBIM 0.8.5:\n\n```\nos: Linux\nos_version: #35~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 19:30:42 UTC 2\npython_version: 3.13.9\narchitecture: ('64bit', 'ELF')\nmachine: x86_64\nprocessor: x86_64\nblender_version: 5.1.2\nbonsai_version: 0.8.5\nbonsai_commit_hash: None\nbonsai_commit_date: None\nbonsai_git_branch: None\nlast_actions: \n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 39, \"Name\": \"My Storey\"}}\n# operator: BIM_OT_add_default_type\n# operator: BIM_OT_add_element\n# ifcopenshell.api: root.create_entity\n>>> {\"ifc_class\": \"IfcWallType\", \"predefined_type\": \"SOLIDWALL\", \"name\": \"Unnamed\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: material.add_material\n>>> {\"name\": \"Unknown\"}\n# ifcopenshell.api: material.assign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 63, \"Name\": \"Unnamed\"}], \"type\": \"IfcMaterialLayerSet\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: material.add_layer\n>>> {\"layer_set\": {\"cast_type\": \"entity_instance\", \"value\": 65, \"Name\": null}, \"material\": {\"cast_type\": \"entity_instance\", \"value\": 64, \"Name\": \"Unknown\"}}\n# ifcopenshell.api: pset.add_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 63, \"Name\": \"Unnamed\"}, \"name\": \"EPset_Parametric\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.assign_pset\n>>> {}\n# ifcopenshell.api: pset.edit_pset\n>>> {\"pset\": {\"cast_type\": \"entity_instance\", \"value\": 68, \"Name\": \"EPset_Parametric\"}, \"properties\": \"{'LayerSetDirection': 'AXIS2'}\"}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 63, \"Name\": \"Unnamed\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}\n# operator: BIM_OT_hotkey\n# operator: BIM_OT_draw_polyline_wall\n# operator: BIM_OT_draw_polyline_wall\n# operator: BIM_OT_draw_polyline_wall\n# operator: BIM_OT_draw_polyline_wall\n# operator: BIM_OT_draw_polyline_wall\nlast_error: Traceback (most recent call last):\n  File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/ifc.py\", line 527, in execute_ifc_operator\n    result = getattr(operator, \"_modal\")(context, event)\n  File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/model/wall.py\", line 694, in _modal\n    self.handle_mouse_move(context, event, should_round=True)\n    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/model/polyline.py\", line 417, in handle_mouse_move\n    tool.Polyline.calculate_distance_and_angle(\n    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n        context, self.input_ui, self.tool_state, should_round=should_round\n        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n    )\n    ^\n  File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/tool/polyline.py\", line 193, in calculate_distance_and_angle\n    angle = angle_snap * round(angle / angle_snap) if distance \u003c angle_round_threshold else angle\n                                                                 ^^^^^^^^^^^^^^^^^^^^^\nUnboundLocalError: cannot access local variable 'angle_round_threshold' where it is not associated with a value\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: No IFC loaded\nifc_is_dirty: N/A\nifc: Unsaved\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.5\noriginating_system: IfcOpenShell 0.8.5\n```\n\nWith 0.8.6-alpha260713 I got:\n\n```\n03:52.129  bpy.rna          | ERROR Python script error in BIM_OT_draw_polyline_wall.modal\n03:52.129  operator         | ERROR Python: Traceback (most recent call last):\n                            |   File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/model/wall.py\", line 1068, in modal\n                            |     return IfcStore.execute_ifc_operator(self, context, event, method=\"MODAL\")\n                            |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                            |   File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/ifc.py\", line 566, in execute_ifc_operator\n                            |     result = getattr(operator, \"_modal\")(context, event)\n                            |   File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/model/wall.py\", line 1110, in _modal\n                            |     self.handle_mouse_move(context, event, should_round=True)\n                            |     ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                            |   File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/model/polyline.py\", line 418, in handle_mouse_move\n                            |     tool.Polyline.calculate_distance_and_angle(\n                            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n                            |         context, self.input_ui, self.tool_state, should_round=should_round\n                            |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                            |     )\n                            |     ^\n                            |   File \"/home/esteban-dugueperoux/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/tool/polyline.py\", line 193, in calculate_distance_and_angle\n                            |     angle = angle_snap * round(angle / angle_snap) if distance \u003c angle_round_threshold else angle\n                            |                                                                  ^^^^^^^^^^^^^^^^^^^^^\n                            | UnboundLocalError: cannot access local variable 'angle_round_threshold' where it is not associated with a value\n```\n\nI don't have this stacktrace using others coordinates plans.\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/EstebanDugueperoux2","@type":"Person","name":"EstebanDugueperoux2"},"datePublished":"2026-07-13T17:58:45Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8597"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:45e2d3ac-312a-f0af-db6a-e7a7ef07a6a6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2BA:38D535:2902C:37559:6B04C0D9
html-safe-noncedd629145890b88efed1b80c8f58a0f2bef6b68f8b3e2ab370203052ca14ddc74
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkJBOjM4RDUzNToyOTAyQzozNzU1OTo2QjA0QzBEOSIsInZpc2l0b3JfaWQiOiIzMzI3ODUzOTgxMTUzNDExMjg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac33a586fef31305999551395c7b6e9517fdc28c385fe5678ca4bbb2fa0a538acf
hovercard-subject-tagissue:4876276879
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/8597/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b99ebc0453cb7d3e6bc74a8df4b98465cfe8a45ec8a12be8fddfb69a08817bbd/IfcOpenShell/IfcOpenShell/issues/8597
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b99ebc0453cb7d3e6bc74a8df4b98465cfe8a45ec8a12be8fddfb69a08817bbd/IfcOpenShell/IfcOpenShell/issues/8597
og:image:altBug Description Got this bug with BonsaiBIM 0.8.5 and 0.8.6-alpha260713 on Ubuntu 24.0 LTS and Blender 5.1.2. Steps: Create Project Click on X on gizmo coordinate to have Z/Y plan Click on "Wall to...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEstebanDugueperoux2
hostnamegithub.com
expected-hostnamegithub.com
None85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/8597#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F8597
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F8597
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8597
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8597
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8597
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests938 (938)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8597
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8597
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
#8901https://github.com/IfcOpenShell/IfcOpenShell/pull/8901
StackTrace at wall creationhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8597#top
#8901https://github.com/IfcOpenShell/IfcOpenShell/pull/8901
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/EstebanDugueperoux2
EstebanDugueperoux2https://github.com/EstebanDugueperoux2
on Jul 13, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8597#issue-4876276879
EstebanDugueperoux2https://github.com/EstebanDugueperoux2
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
on Jul 13, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8597#event-27923298049
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 24, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8597#issuecomment-5066651263
@EstebanDugueperoux2https://github.com/EstebanDugueperoux2
petruconduraruhttps://github.com/petruconduraru
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Jul 24, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8597#event-28420026175
Moulthttps://github.com/Moult
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8901https://github.com/IfcOpenShell/IfcOpenShell/pull/8901
on Jul 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8597#event-28466705541
FrogsInSpacehttps://github.com/FrogsInSpace
on Jul 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8597#event-28468440079
Bonsai: fix UnboundLocalError crash in polyline angle calculationhttps://github.com/FrogsInSpace/IfcOpenShell/commit/89523999b3b44e3d33c8a9ea29680e2e8d615275
https://docs.github.com/articles/closing-issues-via-commit-messages
8952399https://github.com/FrogsInSpace/IfcOpenShell/commit/89523999b3b44e3d33c8a9ea29680e2e8d615275
Moulthttps://github.com/Moult
on Jul 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8597#event-28476064278
Bonsai: fix UnboundLocalError crash in polyline angle calculationhttps://github.com/IfcOpenShell/IfcOpenShell/commit/0b7262215e7ff791e8804bc88a5b7c940a9316be
https://docs.github.com/articles/closing-issues-via-commit-messages
0b72622https://github.com/IfcOpenShell/IfcOpenShell/commit/0b7262215e7ff791e8804bc88a5b7c940a9316be
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8597
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8597
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.