GH2 stuck loading

Hi
I am working on a 16inch macbook pro (intel i9), running windows 10 on bootcamp.
On previous versions of rhino 8, GH2 took a long time to boot (5 minutes or so) but I was willing to wait assuming it was going to be fixed. I downloaded the last versions of both Rhino and GH2 and now GH2 is stuck at 7% loaded (only the blue number 2 is visible on the splash screen…) I uninstalled Rhino8 completely and reinstalled with no improvement. Restarted windows ad it’s still the same… any ideas?

Thanks!

Do you have other plugins installed? Can you disable them? It is strange since GH2 currently doesn’t have any plugins that may slow it down.

One option is to uninstall GH2 from the package manager and then reinstall it and let us know.

Hi. I uninstalled rhino 8 completely, erased the rhino 8 and grasshopper 2 folders I could find. Reinstalled both rhino 8 and gh2 and nothing changed. I left it running for 45 minutes and it didn’t move from 7%. In rhino 7 gh1 I have quite a few plugins installed. Happy to provide more info if you need.

Hi Frane -
Please run the Rhino SystemInfo command and copy-paste the result here.
-wim

I have the same issue as well: GH2 won’t load past 7%-ish, no matter how long it is running. I’ve updated Rhino 8 and GH2, no change. GH2 also took a very long time (20 mins) to boot on previous releases. Here’s my info:

Rhino 8 SR0 2022-11-22 (Rhino WIP, 8.0.22326.12305, Git hash:master @ d91c600ecef5c4d78353fa4054849e18d690c58d)
License type: Commercial, build 2022-11-22
License details: Cloud Zoo
Expires on: 2023-01-06

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

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 2080 Ti (NVidia) Memory: 11GB, Driver date: 7-21-2022 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 516.94
> 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: 7-21-2022
Driver Version: 31.0.15.1694
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 11 GB

Rhino plugins that do not ship with Rhino
C:\ProgramData\McNeel\Rhinoceros\7.0\Plug-ins\Datasmith Rhino Exporter (d1fdc795-b334-4933-b680-088119cdc6bb)\DatasmithRhino7.rhp “Datasmith Exporter” 5.0.2.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8 WIP\Plug-ins\Commands.rhp “Commands” 8.0.22326.12305
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.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.0.22326.12305
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\Constraints.rhp “Constraints”
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.0.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoRoslyn.rhp “RhinoRoslyn” 8.0.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoCodePlugin.rhp “RhinoCodePlugin” 8.0.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoCPython.rhp “RhinoCPython” 8.0.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.0.22326.12305
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.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\SectionTools.rhp “SectionTools”

Hi Wim
Here is the system info:
Rhino 8 SR0 2022-11-22 (Rhino WIP, 8.0.22326.12305, Git hash:master @ d91c600ecef5c4d78353fa4054849e18d690c58d)
License type: Educational Lab License, build 2022-11-22
License details: Stand-Alone
Expires on: 2023-01-06

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

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

Non-hybrid graphics configuration.
Primary display and OpenGL: AMD Radeon Pro 5500M (AMD) Memory: 4GB, Driver date: 11-11-2021 (M-D-Y). OpenGL Ver: 4.6.14761 Compatibility Profile Context FireGL 20.45.40.15 27.20.14540.15002
> Integrated accelerated graphics device with 7 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
Primary OpenGL: AMD Radeon Pro 5500M (AMD) Memory: 4GB, Driver date: 11-11-2021 (M-D-Y). OpenGL Ver: 4.6.14761 Compatibility Profile Context FireGL 20.45.40.15 27.20.14540.15002
> Integrated accelerated graphics device with 7 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port

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: ATI Technologies Inc.
Render version: 4.6
Shading Language: 4.60
Driver Date: 11-11-2021
Driver Version: 27.20.14540.15002
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 4 GB

