Title: v0.8.0 - created shape materials attribute is inaccessible / has a memory leak · Issue #4833 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: v0.8.0 - created shape materials attribute is inaccessible / has a memory leak · Issue #4833 · IfcOpenShell/IfcOpenShell
X Title: v0.8.0 - created shape materials attribute is inaccessible / has a memory leak · Issue #4833 · IfcOpenShell/IfcOpenShell
Description: Have an issue trying to get shape's materials in v0.8.0, see example below (used file is - cube_test.ifc.txt). Build is from IfcOpenBot@90ae709 @aothms can you please take a look? import ifcopenshell import ifcopenshell.geom path = r"cub...
Open Graph Description: Have an issue trying to get shape's materials in v0.8.0, see example below (used file is - cube_test.ifc.txt). Build is from IfcOpenBot@90ae709 @aothms can you please take a look? import ifcopenshe...
X Description: Have an issue trying to get shape's materials in v0.8.0, see example below (used file is - cube_test.ifc.txt). Build is from IfcOpenBot@90ae709 @aothms can you please take a look? import ifcope...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/4833
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"v0.8.0 - created shape materials attribute is inaccessible / has a memory leak","articleBody":"Have an issue trying to get shape's materials in v0.8.0, see example below (used file is - [cube_test.ifc.txt](https://github.com/user-attachments/files/15744266/cube_test.ifc.txt)). Build is from https://github.com/IfcOpenBot/IfcOpenShell/commit/90ae7091563348c42623220ea914c42d70485c03\r\n\r\n@aothms can you please take a look?\r\n\r\n```python\r\nimport ifcopenshell\r\nimport ifcopenshell.geom\r\n\r\npath = r\"cube_test.ifc\"\r\nifc_file = ifcopenshell.open(path)\r\n\r\nsettings = ifcopenshell.geom.settings()\r\nelement = ifc_file.by_id(100)\r\nshape = ifcopenshell.geom.create_shape(settings, element)\r\n# \u003cifcopenshell.ifcopenshell_wrapper.Triangulation; proxy of \u003cSwig Object of type 'IfcGeom::Representation::Triangulation *' at 0x000001A893AB8930> >\r\nprint(shape)\r\n# (\u003cSwig Object of type 'ifcopenshell::geometry::taxonomy::style *' at 0x0000015658A189F0>,)\r\n# swig/python detected a memory leak of type 'ifcopenshell::geometry::taxonomy::style *', no destructor found.\r\nprint(shape.materials)\r\n# Traceback (most recent call last):\r\n# File \"test.py\", line 16, in \u003cmodule>\r\n# print([m.instance_id() for m in shape.materials])\r\n# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n# File \"test.py\", line 16, in \u003clistcomp>\r\n# print([m.instance_id() for m in shape.materials])\r\n# ^^^^^^^^^^^^^\r\n# AttributeError: 'SwigPyObject' object has no attribute 'instance_id'\r\nprint([m.instance_id() for m in shape.materials])\r\n```\r\n\r\n\r\n\r\n#4832","author":{"url":"https://github.com/Andrej730","@type":"Person","name":"Andrej730"},"datePublished":"2024-06-07T19:54:41Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/4833"}
| 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:2d5dfc13-33c4-17a1-ac05-bc75aa5c381d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D9C:2D1760:A5C7:D5FD:6B047CAB |
| html-safe-nonce | 0125c081f846a939ee721ae88be02aad7b92b85cf45b32d507c754d7928a8b74 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDlDOjJEMTc2MDpBNUM3OkQ1RkQ6NkIwNDdDQUIiLCJ2aXNpdG9yX2lkIjoiODc2ODA2ODkyMDc0MjgwNDY1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b948991e0e01d1ec810f753127794b093834e2c9e922a79db994609e2b851276 |
| hovercard-subject-tag | issue:2341074911 |
| 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/4833/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df2069581a311659b4f72a0144fc2da67099d643c862ba0cfdde71c0bae20259/IfcOpenShell/IfcOpenShell/issues/4833 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df2069581a311659b4f72a0144fc2da67099d643c862ba0cfdde71c0bae20259/IfcOpenShell/IfcOpenShell/issues/4833 |
| og:image:alt | Have an issue trying to get shape's materials in v0.8.0, see example below (used file is - cube_test.ifc.txt). Build is from IfcOpenBot@90ae709 @aothms can you please take a look? import ifcopenshe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Andrej730 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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