René's URL Explorer Experiment


Title: SVG serializer aborts with Standard_NoSuchObject in a fully static build · Issue #9398 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: SVG serializer aborts with Standard_NoSuchObject in a fully static build · Issue #9398 · IfcOpenShell/IfcOpenShell

X Title: SVG serializer aborts with Standard_NoSuchObject in a fully static build · Issue #9398 · IfcOpenShell/IfcOpenShell

Description: Summary A build produced by the documented Docker developer workflow (docker/README.md -> ./ifcos_env build) yields an IfcConvert whose SVG serializer aborts on almost every element: Creating geometry... terminate called after throwing a...

Open Graph Description: Summary A build produced by the documented Docker developer workflow (docker/README.md -> ./ifcos_env build) yields an IfcConvert whose SVG serializer aborts on almost every element: Creating geome...

X Description: Summary A build produced by the documented Docker developer workflow (docker/README.md -> ./ifcos_env build) yields an IfcConvert whose SVG serializer aborts on almost every element: Creating ge...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SVG serializer aborts with Standard_NoSuchObject in a fully static build","articleBody":"### Summary\n\nA build produced by the documented Docker developer workflow (`docker/README.md` -> `./ifcos_env build`) yields an `IfcConvert` whose SVG serializer aborts on almost every element:\n\n```\nCreating geometry...\nterminate called after throwing an instance of 'Standard_NoSuchObject'\n```\n\nIt reproduces on any model with solids, including `test/input` files and the Duplex sample, so it is not model specific. OBJ and GLB output from the same binary are fine, which makes it look like an SVG bug rather than a build problem.\n\n### Cause\n\n`nix/build-all.py` defaults to static IfcOpenShell libraries and static OCCT. Each serializer plugin therefore statically links its **own** copy of OCCT, compiled `-fvisibility=hidden` so the copies are not interposable. Shapes created inside `ifcopenshell_geometry_kernel_opencascade.so` then fail handle downcasts against the SVG plugin's separate OCCT instance: `BRep_Tool::Surface` returns a surface that is not loaded, and the deep-copying transform in `svg_serializer::write` throws.\n\nBacktrace, from a build with debug info added to the SVG plugin:\n\n```\nStandard_NoSuchObject\n  GeomAdaptor_Surface::UContinuity\n  Approx_CurveOnSurface::Perform\n  ProjLib_ProjectedCurve::Perform\n  BRep_Tool::CurveOnPlane\n  BRep_Tool::CurveOnSurface\n  BRepTools_TrsfModification::NewCurve2d\n  BRepTools_Modifier::Rebuild\n  BRepTools_Modifier::Perform\n  BRepBuilderAPI_ModifyShape::DoModif\n  BRepBuilderAPI_Transform::Perform\n  BRepBuilderAPI_Transform::BRepBuilderAPI_Transform   \u003c- svg_serializer.cpp, BRepBuilderAPI_Transform(..., true)\n```\n\nThe exception is not caught, so one bad element ends the whole conversion.\n\nThis also explains a secondary symptom: the duplicated IfcOpenShell libraries give each plugin its own `Logger` singleton, so messages logged from inside a serializer never reach `IfcConvert`'s output.\n\n### Why OBJ and GLB are unaffected\n\nThey consume triangulated output rather than `TopoDS_Shape`, so they never cross the OCCT instance boundary. Converting the same model to `.obj` succeeding while `.svg` aborts is a reliable way to recognise this.\n\n### How to check a build\n\n```\nreadelf -d \u003cinstall>/lib64/ifcopenshell_geometry_svg.so | grep -c \"NEEDED.*libTK\"\n```\n\n`0` means the plugin carries its own static OCCT and will exhibit this. A correct build reports 48. Size is the same tell: the plugin is around 41 MB when broken and around 0.5 MB when linked against shared OCCT.\n\n### Fix\n\nBuild with `--ifcopenshell-shared`, which is what CI already does:\n\n- `.github/workflows/build_rocky.yml` -> `build-all.py -v --diskcleanup --ifcopenshell-shared`\n- `.github/workflows/build_osx.yml` -> same\n\nbut `docker/ifcos_env` does not:\n\n```\nuv run ./nix/build-all.py -v ${PY_TGT:+-$PY_TGT} --diskcleanup ${BUILD_TARGET}\n```\n\nSo the configuration CI builds and ships is not the configuration the documented developer workflow produces, and the difference is not visible until a BRep-consuming serializer is used. Anyone following `docker/README.md` and then testing SVG output hits this.\n\nI have opened a one line PR against `docker/ifcos_env` to align it with CI. If the intent is instead that a fully static build should work, then this is a genuine defect in that configuration rather than a documentation gap, and the PR can be closed in favour of fixing the static case.\n\n### Environment\n\nIfcOpenShell 0.9.0alpha0, OCCT 7.8.1, Rocky Linux 9 container, linux/amd64, gcc, `BUILD_CFG=Release`.\n\n---\n\nThis report was produced with the assistance of an AI coding tool.\n","author":{"url":"https://github.com/P4A-KLFSBK","@type":"Person","name":"P4A-KLFSBK"},"datePublished":"2026-08-30T19:11:04Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9398"}

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:ca37911d-bc18-a31e-5b0c-3f17a749820a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC4DE:3C90A4:65467F:8E51BD:6B04781B
html-safe-nonce1addab0b683ecf6e513ca11e253010a17f6114184815746af23a737b25eba1b1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNERFOjNDOTBBNDo2NTQ2N0Y6OEU1MUJEOjZCMDQ3ODFCIiwidmlzaXRvcl9pZCI6IjYzNTI2NzEwMjcxODMyNjgxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfc0c62fb69d99824a83b89327ff055060946b35a232141f6e8da86bcab4586b8
hovercard-subject-tagissue:5293873550
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/9398/issue_layout
twitter:imagehttps://opengraph.githubassets.com/73e4774e6b9cad0fdabb2b20d0dbb9ae40522285daf4a6031fc1bb1ff3431657/IfcOpenShell/IfcOpenShell/issues/9398
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/73e4774e6b9cad0fdabb2b20d0dbb9ae40522285daf4a6031fc1bb1ff3431657/IfcOpenShell/IfcOpenShell/issues/9398
og:image:altSummary A build produced by the documented Docker developer workflow (docker/README.md -> ./ifcos_env build) yields an IfcConvert whose SVG serializer aborts on almost every element: Creating geome...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameP4A-KLFSBK
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/9398#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F9398
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%2F9398
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/9398
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9398
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9398
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/9398
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9398
SVG serializer aborts with Standard_NoSuchObject in a fully static buildhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9398#top
https://github.com/P4A-KLFSBK
P4A-KLFSBKhttps://github.com/P4A-KLFSBK
on Aug 30, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9398#issue-5293873550
https://github.com/P4A-KLFSBK
P4A-KLFSBKhttps://github.com/P4A-KLFSBK
on Aug 30, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9398#issuecomment-5470730959
#9399https://github.com/IfcOpenShell/IfcOpenShell/pull/9399
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9398
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9398
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.