René's URL Explorer Experiment


Title: Bonsai: guard stale ifc_definition_id lookups that abort wall split and related flows by petruconduraru · Pull Request #8906 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: guard stale ifc_definition_id lookups that abort wall split and related flows by petruconduraru · Pull Request #8906 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: guard stale ifc_definition_id lookups that abort wall split and related flows by petruconduraru · Pull Request #8906 · IfcOpenShell/IfcOpenShell

Description: Fixes #7909. tool.Root.get_object_representation called by_id on a mesh's cached ifc_definition_id with no guard, so a duplicated wall whose representation was already removed earlier in the same operation raised RuntimeError and aborted the whole split (DumbWallJoiner.split -> duplicate_wall -> core.root.copy_class). This adds the same try/except RuntimeError: return None guard used by commit 5f1efef (#8177) for by_guid/by_id lookups. This also completes that #8177 by_id guard sweep for the remaining sites exposed to the same stale-id risk: tool.Root.recreate_decompositions and the identical tool.Duplicate counterpart (both iterate several objects sharing a decomposition and can invalidate one object's representation while reloading another's), tool.Geometry.is_boolean_operand, and tool.Model.apply_ifc_material_changes (whose own docstring notes it invalidates existing object data while looping over elements). Added regression tests confirming each guarded function returns the tolerant default instead of raising when the cached id no longer resolves. Generated with the assistance of an AI coding tool.

Open Graph Description: Fixes #7909. tool.Root.get_object_representation called by_id on a mesh's cached ifc_definition_id with no guard, so a duplicated wall whose representation was already removed earlier in the sa...

