Title: `ReferenceError: StructRNA of type Object has been removed` when invoking Measure tool · Issue #8119 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: `ReferenceError: StructRNA of type Object has been removed` when invoking Measure tool · Issue #8119 · IfcOpenShell/IfcOpenShell
X Title: `ReferenceError: StructRNA of type Object has been removed` when invoking Measure tool · Issue #8119 · IfcOpenShell/IfcOpenShell
Description: Problem: Raycast.snap_objs is a class-level cache of SnapObj instances, each holding a direct Python reference to a bpy.types.Object. When Blender internally frees an object (e.g. a temporary/evaluated mesh created during a prior operati...
Open Graph Description: Problem: Raycast.snap_objs is a class-level cache of SnapObj instances, each holding a direct Python reference to a bpy.types.Object. When Blender internally frees an object (e.g. a temporary/evalu...
X Description: Problem: Raycast.snap_objs is a class-level cache of SnapObj instances, each holding a direct Python reference to a bpy.types.Object. When Blender internally frees an object (e.g. a temporary/evalu...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8119
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ReferenceError: StructRNA of type Object has been removed` when invoking Measure tool","articleBody":"\n\n**Problem:** `Raycast.snap_objs` is a class-level cache of `SnapObj` instances, each holding a direct Python reference to a `bpy.types.Object`. When Blender internally frees an object (e.g. a temporary/evaluated mesh created during a prior operation), the underlying C-side data is gone but the Python wrapper still lives in the cache.\n\nThe next time the Measure tool is invoked (S+M), `create_snap_obj` iterates the cache and accesses `snap_obj.obj.name` on the dead wrapper, raising:\n\n```\nReferenceError: StructRNA of type Object has been removed\n\n```\n\n**Full traceback location:** `raycast.py` → `create_snap_obj` → line 892 (`if obj.name == snap_obj.obj.name`)\n\n**Fix:** Evict stale cache entries at the start of `create_snap_obj` by catching `ReferenceError` on `.obj.name` access before the search loop runs.\n\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-05-29T12:49:05Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8119"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d183a484-a1f6-8ad1-185f-468725f30bf9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D926:1C13F:309C8F:42B040:6B04BA15 |
| html-safe-nonce | 7216354fdeffc844de70edf80964ef67eef45eabd499d4c36d07c4d621ef4701 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTI2OjFDMTNGOjMwOUM4Rjo0MkIwNDA6NkIwNEJBMTUiLCJ2aXNpdG9yX2lkIjoiNDQzMDkyOTU4MTM4MTU2NDk0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 146575912559ec4521ca7ff6854931ade5a2cad5ba738f0b2ed2faff5b7e5a70 |
| hovercard-subject-tag | issue:4548563633 |
| 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/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/8119/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8030e8b0ce2766df9cf2fa0979531f83f01e670d97fdebdd83cdd6580a7518c4/IfcOpenShell/IfcOpenShell/issues/8119 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8030e8b0ce2766df9cf2fa0979531f83f01e670d97fdebdd83cdd6580a7518c4/IfcOpenShell/IfcOpenShell/issues/8119 |
| og:image:alt | Problem: Raycast.snap_objs is a class-level cache of SnapObj instances, each holding a direct Python reference to a bpy.types.Object. When Blender internally frees an object (e.g. a temporary/evalu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theoryshaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| 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