Grasshopper's "C# Script Editor" freezes the Rhino UI

I’m having trouble with the Rhino User Interface freezing. Rhino is still running, but does not respond, I have to end the task with Window’s Task Manager.

It seems to happen after I open the Grasshopper’s C# script editor, and try to move the editor window with my mouse.

WIP Version: 8.0.23094.11475, 2023-04-04
Grasshopper Version: Monday, 01 January 0001.00:00, Build 1.0.0007

Is anyone else having problems?

John

Here is some more info about the problem:

  1. I updated my display driver (no change)

  2. I can reproduce the problem:

  • Start Rhino with a new (empty) file.
  • Open Grasshopper
  • Instantiate a C# Script Editor component
  • Open the editor
  • Move the window rapidly (it doesn’t freeze all the time, but it usually will happen after a few moves)
  1. Here is the information on my system:
    Rhino 8 SR0 2023-4-4 (Rhino WIP, 8.0.23094.11475, Git hash:master @ 91ff44f39cc188d48451b0e848bffa608230d7d6)
    License type: Commercial, build 2023-04-04
    License details: Cloud Zoo
    Expires on: 2023-05-19

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

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce GTX 980 Ti (NVidia) Memory: 6GB, Driver date: 3-16-2023 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 531.41
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port #0

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: 3-16-2023
Driver Version: 31.0.15.3141
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 6 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8 WIP\Plug-ins\Commands.rhp “Commands” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 8 WIP\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoRoslyn.rhp “RhinoRoslyn” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoCodePlugin.rhp “RhinoCodePlugin” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoCPython.rhp “RhinoCPython” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8 WIP\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8 WIP\Plug-ins\ConstraintsUI.rhp “Constraints UI” 8.0.23094.11475
C:\Program Files\Rhino 8 WIP\Plug-ins\SectionTools.rhp “SectionTools”

yeah me

Me too :joy:

But I found two tricks about this,

1, Wait and do not drag or click the editor window until the initialize is done. Can see when the namespace is collapsed.
2, Just activate the task manager and close it without doing anything and back to editor, it probably can  be unstucked.

Thanks for the tricks-they should let me use the editor without losing work

it’s still a WIP, where you can’t expect anything expect for the possibility to contribute actively to the development.
if weekenlwk’s tricksy micksy is too tidious (which I completely understand), rhino 7 editor works fine. I actually switch a bit between WIP and 7, just because the editor on WIP has extreme latency even when typing and sometimes freezes my entire system.

If i follow correctly the current c# editor (along with the others) will be retired in favor of the new ‘ScriptEditor’ - that is also a gh component, but currently only supports python…
The Standalone version already has C# support, so i hope it soon will land in GH

I had the same issue with the Python Script editor. The very first time I added Py3 to the canvas, Rhino and Grasshopper froze for maybe a minute. Now, even after a restart, I cannot replicate the issue. I assume this was some initial initialization.