X Description: Fixes #7909. tool.Root.get_object_representation called by_id on a mesh's cached ifc_definition_id with no guard, so a duplicated wall whose representation was already removed earlier in th...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8906

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dd39ec38-ecda-d516-52ac-974b3d06de08
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9410:46A3B:49013F:646676:6B047044
html-safe-nonce08814a648bc50eb5fb96a8afd881a9ccc1c067dd7e245caf96cd0d15c5cad084
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDEwOjQ2QTNCOjQ5MDEzRjo2NDY2NzY6NkIwNDcwNDQiLCJ2aXNpdG9yX2lkIjoiMzk4MDc5NTIxNjA5NjY4NjE0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc3d75649590ed4cd99bd8cfd37d13af09f9c1cb08cda70cae24526676d57afcb
hovercard-subject-tagpull_request:4123178971
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
twitter:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
og:image:altFixes #7909. tool.Root.get_object_representation called by_id on a mesh's cached ifc_definition_id with no guard, so a duplicated wall whose representation was already removed earlier in the sa...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecfb5f24c6e01d85f70804652a5107e5cac03a161
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8906%2Ffiles
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%2Fpull%2F8906%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
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 requests937 (937)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
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
petruconduraruhttps://github.com/petruconduraru
IfcOpenShell:v0.9.0https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.9.0
BIMvoice:7909-guard-stale-byidhttps://github.com/BIMvoice/IfcOpenShell/tree/7909-guard-stale-byid
Conversation 1 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906
Commits 9 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
Bonsai: guard stale ifc_definition_id lookups that abort wall split and related flows https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#top
Show all changes 9 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
338c3fc Bonsai: guard stale ifc_definition_id lookups that abort wall split a… petruconduraru Jul 24, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/338c3fcb2a47a46b9e551219fca6d7b91abfda4e
1025b97 Bonsai: also guard get_data_representation stale id lookup (#8177 sweep) petruconduraru Jul 24, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/1025b9736b0290274fa675f7357528ad1f01f945
d344faf Merge origin/v0.9.0 into mig16/8906 petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/d344faf3a3841b9b448f4d1460880bcdac503dc5
996ed8a Drop comments from stale id tests petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/996ed8a76d12538f7f3b5e7bcf5d2dfa376ffe8d
f7c655e Place stale id material test earlier in file petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/f7c655eddabd31448cece3291c01eb462415c80b
fac9267 Move stale id material test to avoid overlap petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/fac92679a5941a8dd717d8dc4e4b287d11f32537
cfaa21a Move stale id material test again petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/cfaa21ae1c262a5a220e5a2162675ae02b7d8532
aa921ae Move stale id material test before its peers petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/aa921aee020c065fcecb10229e4e2ac88e2c2971
b75d032 Move stale id material test to its own file petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/commits/b75d03235be8cb4c831e2ccf3825d66eec5ba1ea
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
duplicate.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-a2d76388a7f14c76dad73e462435124800007c6b85916ac4f3dbb691026f2351
geometry.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-2addd2e8bbdd6b39d16089e49ff826ec21f7bea9e397f1ad0604fca42abea918
model.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
root.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-af56fed3586cdf9cdffd600e56f587f3330aba5541d225d2e79ff665f5e4fceb
test_geometry.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-42520acecf8a50344d89cc181dfb510bc93de69f3fd403166cc6e08f37873242
test_model_stale_ifc_definition_id.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-2ea27222442b25a381feae45bb478a4b8e951f9fe218c8d528ba19cd518d02fa
test_root.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-424fdcf1cbe2dc0cf46c566d840aa1d720af8c064eb43b0550f9ee91da87d83b
src/bonsai/bonsai/tool/duplicate.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-a2d76388a7f14c76dad73e462435124800007c6b85916ac4f3dbb691026f2351
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/b75d03235be8cb4c831e2ccf3825d66eec5ba1ea/src/bonsai/bonsai/tool/duplicate.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-a2d76388a7f14c76dad73e462435124800007c6b85916ac4f3dbb691026f2351
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-a2d76388a7f14c76dad73e462435124800007c6b85916ac4f3dbb691026f2351
src/bonsai/bonsai/tool/geometry.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-2addd2e8bbdd6b39d16089e49ff826ec21f7bea9e397f1ad0604fca42abea918
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/b75d03235be8cb4c831e2ccf3825d66eec5ba1ea/src/bonsai/bonsai/tool/geometry.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-2addd2e8bbdd6b39d16089e49ff826ec21f7bea9e397f1ad0604fca42abea918
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-2addd2e8bbdd6b39d16089e49ff826ec21f7bea9e397f1ad0604fca42abea918
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-2addd2e8bbdd6b39d16089e49ff826ec21f7bea9e397f1ad0604fca42abea918
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-2addd2e8bbdd6b39d16089e49ff826ec21f7bea9e397f1ad0604fca42abea918
src/bonsai/bonsai/tool/model.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/b75d03235be8cb4c831e2ccf3825d66eec5ba1ea/src/bonsai/bonsai/tool/model.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
src/bonsai/bonsai/tool/root.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-af56fed3586cdf9cdffd600e56f587f3330aba5541d225d2e79ff665f5e4fceb
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/b75d03235be8cb4c831e2ccf3825d66eec5ba1ea/src/bonsai/bonsai/tool/root.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-af56fed3586cdf9cdffd600e56f587f3330aba5541d225d2e79ff665f5e4fceb
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-af56fed3586cdf9cdffd600e56f587f3330aba5541d225d2e79ff665f5e4fceb
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-af56fed3586cdf9cdffd600e56f587f3330aba5541d225d2e79ff665f5e4fceb
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-af56fed3586cdf9cdffd600e56f587f3330aba5541d225d2e79ff665f5e4fceb
src/bonsai/test/tool/test_geometry.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-42520acecf8a50344d89cc181dfb510bc93de69f3fd403166cc6e08f37873242
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/b75d03235be8cb4c831e2ccf3825d66eec5ba1ea/src/bonsai/test/tool/test_geometry.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-42520acecf8a50344d89cc181dfb510bc93de69f3fd403166cc6e08f37873242
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-42520acecf8a50344d89cc181dfb510bc93de69f3fd403166cc6e08f37873242
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-42520acecf8a50344d89cc181dfb510bc93de69f3fd403166cc6e08f37873242
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-42520acecf8a50344d89cc181dfb510bc93de69f3fd403166cc6e08f37873242
src/bonsai/test/tool/test_model_stale_ifc_definition_id.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-2ea27222442b25a381feae45bb478a4b8e951f9fe218c8d528ba19cd518d02fa
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/b75d03235be8cb4c831e2ccf3825d66eec5ba1ea/src/bonsai/test/tool/test_model_stale_ifc_definition_id.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/{{ revealButtonHref }}
src/bonsai/test/tool/test_root.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-424fdcf1cbe2dc0cf46c566d840aa1d720af8c064eb43b0550f9ee91da87d83b
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/b75d03235be8cb4c831e2ccf3825d66eec5ba1ea/src/bonsai/test/tool/test_root.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-424fdcf1cbe2dc0cf46c566d840aa1d720af8c064eb43b0550f9ee91da87d83b
https://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files#diff-424fdcf1cbe2dc0cf46c566d840aa1d720af8c064eb43b0550f9ee91da87d83b
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8906/files
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.