Grasshopper emergency stop button

is it planned in the next updates to grasshopper3d the development of an emergency stop button to interrupt the execution of a GH definition which does not end because it takes too long to execute?

1 Like

Rhino/GH is incredibly stupid about being interrupted when it is thrashing helplessly. Closing the Windows task and restarting Rhino is the only way to kill it. Routine procedure, happens all the time. :frowning:

This is very relative, it depends on what you’re doing. Real-time solutions and those that take 10 minutes can be equally valid, depending on what you are doing.

GH already has an abort system by pressing the escape key but it only works when the solver is going to the next component to be run. If the problem comes within a component there is nothing to do. If the problem is in a context where the solution repeats continuously (until some criteria is reached, as in kangaroo), handling this abortion is terrible. This works badly and in GH1 there’s not much to do because the processing of the document/components and the interface run in the same thread, and you have to wait for the solution to finish (if it does finish) before you can interact with the canvas. I think the solution will be allowed by separating that, I don’t know if GH2 will be able to handle this.

However, it’s not that much of a problem to force the closing of Rhino and GH if you just load the plugins you use, even though it’s annoying it’s not that long. And to avoid losing unsaved work, you can use this:

Another alternative is an input evaluation system that compares the expected use with the given use to anticipate if something might go wrong. But although the idea is simple, I don’t think the implementation is, because of the same problem of relativity. We don’t all have the same hardware, we don’t all use GH for the same thing, and perhaps the remedy will end up being worse (forcing the user to interact by asking him if he wants to continue if it anticipates excessive computing) than the disease, which rarely occurs if you know what you are doing.

1 Like

Some Grasshopper component and calculation between components implements an Escape key logic that will terminate the definition immediately. However, a large part of non-responsiveness happens during external geometric call to Rhino, it is hard to be prevented right now as for the single-threaded infrastucture of Rhinoceros.

Ad: Pancake has a “Hang Protection” feature that do an emergency save if your GH has stopped responding for more than 1 minute.

1 Like