René's URL Explorer Experiment


Title: Measure tool crashes with ReferenceError: StructRNA of type Object has been removed · Issue #8207 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Measure tool crashes with ReferenceError: StructRNA of type Object has been removed · Issue #8207 · IfcOpenShell/IfcOpenShell

X Title: Measure tool crashes with ReferenceError: StructRNA of type Object has been removed · Issue #8207 · IfcOpenShell/IfcOpenShell

Description: Bug Description Describe the bug Activating the measure tool (S M hotkey) throws a ReferenceError and aborts when the snap cache holds a reference to a Blender object that has since been deleted. The snapping system caches SnapObj entrie...

Open Graph Description: Bug Description Describe the bug Activating the measure tool (S M hotkey) throws a ReferenceError and aborts when the snap cache holds a reference to a Blender object that has since been deleted. T...

X Description: Bug Description Describe the bug Activating the measure tool (S M hotkey) throws a ReferenceError and aborts when the snap cache holds a reference to a Blender object that has since been deleted. T...

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

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":"Measure tool crashes with ReferenceError: StructRNA of type Object has been removed","articleBody":"### Bug Description\n\n\n\nDescribe the bug\n\nActivating the measure tool (S M hotkey) throws a ReferenceError and aborts when the snap cache holds a reference to a Blender object that has since been deleted. The snapping system caches SnapObj entries that each keep a direct reference to a Blender object; once that object is deleted, the next snap pass accesses snap_obj.obj.name on the freed object and crashes.\n\nTo Reproduce\n\nOpen a model and use the measure tool / polyline snapping so that objects get cached for snapping.\nDelete one of the objects that was previously hovered/snapped to.\nInvoke the measure tool again (S M) and move the mouse over the viewport.\nCrash.\nExpected behavior\n\nDeleted objects are silently dropped from the snap cache and snapping continues without error.\n\nConsole output\n\n\nFile \".../bonsai/tool/raycast.py\", line 973, in create_snap_obj\n    if obj.name == snap_obj.obj.name:\n                   ^^^^^^^^^^^^^^^^^\nReferenceError: StructRNA of type Object has been removed\n(Full traceback originates from workspace.py → measure_tool → polyline.invoke → Snap.detect_snapping_points → Raycast.filter_objects_to_raycast → Raycast.create_snap_obj.)\n\nRoot cause\n\nRaycast.create_snap_obj iterates cls.snap_objs and compares snap_obj.obj.name without validating that the cached object still exists. A deleted object's StructRNA is invalidated, so any attribute access raises ReferenceError.\n\n\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nPython: Traceback (most recent call last):\n  File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\workspace.py\", line 109, in execute\n    getattr(self, f\"hotkey_{self.hotkey}\")()\n  File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\workspace.py\", line 135, in hotkey_S_M\n    bpy.ops.bim.measure_tool(\"INVOKE_DEFAULT\", measure_type=measure_type)\n  File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py\", line 107, in __call__\n    ret = _op_call(self.idname_py(), kw, C_exec, C_undo)\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n  File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 3148, in invoke\n    super().invoke(context, event)\n  File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\polyline.py\", line 1000, in invoke\n    self._init_snapping_points(context, event)\n  File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\polyline.py\", line 1012, in _init_snapping_points\n    detected_snaps = tool.Snap.detect_snapping_points(context, event, self.objs_2d_bbox, self.tool_state)\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\snap.py\", line 390, in detect_snapping_points\n    objs_to_raycast = tool.Raycast.filter_objects_to_raycast(context, event, objs_2d_bbox)\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\raycast.py\", line 744, in filter_objects_to_raycast\n    snap_obj = cls.create_snap_obj(obj)\n               ^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\raycast.py\", line 973, in create_snap_obj\n    if obj.name == snap_obj.obj.name:\n                   ^^^^^^^^^^^^^^^^^\nReferenceError: StructRNA of type Object has been removed\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py:107\n```","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-06-25T16:48:22Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8207"}

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:51339d6b-e717-f34d-bb58-a9c8ffc1b7f6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE48A:13E066:5D699:7BA19:6B04AEB0
html-safe-nonceaefc6936c4d1ed50621bca052844a5da74da701212d055557fe2486042ca90a9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDhBOjEzRTA2Njo1RDY5OTo3QkExOTo2QjA0QUVCMCIsInZpc2l0b3JfaWQiOiIzMzI4MjEzMjIwODA3OTc4NjcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfa6378645b6ff29832c330db4c915af608ff412dc37a0b4b9173ad43b35dd228
hovercard-subject-tagissue:4745777394
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/8207/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ba895c04032291008646bd21ebb76058a8fbfcd8857cacceb669e5a0398996cf/IfcOpenShell/IfcOpenShell/issues/8207
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ba895c04032291008646bd21ebb76058a8fbfcd8857cacceb669e5a0398996cf/IfcOpenShell/IfcOpenShell/issues/8207
og:image:altBug Description Describe the bug Activating the measure tool (S M hotkey) throws a ReferenceError and aborts when the snap cache holds a reference to a Blender object that has since been deleted. T...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametheoryshaw
hostnamegithub.com
expected-hostnamegithub.com
Nonef1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1
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
releaseffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/8207#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F8207
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%2F8207
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/8207
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8207
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8207
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 requests940 (940)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/8207
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8207
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
Measure tool crashes with ReferenceError: StructRNA of type Object has been removedhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8207#top
https://github.com/brunoperdigao
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/theoryshaw
theoryshawhttps://github.com/theoryshaw
on Jun 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#issue-4745777394
theoryshawhttps://github.com/theoryshaw
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
on Jun 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#event-27211156416
theoryshawhttps://github.com/theoryshaw
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Jun 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#event-27211172201
https://github.com/theoryshaw
theoryshawhttps://github.com/theoryshaw
on Jun 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#issuecomment-4802076954
#8206https://github.com/IfcOpenShell/IfcOpenShell/pull/8206
@brunoperdigaohttps://github.com/brunoperdigao
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#issuecomment-4889641093
#8301https://github.com/IfcOpenShell/IfcOpenShell/pull/8301
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#issuecomment-4889685835
#8119https://github.com/IfcOpenShell/IfcOpenShell/issues/8119
@theoryshawhttps://github.com/theoryshaw
#8121https://github.com/IfcOpenShell/IfcOpenShell/pull/8121
#8301https://github.com/IfcOpenShell/IfcOpenShell/pull/8301
#8119https://github.com/IfcOpenShell/IfcOpenShell/issues/8119
#8121https://github.com/IfcOpenShell/IfcOpenShell/pull/8121
petruconduraruhttps://github.com/petruconduraru
on Jul 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#event-27604985145
Bonsai: drop deleted objects from the snap cache IfcOpenShell#8207https://github.com/BIMvoice/IfcOpenShell/commit/0439d26afe67ecae1a48b68fcac0057d629b08a9
IfcOpenShell#8207https://github.com/IfcOpenShell/IfcOpenShell/issues/8207
0439d26https://github.com/BIMvoice/IfcOpenShell/commit/0439d26afe67ecae1a48b68fcac0057d629b08a9
https://github.com/theoryshaw
theoryshawhttps://github.com/theoryshaw
on Jul 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#issuecomment-4893315488
@BIMvoicehttps://github.com/BIMvoice
#8206https://github.com/IfcOpenShell/IfcOpenShell/pull/8206
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#issuecomment-4893431732
@theoryshawhttps://github.com/theoryshaw
https://github.com/theoryshaw
theoryshawhttps://github.com/theoryshaw
on Jul 7, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#issuecomment-4903490188
@BIMvoicehttps://github.com/BIMvoice
brunoperdigaohttps://github.com/brunoperdigao
on Jul 16, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#event-28043790158
https://github.com/brunoperdigao
brunoperdigaohttps://github.com/brunoperdigao
on Oct 3, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#issuecomment-5964123799
#9337https://github.com/IfcOpenShell/IfcOpenShell/pull/9337
brunoperdigaohttps://github.com/brunoperdigao
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 3, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8207#event-32376431736
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8207
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8207
brunoperdigaohttps://github.com/brunoperdigao
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
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.