HiddenLineDrawing.Compute crashes Rhino 9 (access violation)

Hi,

Rhino.Geometry.HiddenLineDrawing.Compute crashes Rhino 9 (hard crash, c0000005 access violation, no managed exception) when a clipping plane added with hiddenLineDrawingParameters.AddClippingPlane cuts through a
particular Brep. The Brep is valid (IsValidWithLog returns true, 5 faces, closed), it is a swept guardrail top rail.

Version: Rhino 9.0.26272.12303 (Windows 11, .NET 10).

To reproduce: open the attached make2d_clipping_crash.3dm (inches, tolerance 0.01) and run the attached
make2d_clipping_crash.py from the Script Editor. Rhino closes on hiddenLineDrawing.Compute.

What we found:

  • Without AddClippingPlane, the same Brep computes fine.
  • If we trim the Brep ourselves with Brep.Trim(plane, tol) and compute without a clipping plane, it works.
  • The trimmed Brep plus the same clipping plane still crashes.
  • In our model, the plane in the file crosses the rail near its top; planes that do not reach the rail are fine.
  • Rhino 8 does not crash with the same model and the same code, so this looks like a Rhino 9 regression.

We now trim the geometry ourselves before Make2D as a workaround, but a crash with no exception is hard to
guard against, so we wanted to report it.

Thanks!

make2d_clipping_crash.py (1.2 KB)

make2d_clipping_crash.3dm (296.6 KB)

Hi @Julien_Labrie,

I’m looking at this.

— Dale

Hi @Julien_Labrie,

I can’t reproduce this with your file and script. Compute finishes normally, with or without the clipping plane, single- or multithreaded.

Are you using the latest Rhino Beta? Can you run SystemInfo and post the results in a reply?
When you crashed, did you send the crash report when Rhino offers to, and include your email so I can find it?

Thanks,

— Dale