Grasshopper crashes in very specific situations

Hello,

I am working on a program to draw some company-specific spirals. I found that sometimes my grasshopper crashes (Doesn’t respond). After a couple hours of searching I found the culprit, but I can’t seem to fix it or find out why it actually crashes.

The program crashes when moving the spiral very specific amounts to the X direction. It doesn’t if the Y value is different. I tried fixing it by rounding it to 4 decimal places (the original was 6 or 7 decimal places), which fixes one spiral but creates the bug in another one.

The spiral is made by a lot of arcs, joined and filleted and then piped. The wiggly line is very similar, just a lot of arcs joined and piped. Pipe ends are capped. The balls on either side are just spheres. To relieve some load on the system, I opted for grouping instead of boolean processes.

In the test file I added you can see two exact copies, but mirrored in XY and moved in Y direction. One of them doesn’t crash, the other one does. There is also two values for movement amount. They differ only in the fourth digit. One of them crashes, the other one doesn’t.

Could someone tell me what I’m doing wrong and what might cause the crashes? The values and geometry come from specific calculations and I can’t simply move the entire system in Y direction if it crashes, because I am drawing maybe 60 of these spirals and there’s almost always one that causes crashing.

TEST.gh (627.7 KB)

Very weird indeed. By trial and error, I have isolated the failure to this one geometry shown:


TEST _2024_Jul12a.gh (645.6 KB)

When connected to Move, GH freezes.

Thank you for eliminating that spiral as the cause. It’s very strange because I use an array in Y direction which alternates the two geometries and this is the only one in the first 10 that I looked at that bugs. The others have identical (or mirrored) geometry. I can change the width of the geometry and the X movement, but in quite a few cases it gets stuck like this.

Until now the bug only happened where the pitch in Y direction stays the exact same. The pitch in X direction changes very slightly in X direction (to fit the given width), but the bug happens with different pitches so that’s not it.

On monday I’m going to try changing the geometry even more and seeing if it’s somehow the wire diameter or heigth of the spiral.