-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AccessViolationException when loading a IFC file #456
Comments
Hi Christian Which version of Geometry Engine are you using Christian? From source, Myget or Nuget? These are usually down to edge cases in the data triggering an issue in the OCC layer. Will really need the model (or part of to diagnose. There's a chance it's fixed in latest 5.1 (and maybe a better chance it's in 6.0) Have you tried the latest 5.1 develop version: https://www.myget.org/feed/xbim-develop/package/nuget/Xbim.Geometry/5.1.730-develop ? |
Hi Andy I use Visual Studio's NuGet Package Manager. I will ask if I am allowed to provide the ifc file. |
I'm getting the same error |
@namkhang2603 which error are you seeing? An issue installing 5.1.730-develop - or the original issue (System.AccessViolationException) |
Sorry I missed this originally. Assume you've moved passed this now. But sounds like you were trying to load GE into a .net core solution which won't work (unless using the v6/netcore branch) |
Hi, we have also encountered AccessViolationExceptions while loading IFC projects. We locally build nuget packages from source of the v6/netcore branch. Smaller projects trigger this exception regularly, while for large projects it occurs sporadically. Stacktrace:
Attached the test-project |
at .BRepOffsetAPI_MakePipeShell.{ctor}(BRepOffsetAPI_MakePipeShell*, TopoDS_Wire*)at Xbim.Geometry.XbimSolid.BuildSweptDiskSolid(TopoDS_Wire*, Double, Double, BRepBuilderAPI_TransitionMode) |
Investigations showed that the AccessViolationException in version 6 is caused by multi-threading problems (see Issue #489). Maybe this is also the case for other versions. |
When loading a specific IFC file, a AccessViolationException sporadically occurs.
Assemblies and versions affected:
Project Xbim.Geometry.Engine in solution Xbim.Geometry.Engine (master branch)
Steps (or code) to reproduce the issue:
Load a specific ifc file with XbimXplorer.
Minimal file to reproduce the issue:
IFC files need to be zipped to be uploaded. Then just drag & drop here
Expected behavior:
That no crash occurs ;)
Actual behavior or exception details:
System.AccessViolationException
The exception that is thrown when there is an attempt to read or write protected memory.
StackTrace:
at BRepOffsetAPI_MakePipeShell.{ctor}(BRepOffsetAPI_MakePipeShell* , TopoDS_Wire* )
at Xbim.Geometry.XbimSolid.BuildSweptDiskSolid(TopoDS_Wire* directrixWire, Double radius, Double innerRadius, BRepBuilderAPI_TransitionMode transitionMode)
at Xbim.Geometry.XbimSolid.Init(IIfcSweptDiskSolid solid, ILogger logger)
at Xbim.Geometry.XbimSolid..ctor(IIfcSweptDiskSolid solid, ILogger logger)
at Xbim.Geometry.XbimGeometryCreator.CreateSolid(IIfcSweptDiskSolid ifcSolid, ILogger logger)
at Xbim.Geometry.XbimGeometryCreator.Create(IIfcGeometricRepresentationItem geomRep, IIfcAxis2Placement3D objectLocation, ILogger logger)
at Xbim.Geometry.Engine.Interop.XbimGeometryEngine.Create(IIfcGeometricRepresentationItem ifcRepresentation, ILogger logger) in C:\Git\BIM\XbimGeometry\Xbim.Geometry.Engine.Interop\XbimGeometryEngine.cs:line 74
The text was updated successfully, but these errors were encountered: