Title: [bug] Error when removing presentation layer: "Instance xxx not found" · Issue #4934 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: [bug] Error when removing presentation layer: "Instance xxx not found" · Issue #4934 · IfcOpenShell/IfcOpenShell
X Title: [bug] Error when removing presentation layer: "Instance xxx not found" · Issue #4934 · IfcOpenShell/IfcOpenShell
Description: When attempting to remove a presentation layer in the Geometric Relationships section of the Geometry and Materials subtab, I encountered the following error: RuntimeError: Instance xxxx not found Steps to reproduce: Open the Geometry an...
Open Graph Description: When attempting to remove a presentation layer in the Geometric Relationships section of the Geometry and Materials subtab, I encountered the following error: RuntimeError: Instance xxxx not found ...
X Description: When attempting to remove a presentation layer in the Geometric Relationships section of the Geometry and Materials subtab, I encountered the following error: RuntimeError: Instance xxxx not found ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/4934
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[bug] Error when removing presentation layer: \"Instance xxx not found\"","articleBody":"When attempting to remove a presentation layer in the Geometric Relationships section of the Geometry and Materials subtab, I encountered the following error:\r\n\r\nRuntimeError: Instance xxxx not found\r\n\r\nSteps to reproduce:\r\n1. Open the Geometry and Materials subtab\r\n2. Navigate to the Geometric Relationships section\r\n3. Add presentation layer\r\n4. Click assign/disable/freeze icons in random sequence several times\r\n5. Attempt to remove a presentation layer\r\n\r\nEnvironment:\r\n- OS: Linux (Ubuntu)\r\n- Blender version: 4.1.1\r\n- BlenderBIM version: 0.0.240602\r\n- Python version: 3.11.7\r\n- Architecture: 64-bit\r\n- IFC schema: IFC4\r\n\r\nFull stacktrace:\r\n```\r\nos: Linux\r\nos_version: #117-Ubuntu SMP PREEMPT Tue Apr 30 10:12:40 UTC 2024\r\npython_version: 3.11.7\r\narchitecture: ('64bit', 'ELF')\r\nmachine: x86_64\r\nprocessor: x86_64\r\nblender_version: 4.1.1\r\nblenderbim_version: 0.0.240602\r\nlast_actions: \r\n# ifcopenshell.api: layer.edit_layer\r\n>>> {\"layer\": {\"cast_type\": \"entity_instance\", \"value\": 6946, \"Name\": \"Plan\"}, \"attributes\": \"{'Name': 'Plan', 'Description': None, 'Identifier': None}\"}\r\n# operator: BIM_OT_assign_presentation_layer\r\n# ifcopenshell.api: layer.assign_layer\r\n>>> {\"items\": [{\"cast_type\": \"entity_instance\", \"value\": 5394, \"Name\": null}], \"layer\": {\"cast_type\": \"entity_instance\", \"value\": 6946, \"Name\": \"Plan\"}}\r\n# operator: BIM_OT_unassign_presentation_layer\r\n# ifcopenshell.api: layer.unassign_layer\r\n>>> {\"items\": [{\"cast_type\": \"entity_instance\", \"value\": 5394, \"Name\": null}], \"layer\": {\"cast_type\": \"entity_instance\", \"value\": 6946, \"Name\": \"Plan\"}}\r\n# operator: BIM_OT_assign_presentation_layer\r\n# operator: BIM_OT_assign_presentation_layer\r\n# operator: BIM_OT_remove_presentation_layer\r\n# operator: BIM_OT_remove_presentation_layer\r\n# operator: BIM_OT_remove_presentation_layer\r\nlast_error: Traceback (most recent call last):\r\n File \"/home/john/.config/blender/4.1/scripts/addons/blenderbim/bim/ifc.py\", line 360, in execute_ifc_operator\r\n result = getattr(operator, \"_execute\")(context)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/john/.config/blender/4.1/scripts/addons/blenderbim/bim/module/layer/operator.py\", line 132, in _execute\r\n ifcopenshell.api.run(\"layer.remove_layer\", self.file, **{\"layer\": self.file.by_id(self.layer)})\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/john/.config/blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/file.py\", line 425, in by_id\r\n return self[id]\r\n ~~~~^^^^\r\n File \"/home/john/.config/blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/file.py\", line 410, in __getitem__\r\n return entity_instance(self.wrapped_data.by_id(key), self)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/john/.config/blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/ifcopenshell_wrapper.py\", line 3800, in by_id\r\n return _ifcopenshell_wrapper.file_by_id(self, id)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nRuntimeError: Instance #6,946 not found\r\n\r\nifc: testmore.ifc\r\nschema: IFC4\r\npreprocessor_version: IfcOpenShell v0.7.0-f7c03db75\r\noriginating_system: BlenderBIM 0.0.240402-bf9bddc\r\n```","author":{"url":"https://github.com/Vanuan","@type":"Person","name":"Vanuan"},"datePublished":"2024-06-27T14:26:23Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/4934"}
| 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:0ed044e4-3caa-2c85-ebc6-9f73fc75c429 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9392:16E0E3:68249:8D5EB:6B04AAFC |
| html-safe-nonce | 7c85a861f7492f47aec104dd42affb75d908af12f6509e6283081c3e551c6182 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzkyOjE2RTBFMzo2ODI0OTo4RDVFQjo2QjA0QUFGQyIsInZpc2l0b3JfaWQiOiI4OTA0MDExNzU2NzE2OTkzMjc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 37e23c0bab07f524ee3159337d7cd512f8ffb9fcdedde55615d98346dcfe582d |
| hovercard-subject-tag | issue:2378319382 |
| 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/4934/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e33c5c72ed1db34e51c953706627e6ea3c1fbe9e4dae7fcfa5eb3c48c5e701ec/IfcOpenShell/IfcOpenShell/issues/4934 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e33c5c72ed1db34e51c953706627e6ea3c1fbe9e4dae7fcfa5eb3c48c5e701ec/IfcOpenShell/IfcOpenShell/issues/4934 |
| og:image:alt | When attempting to remove a presentation layer in the Geometric Relationships section of the Geometry and Materials subtab, I encountered the following error: RuntimeError: Instance xxxx not found ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Vanuan |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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