Title: using remove_pset causes a segmentation fault · Issue #7455 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: using remove_pset causes a segmentation fault · Issue #7455 · IfcOpenShell/IfcOpenShell
X Title: using remove_pset causes a segmentation fault · Issue #7455 · IfcOpenShell/IfcOpenShell
Description: Bug Description Hi, I am trying to remove a pset with ifc.openshell.api.pset.remove_pset, when I do the python interpreter/kernel crashes, I guess as a consequence of a segmentation fault, possibly due to a dangling pointer issue. Here a...
Open Graph Description: Bug Description Hi, I am trying to remove a pset with ifc.openshell.api.pset.remove_pset, when I do the python interpreter/kernel crashes, I guess as a consequence of a segmentation fault, possibly...
X Description: Bug Description Hi, I am trying to remove a pset with ifc.openshell.api.pset.remove_pset, when I do the python interpreter/kernel crashes, I guess as a consequence of a segmentation fault, possibly...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7455
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"using remove_pset causes a segmentation fault","articleBody":"### Bug Description\n\nHi,\nI am trying to remove a pset with `ifc.openshell.api.pset.remove_pset`, when I do the python interpreter/kernel crashes, I guess as a consequence of a segmentation fault, possibly due to a dangling pointer issue.\n\nHere are the minimal steps to reproduce the issue, from [https://docs.ifcopenshell.org/autoapi/ifcopenshell/api/pset/remove_pset/index.html#module-ifcopenshell.api.pset.remove_pset](url)\n\n```Python\nimport ifcopenshell\nimport ifcopenshell.api.root\nimport ifcopenshell.api.pset\n\nmodel = ifcopenshell.file()\n\n#--- the following snippet is taken from the documentation\n\nwall_type = ifcopenshell.api.root.create_entity(model, ifc_class=\"IfcWallType\")\npset = ifcopenshell.api.pset.add_pset(model, product=wall_type, name=\"Pset_WallCommon\")\n\nifcopenshell.api.pset.remove_pset(model, product=wall_type, pset=pset)\n```\n\nI am using conda installed ifcopenshell 0.8.4 from conda-forge.\nI had the same problem with 0.8.5 alpha from the ifcopenshell channel.\nWorking on MacOS Sonoma on an M3 ARM cpu.\n\nPS: by the way, it will be also useful to be able to have something like get_pset to retrieve an existing pset as an entity, rather than a dictionary\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/nlosacco","@type":"Person","name":"nlosacco"},"datePublished":"2025-12-07T11:28:03Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7455"}
| 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:837fb243-4a2f-c9a3-1d55-7ce42ef125f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9106:3B5D6F:5883A3:7B8EA1:6B048196 |
| html-safe-nonce | 44d225b3d4eb6172ca64872e6b2ce179d2e94070a0456869b24ea29800882c2e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTA2OjNCNUQ2Rjo1ODgzQTM6N0I4RUExOjZCMDQ4MTk2IiwidmlzaXRvcl9pZCI6IjQ1NzMwNzczNjA5MDMyMjU3NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1a81a65b59aa3dc239b3e01ba2c64e1a37dd2ec725756c5ac43d519409ff8fda |
| hovercard-subject-tag | issue:3703390362 |
| 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/7455/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb3d02ab024dc00a13861574f89f0b491659e3536e670a007ccfc4a64a997809/IfcOpenShell/IfcOpenShell/issues/7455 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb3d02ab024dc00a13861574f89f0b491659e3536e670a007ccfc4a64a997809/IfcOpenShell/IfcOpenShell/issues/7455 |
| og:image:alt | Bug Description Hi, I am trying to remove a pset with ifc.openshell.api.pset.remove_pset, when I do the python interpreter/kernel crashes, I guess as a consequence of a segmentation fault, possibly... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nlosacco |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| ui-target | canary-1 |
| 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