Rhino plugins that do not ship with Rhino
C:\Users\fzm\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\EleFront\4.2.2\ElefrontProperties.rhp “ElefrontProperties” 1.0.0.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8 WIP\Plug-ins\Commands.rhp “Commands” 8.0.22326.12305
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.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.0.22326.12305
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\Constraints.rhp “Constraints”
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.0.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoRoslyn.rhp “RhinoRoslyn” 8.0.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoCodePlugin.rhp “RhinoCodePlugin” 8.0.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoCPython.rhp “RhinoCPython” 8.0.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.0.22326.12305
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.22326.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\SectionTools.rhp “SectionTools”

I’ll need to see the log file. GH2 should load in about 2~5 seconds.

Try and find the folder %appdata%\Grasshopper2\Diagnostics\, delete all *.ghlog files in there to get a clean start, run the G2 command and once Rhino is shut down please upload the new *.ghlog file here.

Very suspicious. Is that long time with the GH2 banner on screen, or is there a long delay before it even shows the banner?

no luck. GH2 shows the banner right away and then gets stuck at 7%. I installed the last version, deleted the files inside diagnostics, under Grasshopper2, and executed R8 and GH2. It froze so I had to kill the R8 process. The new ghlog file is empty. I added a “.txt” extension to be able to upload it here but I get this message: “Sorry, it looks like something has gone wrong, the file you are trying to upload is 0 bytes. Please try again.”

The banner comes up immediately.

Also, I have almost exactly the same computer at home and at work (motherboards are different), and it’s happening on both machines.

Okay, so a tiny amount of code executes, but then everything breaks.

If you run the SetDotNetRuntime command in Rhino, what does it say? Then please switch to NetFramework, restart Rhino and try to load G2 again.

Mine was set to Default; changed it to NetFramework, restarted, same issue. Freezes at 7%. The little 2 icon shows up, but none of the package icons like math, etc.

Thanks. Do commands like G2Contrast, G2PaletteEditor, G2Banner, and G2PluginViewer work? (in that order)

Yes, I can run all those commands and interact with their dialog boxes without freezing. I can load all the plugins in the plugin viewer, but not sure if the invalid storable message has anything to do with this? After I loaded all the plugins from the viewer, the G2 command now loads grasshopper2 almost instantly, but moving around in the grasshopper2 window is very slow and laggy.

(Just curious, what does G2Contrast do? I see all the multicolored text dots in model space after I click on the dialog, but what is it for?)

It’s the same here

All of them work
I opened the plugin viewer and manually loaded each plugin, one by one. Then I executed G2 and it worked…

Great, progress! Is the canvas slow even with an empty file?

We’ll have to figure out somehow what part of the regular loading is different enough to cause a problem. Obviously I cannot use the log, which is a bummer because that’s exactly why it’s there in the first place. However I’m on holiday until the 10th of December, so I won’t be able to work on this before then, sorry.


The invalid storable doesn’t matter. It’s just a way for developers to find potential problems with their classes that I cannot enforce via code based rules (specifically, C# does not allow me to require constructors with specific signatures on derived types </geek alert>).


G2Contrast displays a random background colour with a darker and lighter foreground shape. You click on the one you like best and a textdot is added to Rhino recording that preference. During the development of auto-foreground colours in the icon code I needed lots of data points so I could try and come up with a rule for when a foreground should be darker or lighter in order to show up better. Me and a coworker spend a day or two clicking away and we collected several thousand samples. I then did some statistics to find what sort of surface equation in RGB space best represented the implied limit*. This command is just a left-over from early development I haven’t removed yet.

* interesting factoid; the amount of blue is almost entirely irrelevant. Which reduces the problem to a 2D equation, which is much easier to evaluate.

1 Like

“Same” up to and including a very slow canvas redraw speed?

Yes, the file is totally empty and very slow (unworkably so). I can double-click to search, but the search bar appears outside of the GH window, and I can pull components from the toolbars down onto the canvas, slowly.

G2Contrast: very interesting, and (of course) way more complex than I expected!

Thanks. I guess I can try and artificially slow down the redraw speeds to see how that would affect the loading. I suppose it’s possible that GH is so busy drawing and redrawing the banner during regular loading that there’s no CPU left over for actually loading the plugins…

In the meantime, @curtisw do you have any idea why the refresh rate of the control might be so awful?