Title: Nondeterministic geometry output with multithreading · Issue #8050 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Nondeterministic geometry output with multithreading · Issue #8050 · IfcOpenShell/IfcOpenShell
X Title: Nondeterministic geometry output with multithreading · Issue #8050 · IfcOpenShell/IfcOpenShell
Description: Bug Description This came about after finding strange results from benchmarking. First, the good news: 0.8.5 from PyPI vs 0.8.6-94f4dbc (2026-05-10T17:14:28.000Z) gives identical output from opencascade, cgal, and cgal-simple. Hooray! No...
Open Graph Description: Bug Description This came about after finding strange results from benchmarking. First, the good news: 0.8.5 from PyPI vs 0.8.6-94f4dbc (2026-05-10T17:14:28.000Z) gives identical output from openca...
X Description: Bug Description This came about after finding strange results from benchmarking. First, the good news: 0.8.5 from PyPI vs 0.8.6-94f4dbc (2026-05-10T17:14:28.000Z) gives identical output from openca...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8050
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nondeterministic geometry output with multithreading","articleBody":"### Bug Description\n\nThis came about after finding strange results from benchmarking. First, the good news:\n\n - 0.8.5 from PyPI vs 0.8.6-94f4dbc (2026-05-10T17:14:28.000Z) gives identical output from opencascade, cgal, and cgal-simple. Hooray! No regressions!\n - This bug seems to exist in both 0.8.5 and 0.8.6-94f4dbc, so it's not a regression\n - It is somewhat rare it seems\n\nTo reproduce https://cloud.thinkmoult.com/models/ifclite/dental_clinic.ifc and use https://github.com/IfcOpenShell/ifcbench/blob/master/scripts/test_multi.py , which will run the iterator N times and see if there any differences between them.\n\n```\npython test_multi.py --model models/dental_clinic.ifc --kernel opencascade --runs 10 --threads 12\n```\n\nI've tested with opencascade, cgal, and cgal-simple. All three reliably produce either a missing (i.e. not yielded) STEP ID, or different geometry (different n_verts). The STEP ID 2752 and 2735 seem to come up quite commonly. Changing threads to 1 causes the issue to go away, so this suggests that it's not kernel-specific, but is a general multithreading thing.\n\nExample output:\n\n```\n...\nchanged_id=2752 baseline=(verts=8, tris=12, hash=2a8dd1ea4d5a445cdcd69568c65c3f24) run=(verts=12, tris=20, hash=6fcc089a48cd1e502cf280d03994aefc)\n...\nmissing_ids=[2735]\n...\n```\n\nA neat thing with the ifcbench tool is that it has a convenient helper to run a script against a particular environment BTW, e.g.:\n\n```\nifcbench execute-py ifcopenshell-python-313-20260510-0.8.6-94f4dbc-linux64 scripts/test_multi.py --model models/dental_clinic.ifc --kernel cgal-simple --runs 10 --threads 12\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/Moult","@type":"Person","name":"Moult"},"datePublished":"2026-05-13T05:44:04Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8050"}
| 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:fc1494ba-7bd9-56ee-ddc3-4cf55f55b1e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8EE:EFB54:644B9:85FA3:6B04AEBA |
| html-safe-nonce | 6afb2c6b70652d42dead5d74a28d30b65a77d80d0777fb1fc8c22a442cedcd4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEVFOkVGQjU0OjY0NEI5Ojg1RkEzOjZCMDRBRUJBIiwidmlzaXRvcl9pZCI6IjM4MDk5MTA5NTcxNTM3NTg5MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bc6445c5e4e00695b5b0883db458219e79cfc8240bad24062caf0f17ada85166 |
| hovercard-subject-tag | issue:4435217835 |
| 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/8050/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c76f86ddc700dc60cb57fee13161ad7691f88bd4a3916e6998031212cb2ea9d6/IfcOpenShell/IfcOpenShell/issues/8050 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c76f86ddc700dc60cb57fee13161ad7691f88bd4a3916e6998031212cb2ea9d6/IfcOpenShell/IfcOpenShell/issues/8050 |
| og:image:alt | Bug Description This came about after finding strange results from benchmarking. First, the good news: 0.8.5 from PyPI vs 0.8.6-94f4dbc (2026-05-10T17:14:28.000Z) gives identical output from openca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Moult |
| 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