Grasshopper - Component ID Conflict Error

Hi,
I have Rh7 and Rh8 installed, and when opening Rh8 I get component ID-confict error message about duplicate components for both versions.

and a list of Grasshoper loading errors.

Grasshopper Loading Errors

Priority: PriorityLoader
{
Menetelmää ei löydy: System.IDisposable Speckle.Connectors.Common.Connector.Initialize(Microsoft.Extensions.DependencyInjection.IServiceCollection, Speckle.Sdk.Application, Speckle.Connectors.Common.HostAppVersion).
MissingMethodException
}

Object: ReceiveComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: ReceiveComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Object: SendComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: SendComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Object: SpeckleSelectModelComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: SpeckleSelectModelComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Priority: PriorityLoader
{
Menetelmää ei löydy: System.IDisposable Speckle.Connectors.Common.Connector.Initialize(Microsoft.Extensions.DependencyInjection.IServiceCollection, Speckle.Sdk.Application, Speckle.Connectors.Common.HostAppVersion).
MissingMethodException
}

Object: ReceiveComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: ReceiveComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Object: SendComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: SendComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Object: SpeckleSelectModelComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: SpeckleSelectModelComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Even when I rename Rh7 plugin .gha to eg. .ghabak to prevent loading. The conflict error gets resolved, but I still get a bunch of loading error.

Rh8 SR19, Win11

@Toni_Osterlund Looks like an install issue on our end - we’re investigating now and will make a fix asap!

1 Like

How did you install the grasshopper connectors btw?
Was it via app.speckle.systems or your rhino next-gen connector, or did you drag and drop the .gha file into grasshopper?

Could you try a clean uninstall/reinstall of the connector first (via our .exe), and see if this registration issue persists?

1 Like

@clrkng I followed the Next-gen installation page instructions, so first un-installed all old, and then used the exe (“speckle.rhino.installer-3.2.0.exe”). Already did a re-installation once, but it did not resolve the issue. Nothing was drag-dropped.

Hi @Toni_Osterlund

The behaviour you’re seeing is very strange indeed.
Rhino8 should not be trying to load the Speckle Rhnio7 Grasshopper .gha file.

Please can you confirm, do you receive the error when loading Rhino, or only while Grasshopper is loading?
If you run the command SpeckleBeta, does the regular rhino connector work correctly? or is that failing also…

I also have some other steps we could try to get to the bottom of why Grasshopper is trying to load the Rhino7 plugin also…

Hi @Jedd
I have VisualARQ3 installed, and starts up with the startup template. So, Grasshopper loads during Rhino startup. I unabled Tibidabo and Visualarq, and then opened up Rhino without errors. So, I can confirm that the errors appear on Gh loadup.

In Rhino SpeckleBeta works correctly and already used it to upload model without issue. (separate issue: uploaded text objects do not respect model scale in the viewer).

Please could you execute GrasshopperDeveloperSettings (it’s a rhino command)

And then click the 👁 Valid Folders button to see all loaded folders.

Should look something like this

Please could you send me a screenshot of what you see?

@Jedd
Here.

1 Like

Ok… I think we’re getting a little closer to solving the mystery then…

The line here that references Speckle.Connectors.Rhino7 should not be here…


Please could you help me troubleshoot a bit further.

I would like to see if perhaps there is a bad registry key that would be pointing Rhino8 towards the Rhino7 path.

Please could you follow these steps:

  1. Open the Registery editor by pressing Windows key + R to open the Run menu, type regedit.exe and press enter.
  2. From the left panel, navigate to HKEY_CURRENT_USER\SOFTWARE\McNeel\Rhinoceros\8.0\Plug-Ins
  3. Right click on the Plug-Ins folder, and click Export, like so:
  4. Save the .reg file somewhere.
    I don’t think the file will contain anything that would be unsafe to post publicly here, but lets play safe, send this to me as a direct message.

Then, I would like to you to:
5. Uninstall the Speckle for Rhino + Grasshopper v3 connector. Wait for the uninstaller to say it’s finished.
6. Close and reopen the registry editor, and same way as before, Re-export the Plugin.

So you’ll be sending me two files, a registry export with the connector installed, and one without.

@Jedd
Message sent.

Thanks, files received.

Thank you for your patience, I am able to get some useful information from those files…

I’m still not certain how things got into this state, there’s a couple suspicions things in there. Hopefully can now suggest some things that might solve the issue.


Firstly, please ensure Rhino is fully closed, and the Speckle connector is uninstalled.

Then, Please ensure the following folder is deleted.
%appdata%\McNeel\Rhinoceros\8.0\Plug-ins\Speckle.Connectors.Rhino8 (2153799A-0CEC-40DE-BC3A-01E5055222FF)

and

