Grasshopper Crashes Revit with new plugin install

Revit Version : &
Rhino Version : 7.2.21012.11001
Rhino.Inside Revit Version : 0.0.7684.22919

Interestingly it works in Revit Version :

Opening Rhino.Inside Revit works, If opening Grasshopper from within Rhino, it just doesn’t do anything. Once clicking on the Revit ribbon button for Grasshopper, Revit crashes entirely. This was not the case with the last version (our office had installed, which was still version of the plugin.

This occurred with and without a project file open.

I saw a somewhat related topic, yet I would prefer not to wipe out all my libraries and user objects.

Related Images:
2021-01-15 08_40_25-Revit

contents of log file:
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not find file ‘Grasshopper.resources’.
at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark& stackMark)
at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
at Grasshopper.My.Resources.Res_CanvasToolbar.get_OpenFile_24x24()
at Grasshopper.GUI.GH_DocumentEditor.InitializeComponent()
at Grasshopper.GUI.GH_DocumentEditor…ctor()
at Grasshopper.Plugin.Commands.ShowGrasshopperEditor(Boolean showUponLoad, Boolean repairPosition)
at RhinoInside.Revit.GH.Guest.ShowEditor()
at RhinoInside.Revit.GH.Guest.d__12.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Could you please try just renaming the folder %APPDATA%\Grasshopper by anything like %APPDATA%\Grasshopper-disabled?

After you rename and run Rhino.Inside again Grasshopper will create %APPDATA%\Grasshopper empty.

To restore your previous setup just remove the recently created %APPDATA%\Grasshopper and rename back %APPDATA%\Grasshopper-disabled to %APPDATA%\Grasshopper.

Renamed the folder in noted location. When re-opening the rhino.inside revit plugin the Grasshopper folder in Roaming is recreated before opening Grasshopper, although once that button is clicked it again had unrecoverable error and crashed. When I was previously trying, the SDK messages didn’t pop up anything either.

the re-created folder is only the 6, Libraries, and Userobjects folders. none of the below shown files exist in the recreated folder:
2021-01-15 09_35_11-Grasshopper

Please try one thing.

Load Revit and press CTRL+SHIFT while clicking into the Rhino icon at the Add-Ins tab. This should show this dialog.

Select the first one, this will launch a new instance of Revit but this time loading only Rhino.Inside. Does it work this way?

If is the case it is a conflict with an other Revit AddIn.
In that case please follow this guide to determine the conflicting AddIn.

ok, that is frustrating, it does work when only RiR is loaded.
Guess that’s why it worked in Revit 2021 but not Revit 2020 or 2019. It is a Revit Addin block.
Running thru the noted / linked process. will edit and report back when found the offending addin.

Failed addin: Unitize by Matterlab

Once RiR and gh are launched without the offending addin and then the addin is enabled, gh still opens fine in the same instance of revit, it seems the initial open is where the conflict occurred.

P.s. sorry In reading the debug page for RiR this should have been performed prior to posting. Thanks, hope others learn from my error.

1 Like