Title: v0.8.0 C++ example programs crash when built with boost 1.86.0 · Issue #5308 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: v0.8.0 C++ example programs crash when built with boost 1.86.0 · Issue #5308 · IfcOpenShell/IfcOpenShell
X Title: v0.8.0 C++ example programs crash when built with boost 1.86.0 · Issue #5308 · IfcOpenShell/IfcOpenShell
Description: I'm trying to get past the build issues with Visual Studio since the toolchain change, described in #4744. In summary, Visual Studio toolchain was changed and boost 1.79 would no longer compile. The problem has been fixed in boost 1.86. ...
Open Graph Description: I'm trying to get past the build issues with Visual Studio since the toolchain change, described in #4744. In summary, Visual Studio toolchain was changed and boost 1.79 would no longer compile. Th...
X Description: I'm trying to get past the build issues with Visual Studio since the toolchain change, described in #4744. In summary, Visual Studio toolchain was changed and boost 1.79 would no longer compile...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5308
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"v0.8.0 C++ example programs crash when built with boost 1.86.0","articleBody":"I'm trying to get past the build issues with Visual Studio since the toolchain change, described in #4744. In summary, Visual Studio toolchain was changed and boost 1.79 would no longer compile. The problem has been fixed in boost 1.86.\r\n\r\nIn `build-deps.cmd` and `run-cmake.bat` I changed `set BOOST_VERSION=1.79.0` to `set BOOST_VERSION=1.86.0`.\r\n\r\nAfter running `build-deps.cmd vs2024-x64 Debug` `build-deps.com vs2022-x64 Release` and `run-cmake.bat vs2022-x64`, I jump over to Visual Studio and build the whole of IfcOpenShell from the Solution file.\r\n\r\nWhen I run the IfcAdvancedHouse.cpp example (or any of the other examples), there is an Access Violation reading location 0x000000000\r\n\r\nThe call stack is:\r\n~~~\r\n>\tIfcAdvancedHouse.exe!IfcParse::IfcFile::build_inverses_::__l2::\u003clambda_1>::operator()(IfcUtil::IfcBaseClass * attr, int idx) Line 2294\tC++\r\n \t[External Code]\t\r\n \tIfcAdvancedHouse.exe!apply_individual_instance_visitor::apply_attribute_\u003cstd::function\u003cvoid __cdecl(IfcUtil::IfcBaseClass *,int)>>(std::function\u003cvoid __cdecl(IfcUtil::IfcBaseClass *,int)> & t, const AttributeValue & attr, int index) Line 1090\tC++\r\n \tIfcAdvancedHouse.exe!apply_individual_instance_visitor::apply\u003cstd::function\u003cvoid __cdecl(IfcUtil::IfcBaseClass *,int)>>(std::function\u003cvoid __cdecl(IfcUtil::IfcBaseClass *,int)> & t) Line 1124\tC++\r\n \tIfcAdvancedHouse.exe!IfcParse::IfcFile::build_inverses_(IfcUtil::IfcBaseClass * inst) Line 2301\tC++\r\n \tIfcAdvancedHouse.exe!IfcParse::IfcFile::addEntity(IfcUtil::IfcBaseClass * entity, int id) Line 1781\tC++\r\n \tIfcAdvancedHouse.exe!IfcHierarchyHelper\u003cIfc2x3>::addLocalPlacement(Ifc2x3::IfcObjectPlacement * parent, double ox, double oy, double oz, double zx, double zy, double zz, double xx, double xy, double xz) Line 70\tC++\r\n \tIfcAdvancedHouse.exe!IfcHierarchyHelper\u003cIfc2x3>::addSite(Ifc2x3::IfcProject * proj, Ifc2x3::IfcOwnerHistory * owner_hist) Line 183\tC++\r\n \tIfcAdvancedHouse.exe!IfcHierarchyHelper\u003cIfc2x3>::addBuilding(Ifc2x3::IfcSite * site, Ifc2x3::IfcOwnerHistory * owner_hist) Line 215\tC++\r\n \tIfcAdvancedHouse.exe!main() Line 65\tC++\r\n~~~\r\n\r\nThe function where the access violation occurs is\r\n~~~\r\nvoid IfcParse::IfcFile::build_inverses_(IfcUtil::IfcBaseClass* inst) {\r\n std::function\u003cvoid(IfcUtil::IfcBaseClass*, int)> fn = [this, inst](IfcUtil::IfcBaseClass* attr, int idx) {\r\n if (attr->declaration().as_entity() != nullptr) { // \u003c--- Access Violation Here\r\n unsigned entity_attribute_id = attr->id();\r\n const auto* decl = inst->declaration().as_entity();\r\n byref_excl_[{entity_attribute_id, decl->index_in_schema(), idx}].push_back(inst->id());\r\n }\r\n };\r\n\r\n apply_individual_instance_visitor(&inst->data()).apply(fn);\r\n}\r\n~~~\r\n\r\n`attr` is a nullptr.\r\n\r\n\r\nAnyone experiencing this problem?\r\nAny ideas how to resolve it?\r\n\r\n\r\n","author":{"url":"https://github.com/RickBrice","@type":"Person","name":"RickBrice"},"datePublished":"2024-09-04T14:29:34Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5308"}
| 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:65d5f78f-4777-6170-b3e1-9539215c7e43 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0E4:199A0D:1F0E8A:295869:6B04B411 |
| html-safe-nonce | 0d5aa662f1a62a05c7c9909b4f5301e343de9b29381a3f1079c30e9593167fff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEU0OjE5OUEwRDoxRjBFOEE6Mjk1ODY5OjZCMDRCNDExIiwidmlzaXRvcl9pZCI6IjE1MDAyMzg0MTc2NTk5OTkyNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 73839336afd457dc373b9b7d4c12d8e4b9cff58f671f41c26fd2d1a9c01ffcd9 |
| hovercard-subject-tag | issue:2505537668 |
| 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/5308/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b9995d502c75de6b935a603767d8a2e9e489c0c9c6463dc3e3f02ba7c9a44398/IfcOpenShell/IfcOpenShell/issues/5308 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b9995d502c75de6b935a603767d8a2e9e489c0c9c6463dc3e3f02ba7c9a44398/IfcOpenShell/IfcOpenShell/issues/5308 |
| og:image:alt | I'm trying to get past the build issues with Visual Studio since the toolchain change, described in #4744. In summary, Visual Studio toolchain was changed and boost 1.79 would no longer compile. Th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RickBrice |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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