I've encounter a crash in Xbim3DModelContext.CreateContext() when for certain files and have managed to track it down to XbimWire::Init() where it constructs an XbimFace from the wire. The wire is expected to be planar, but if it isn't it logs an error in the constructor and doesn't initialize the private 'pFace' property. As a result, when using that XbimFace instance with ShapeFix_Wire on the next line the native code gets a NULL reference to TopoDS_Face and eventually crashes when it tries to use it.
This occurs on HEAD of master (commit 1dae92e9328665c4bed3379043d22c93f87fa8d7).
I've encounter a crash in Xbim3DModelContext.CreateContext() when for certain files and have managed to track it down to XbimWire::Init() where it constructs an XbimFace from the wire. The wire is expected to be planar, but if it isn't it logs an error in the constructor and doesn't initialize the private 'pFace' property. As a result, when using that XbimFace instance with ShapeFix_Wire on the next line the native code gets a NULL reference to TopoDS_Face and eventually crashes when it tries to use it.
This occurs on HEAD of master (commit 1dae92e9328665c4bed3379043d22c93f87fa8d7).
PR incoming :)