Mouse click not working

I have had issues with mouse clicks not working in Grasshopper today. I am using build 1.0.0007, in Rhino 6 (6.10.18279.17351, 10/06/2018).

When this happens I can still click on things in the main Rhino workspace, but not in the grasshopper workspace. I thought at first it could be my mouse. But the buttons on my trackpad lose functionality at the same time as the mouse.

I think this issue has something to do with a boolean toggle button I am using to initiate a silkworm g-code generator. I suppose that could be because silkworm has not been updated in about 6 years. Usually when this has happened, I have had to restart Rhino entirely to get mouse click functionality back, although once it came back on itā€™s own.

It has happened to me once or twice. Never was able to pin point what it was and I donā€™t have silkworm. A restart always fixes it though.

Thereā€™s some bug in the button object that causes this. I have had it happen to me, but never under controlled circumstances. Iā€™ve looked the code up and down, added failsafe measures, but I canā€™t be sure any of them had any effect. And based on this report, seems they didnā€™tā€¦

Maybe it is the same thing I experienced I believe I reported it but I cannot find it now:

The scenario was the following. Double-click on the title bar of GH to make it collapse. Then donā€™t double click but drag it down. At this point mouse clicks fail.

Though I cannot repeat it with Rhino6.9

I have a better sense of the issue now. It seems to be happening with CAD Exporter from the TT Toolbox App (very likely that was the cause before too, since I have the same button triggering a DXF file for lasercutting, and a gcode file for 3d printing). If I click the button once, it locks up the mouse input. But apparently the one place I can still click within grasshopper at that point is on the button itself, because if I click it again, it frees things up again. For now I am able to solve the problem by simply activating the button twice in a row every time I use it, which is working okay for this application.

1 Like

It just has happened to me with Pufferfish bake component. Same behaviour as with Colby, thought I was done, but clicking on the button unfroze the mouse.

1 Like

Hi, Pufferfish has no bake component.

2 Likes

Oh yeah, sorry mate, I got bamboozled :crazy_face:, Elefront, not pufferfish. But hey, pufferfish is awesoooome.
image

2 Likes

Hi All,

I have been getting this problem on and off for a few years, both rh5 and rh6.

Sometimes this occurs where there is an ā€˜Exception has been thrown by the target of an invocationā€™, other times this occurs without an error message, using bake object components, elefront or heteroptera, where there is a bad object (INVALID) or a non-bakable object such as a number in a list.

When it occurs i cannot right click - pan or get the menu. But, i can still zoom my way around the canvas and I can also save the file. In RH5 i would be able to grasshopperunloadplugin and then just restart grasshopper - now i have to re-launch rhino (i have done this just today) and then open gh.

So it does not seem that gh is actually breaking, in my experience, but any number of plugins.

@DavidRutten

David, is it possible to reconsider bringing this back: ??

thanks,

Arkadius

This issue is caused because of the button component you use. If the calculation after the click is heavy, due to the fact that this button component fires twice. It fires once when pressed and second time when released. This causes GH to break.

To test the scenario, press and hold the button until it finishes calculating. Then release and you will see no problem.

toggle is the better choice here.

2 Likes

Hi Ivelin.

Do you think this includes buttons built into components, like in heteroptera or metahopper?

I cannot know that, Iā€™m sorry. It depends how the clicking event is handled. Only the developer can say.

Nevertheless i would like to see an update in rhino that brings back:

grasshopperunloadplugin

1 Like

Iā€™ve managed to reliably trigger this bug using this simple grasshopper script (attached). It is a simple embedded c# script with a button attached to it. The script just tells Rhino to run the ā€œmoveā€ command. When you push the button, Rhino will initiate ā€œmoveā€. At that point, behavior is normal: Rhino carries out ā€œmoveā€. When you ā€œenterā€ out of move on the Rhino side, then the grasshopper canvas loses track of mouse clicks.
buttonBug.gh (5.7 KB)

1 Like

Anything that runs longer than the time it takes to click the button will cause this bug.

Happened again but this time without the button. It happened right after I drag selected some of the components, on a LMB release. Rhino viewport shows the preview, I can drag and drop, minimize GH, MMB but not LMB and RMB click.

It happened when I was working with Elefront.

A restart fixed the problem, repeating the actions didnā€™t recreate the problem :thinking:.

Have had the same issue with selection of objects on the canvas freezing. I have been able to repeat the issues. Iā€™m using a momentary button with the Lunch Box ā€˜Object Saveā€™ node.

It only happens for me when Iā€™m using the momentary button in conjunction with a node that bakes objects to Rhino

I have just come across the same issue, this time when trying to use rhinoscript syntax and a button to switch from layoutspace to model space and back again.

This is necessary in order for me to bake objects into model space and prevent them from baking into layout space.

Here is a minimal example. The problem occurs when you go into the layout, so the layout is the active view, and then run the script.

MouseClickNotWorking.3dm (150.3 KB)
MouseClickNotWorking_V0.0.gh (7.2 KB)

Here is my system info:
Rhino 7 SR8 2021-7-15 (Rhino 7, 7.8.21196.05001, Git hash:master @ 45c1fd6dc85c7c1cce8c0bbe6f3e16481ae9abfa)
License type: Commercial, build 2021-07-15
License details: Cloud Zoo

Windows 10.0.19042 SR0.0 or greater (Physical RAM: 64Gb)

Computer platform: LAPTOP - Plugged in [100% battery remaining]

Hybrid graphics configuration.
Primary display: Intel(R) UHD Graphics (Intel) Memory: 1GB, Driver date: 9-5-2020 (M-D-Y).
> Integrated graphics device with 3 adapter port(s)
- Windows Main Display is laptopā€™s integrated screen or built-in port
- Secondary monitor attached to adapter port #1
Primary OpenGL: NVIDIA Quadro RTX 4000 with Max-Q Design (NVidia) Memory: 8GB, Driver date: 7-7-2021 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 462.98
> Integrated accelerated graphics device with 4 adapter port(s)
- Video pass-through to primary display device

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPUā€™s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 7-7-2021
Driver Version: 27.21.14.6298
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 8 GB

Rhino plugins that do not ship with Rhino
C:\Program Files\Chaos Group\V-Ray\V-Ray for Rhinoceros\V7\VRayForRhino.rhp ā€œV-Ray for Rhinoā€

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp ā€œCommandsā€ 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp ā€œRenderer Development Kitā€
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp ā€œRhino Renderā€ 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp ā€œRDK_EtoUIā€ 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp ā€œRenderer Development Kit UIā€
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp ā€œSnapshotsā€
C:\Program Files\Rhino 7\Plug-ins\IronPython\RhinoDLR_Python.rhp ā€œIronPythonā€ 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp ā€œRhinoCyclesā€ 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\Grasshopper\GrasshopperPlugin.rhp ā€œGrasshopperā€ 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp ā€œToolbarsā€ 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp ā€œ3Dconnexion 3D Mouseā€
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp ā€œDisplacementā€

@AndersDeleuran offered one solutionā€¦ hold the button down until the script is finished running.

Alternatively, use a Boolean Toggle instead of a button.

2 Likes

Hey all, I ran into this issue when using a button to bake imported blocks with elefront.
The following addition between button and bake solved the issue for me.
Stream Gate = Default
Event Gate = Heteroptera

3 Likes