René's URL Explorer Experiment


Title: Memory management bug in IfcOpenShell Python · Issue #1124 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Memory management bug in IfcOpenShell Python · Issue #1124 · IfcOpenShell/IfcOpenShell

X Title: Memory management bug in IfcOpenShell Python · Issue #1124 · IfcOpenShell/IfcOpenShell

Description: Hi folks, Thanks for your work on IfcOpenShell. I've been trying it out and have run into a strange bug which I can't figure out. For any IFC file I read, for every product within the file, the first two coordinates of the first vertex a...

Open Graph Description: Hi folks, Thanks for your work on IfcOpenShell. I've been trying it out and have run into a strange bug which I can't figure out. For any IFC file I read, for every product within the file, the fir...

X Description: Hi folks, Thanks for your work on IfcOpenShell. I've been trying it out and have run into a strange bug which I can't figure out. For any IFC file I read, for every product within the file,...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1124

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Memory management bug in IfcOpenShell Python","articleBody":"Hi folks,\r\n\r\nThanks for your work on IfcOpenShell. I've been trying it out and have run into a strange bug which I can't figure out.\r\n\r\nFor any IFC file I read, for every product within the file, the first two coordinates of the first vertex are some extremely small number. I believe they should be zero. The first few values in the faces array are invalid, but slightly differently invalid depending on the build:\r\n\r\nWhen building from GitHub: The first and third values for the first triangle face are some extremely large (clearly invalid) integer, typically on the order of 10^7.\r\nWhen using the Conda build: The first and third values in the faces array are either extremely large positive integers (10^7) or extremely large negative integers (-10^9). The second and fourth values in the faces array are a large integer (10^4) and are equal to each other.\r\n\r\nThese values are non-deterministic and change each time the Python script runs.\r\n\r\nAny idea what's going on here?\r\n\r\nHappy to help debug if you can provide instructions.\r\n\r\n### Code to reproduce\r\n\r\n```python\r\nimport ifcopenshell\r\nimport ifcopenshell.geom\r\n\r\nifc_file = ifcopenshell.open(\"some_file.ifc\")\r\nwalls = ifc_file.by_type(\"IfcWall\") # Same problem if this is changed to IfcProducts\r\nfor wall in walls:\r\n    shape = ifcopenshell.geom.create_shape(settings, wall).geometry\r\n    verts = shape.verts\r\n    faces = shape.faces    \r\n    print(verts) # (1.8579311e-316, 1.61328876e-316, 0.0, ... the rest is correct)\r\n    print(faces) # (41427728, 0, 32653328, ... the rest is correct)\r\n```\r\n\r\n\r\n### Environment\r\nUbuntu 20.04\r\n\r\n- Conda env (fresh environment)\r\n  - Python 3.7.8\r\n  - oce v0.18.3 build 3\r\n  - IfcOpenShell v0.6.0 build py37h0d10d40_3\r\n- System env\r\n  - Python 3.8.5\r\n  - required libs installed through `apt`\r\n  - built IfcOpenShell from source using the latest v0.6.0 branch","author":{"url":"https://github.com/dtip","@type":"Person","name":"dtip"},"datePublished":"2020-11-24T08:53:27Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1124"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ef33a1b1-93b1-fb51-5da1-f2346d614c49
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAAFA:D1D86:6B760E:92D642:6B0477AC
html-safe-nonced902730c7a02b31e19ac17efbe316956d829b248a8369d62aa6c6dca52027240
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUZBOkQxRDg2OjZCNzYwRTo5MkQ2NDI6NkIwNDc3QUMiLCJ2aXNpdG9yX2lkIjoiNzY0NDc3MzM4MzI4NDIyNTk2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8f4818c1e7fb879fdf649ebda5099bb46989b6133562cc4c061a52edfcf5c233
hovercard-subject-tagissue:749508146
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/1124/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09477e56d5dd32648a5e9590b7d27eb033fb92772afa19b72573ebc151d2a8fb/IfcOpenShell/IfcOpenShell/issues/1124
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09477e56d5dd32648a5e9590b7d27eb033fb92772afa19b72573ebc151d2a8fb/IfcOpenShell/IfcOpenShell/issues/1124
og:image:altHi folks, Thanks for your work on IfcOpenShell. I've been trying it out and have run into a strange bug which I can't figure out. For any IFC file I read, for every product within the file, the fir...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedtip
hostnamegithub.com
expected-hostnamegithub.com
None9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecf73f57448d52b3a7b619195e182b33d3b3454ca
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/1124#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F1124
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F1124
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1124
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1124
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1124
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests937 (937)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1124
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1124
#8691https://github.com/IfcOpenShell/IfcOpenShell/pull/8691
Memory management bug in IfcOpenShell Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1124#top
#8691https://github.com/IfcOpenShell/IfcOpenShell/pull/8691
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/dtip
dtiphttps://github.com/dtip
on Nov 24, 2020https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#issue-749508146
https://github.com/aothms
aothmshttps://github.com/aothms
on Nov 24, 2020https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#issuecomment-732760873
https://github.com/dtip
dtiphttps://github.com/dtip
on Nov 24, 2020https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#issuecomment-732773767
dtiphttps://github.com/dtip
on Nov 24, 2020https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-4031984300
https://github.com/aothms
aothmshttps://github.com/aothms
on Nov 24, 2020https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#issuecomment-732843209
https://stackoverflow.com/questions/15983008/prevent-nested-c-struct-from-being-deleted-when-parent-is-gcdhttps://stackoverflow.com/questions/15983008/prevent-nested-c-struct-from-being-deleted-when-parent-is-gcd
Moulthttps://github.com/Moult
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
2c5442ahttps://github.com/IfcOpenShell/IfcOpenShell/commit/2c5442acccc27f80bcc3a0c3e1619ac434585d32
on Aug 4, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-5108158248
https://github.com/dtip
dtiphttps://github.com/dtip
on Aug 6, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#issuecomment-894352446
@Moulthttps://github.com/Moult
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 7, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#issuecomment-894579364
Moulthttps://github.com/Moult
on Aug 7, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-5125221438
Moulthttps://github.com/Moult
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
on Feb 14, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-8511180595
https://github.com/arunkvijay
arunkvijayhttps://github.com/arunkvijay
on Feb 12, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#issuecomment-1938217217
thorstenlanghttps://github.com/thorstenlang
on Jan 16, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-15962865311
Fix IfcOpenShell#1124. Fix example and document quirk to prevent memo…https://github.com/thorstenlang/IfcOpenShell/commit/2c5442acccc27f80bcc3a0c3e1619ac434585d32
IfcOpenShell#1124https://github.com/IfcOpenShell/IfcOpenShell/issues/1124
https://docs.github.com/articles/closing-issues-via-commit-messages
2c5442ahttps://github.com/thorstenlang/IfcOpenShell/commit/2c5442acccc27f80bcc3a0c3e1619ac434585d32
petruconduraruhttps://github.com/petruconduraru
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Jul 17, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-28107810843
aothmshttps://github.com/aothms
on Jul 19, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-28175744513
ifcwrap: keep geometry's owning element alive to fix silent data corr…https://github.com/IfcOpenShell/IfcOpenShell/commit/824c1fc280c4c9a4c95a6be2dae08bc13ba9e462
824c1fchttps://github.com/IfcOpenShell/IfcOpenShell/commit/824c1fc280c4c9a4c95a6be2dae08bc13ba9e462
aothmshttps://github.com/aothms
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8691https://github.com/IfcOpenShell/IfcOpenShell/pull/8691
on Jul 19, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-28175744522
petruconduraruhttps://github.com/petruconduraru
on Jul 23, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-28366667473
ifcwrap: rename geometry backref helper to fix stub validation crashhttps://github.com/BIMvoice/IfcOpenShell/commit/e57b5ac5edcb127e2f7944461957f577ecc9e73a
e57b5achttps://github.com/BIMvoice/IfcOpenShell/commit/e57b5ac5edcb127e2f7944461957f577ecc9e73a
Moulthttps://github.com/Moult
on Jul 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/1124#event-28476062472
ifcwrap: keep geometry's owning element alive to fix silent data corr…https://github.com/IfcOpenShell/IfcOpenShell/commit/0191ac63dce6d56a10fe15376644ac2ceaa9dae7
0191ac6https://github.com/IfcOpenShell/IfcOpenShell/commit/0191ac63dce6d56a10fe15376644ac2ceaa9dae7
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1124
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1124
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.