%appdata%\McNeel\Rhinoceros\7.0\Plug-ins\Speckle.Connectors.Rhino8 (2153799A-0CEC-40DE-BC3A-01E5055222FF)


Then, open regedit, and navigate to

HKEY_CURRENT_USER\Software\McNeel\Rhinoceros\8.0\Plug-Ins\

Then right click on 40f6defd-3677-42b6-9d19-3cd604a0a288 and delete.

For good measure, please also check the following registry keys, and delete it if it exists.

2153799A-0CEC-40DE-BC3A-01E5055222FF

Note, be careful not to delete the wrong keys, but if you do accidently delete the wrong key, then you can restore by double clicking using the files you sent me


Then re-install the Speckle connector.
Please let me know the results. I think there’s a couple more things we can try if this fails

@Jedd

  1. Deleted said folders from Rh7 and Rh8
  2. Deleted those exact key-folders from several locations under Rh7 and Rh8. Locations, such as Plug-ins; Schema:Default/Plug-ins and Global Options/Plug-ins
  3. Re-installed exe (as “admin” just in case)
  4. Open Rhino8 - no error messages, and Specklebeta works.
  5. Open Grasshopper - Speckle is not loaded and thus nothing present
  6. I drag .gha from “C:\Users\Toni\AppData\Roaming\McNeel\Rhinoceros\8.0\Plug-ins\Speckle.Connectors.Rhino8 (2153799A-0CEC-40DE-BC3A-01E5055222FF)” to Grasshopper and Speckle appears.
  7. Restart Rhino8 - no conflict error, but get Grashopper loading errors:
Grasshopper loading errors

Priority: PriorityLoader
{
Menetelmää ei löydy: System.IDisposable Speckle.Connectors.Common.Connector.Initialize(Microsoft.Extensions.DependencyInjection.IServiceCollection, Speckle.Sdk.Application, Speckle.Connectors.Common.HostAppVersion).
MissingMethodException
}

Object: ReceiveComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: ReceiveComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Object: SendComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: SendComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Object: SpeckleSelectModelComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: SpeckleSelectModelComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

And what does your GrasshopperDeveloperSettings look like now?

@Jedd
As such.

Hmm… well it’s progress that rhino7 is no longer appearing in your GrasshopperDeveloperSettings…

I would suggest doing one last uninstall and re-install. Making sure that Rhino is fully closed while you install and uninstall.

I’ll continue some investigation my side.

Another avenue we could explore is removing all other third-party rhino & grasshopper plugins.

It is possible that there is a conflict with some dll dependencies that other plugins bundle.

That could explain why we’re unable to reproduce the same problem on our end.

I’m not sure how is most convenient for you to test this, uninstall one at a time, or just nuke them all…

  1. Restart computer
  2. Uninstall
  3. Restart
  4. Install
  5. Restart
  6. Didn’t work. Stll loading errors

I’ll start going through Gh plugins.

I tested using _GrasshopperLoadOneByOne loading, and did not load ANY suggested plugin, except Speckle. Still got the loading error.

This first error seems relevant, as other are just NullExceptions.
"Menetelmää ei löydy: System.IDisposable Speckle.Connectors.Common.Connector.Initialize(Microsoft.Extensions.DependencyInjection.IServiceCollection, Speckle.Sdk.Application, Speckle.Connectors.Common.HostAppVersion).
MissingMethodException
"

Is this dependent on some .NET version, etc… I really don’t know anything about those, but I just had to install one particular ASP.NET version, in order to get Hops working.

Load error

Priority: PriorityLoader
{
Menetelmää ei löydy: System.IDisposable Speckle.Connectors.Common.Connector.Initialize(Microsoft.Extensions.DependencyInjection.IServiceCollection, Speckle.Sdk.Application, Speckle.Connectors.Common.HostAppVersion).
MissingMethodException
}

Object: ReceiveComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: ReceiveComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Object: SendComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: SendComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Object: SpeckleSelectModelComponent (level 1)
{
Kutsun kohde on aiheuttanut poikkeuksen.
TargetInvocationException
}

Object: SpeckleSelectModelComponent (level 2)
{
Arvo ei voi olla tyhjäarvo.
Parametrin nimi: provider
ArgumentNullException
}

Ok, a small progress. I opened Rhino in Safe Mode. It queries for each plugin, and I said ok only to Speckle. Then loading Grasshopper, and no error. This could implicate a Rhino plugin as the culprit..?

1 Like

@Jedd
Found it! It was Enscape plugin. When Escape is not loaded, then there’s no Load Error for Gh.

I have version 4.2.1.88 installed. I’ll first try to see if there’s an update. But I would think you could now be able to replicate this.

Edit: Updated to 4.6.0.451. The issue still persists. I’ll keep Enscape un-loaded for now.
Escape is not some obscure plugin, so other’s might also come across this issue.

3 Likes