Title: seg fault on ifcopenshell.geom.create_shape(settings, product) · Issue #744 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: seg fault on ifcopenshell.geom.create_shape(settings, product) · Issue #744 · IfcOpenShell/IfcOpenShell
X Title: seg fault on ifcopenshell.geom.create_shape(settings, product) · Issue #744 · IfcOpenShell/IfcOpenShell
Description: I got hands on a huge ifcfile (ca 100 MB) exported from Cadmatic. I have never had files from them before. A lot of products make ifcopenshell ends up in a segmentation fault on ifcopenshell.geom.create_shape(settings, product) As a resu...
Open Graph Description: I got hands on a huge ifcfile (ca 100 MB) exported from Cadmatic. I have never had files from them before. A lot of products make ifcopenshell ends up in a segmentation fault on ifcopenshell.geom.c...
X Description: I got hands on a huge ifcfile (ca 100 MB) exported from Cadmatic. I have never had files from them before. A lot of products make ifcopenshell ends up in a segmentation fault on ifcopenshell.geom.c...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/744
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"seg fault on ifcopenshell.geom.create_shape(settings, product) ","articleBody":"I got hands on a huge ifcfile (ca 100 MB) exported from Cadmatic. I have never had files from them before. A lot of products make ifcopenshell ends up in a segmentation fault on ifcopenshell.geom.create_shape(settings, product) \r\n\r\nAs a result of https://github.com/IfcOpenShell/IfcOpenShell/issues/564 I was able to extract just one of the results in a separate IFC file. I will go for a PR on files repo (https://github.com/IfcOpenShell/files/pull/2) and post the file link here afterwards. \r\n\r\ncode to reproduce the crash:\r\n```\r\nimport ifcopenshell\r\nfrom ifcopenshell import geom\r\nsettings = ifcopenshell.geom.settings()\r\nsettings.set(settings.USE_BREP_DATA,True)\r\nsettings.set(settings.SEW_SHELLS,True)\r\nsettings.set(settings.USE_WORLD_COORDS,True)\r\n\r\nifcfile = 'C:/Users/BHA/Downloads/743--segfault-on-geometry.ifc'\r\nf = ifcopenshell.open(ifcfile)\r\n\r\np = f[1944]\r\nprint(p)\r\ncr = ifcopenshell.geom.create_shape(settings, p)\r\n\r\n```\r\n\r\n\r\nBTW: ifc++ gave the following warning\r\n`Warning: triangulateLoops, face_loops.size() == 0, IFC entity: #1941=IfcExtrudedAreaSolid`\r\n\r\n\r\nlink to topic on FreeCAD forum\r\nhttps://forum.freecadweb.org/viewtopic.php?f=39&t=41600&p=354486#p354483\r\n\r\ncheers bernd\r\n","author":{"url":"https://github.com/berndhahnebach","@type":"Person","name":"berndhahnebach"},"datePublished":"2019-12-17T10:52:33Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/744"}
| 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:54a9580d-18c2-f081-3c5f-3542a9c8d82c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 953E:2A579A:570B7B:7AB9A8:6B04771E |
| html-safe-nonce | c5877dfda68d879ec2dea1a978680927ff2ccc00a3bc5b5b4591d22c7875188a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTNFOjJBNTc5QTo1NzBCN0I6N0FCOUE4OjZCMDQ3NzFFIiwidmlzaXRvcl9pZCI6IjU1NDExODMwMTY4NTQxMjQzMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4dc85919d9ca280d0b68cdacd8d63eee490ca55f2640cdb9af6fb928aa8e516b |
| hovercard-subject-tag | issue:538988937 |
| 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/744/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9633b32a145cec29695b177763156821419ecc0f2801c9136ddc64ec9e47aeb5/IfcOpenShell/IfcOpenShell/issues/744 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9633b32a145cec29695b177763156821419ecc0f2801c9136ddc64ec9e47aeb5/IfcOpenShell/IfcOpenShell/issues/744 |
| og:image:alt | I got hands on a huge ifcfile (ca 100 MB) exported from Cadmatic. I have never had files from them before. A lot of products make ifcopenshell ends up in a segmentation fault on ifcopenshell.geom.c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | berndhahnebach |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| 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