Grasshopper crash when V-RAY disabled

Hi, many people are struggling with the sudden crash when trying to start grasshopper with disabled v-ray plugin. This is the crush dump message:

SENDER: Name:smile:efaultDomain
There are no context policies.

EXCEPTION: System.DllNotFoundException
MESSAGE: Unable to load DLL ‘VRaySDKLibrary’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
SOURCE: “VRaySDK.Net
CALL STACK
at VRay.RendererUtils.releaseVRayRenderer(IntPtr renderer)
at VRay.VRayRenderer.Finalize()

Best regards,
Petr

Hi,

Apologies for the late reply!

Please be informed that this issue has been resolved in V-Ray Next for Rhino. The reason it occurs is because V-Ray for Grasshopper and V-Ray for Rhino are separate plugins, and even if V-Ray is disabled in Rhino, Grasshopper will still try to load it.

As a workaround, the file - C:\Program Files\Chaos Group\V-Ray\V-Ray for Rhinoceros\VRayForGrasshopper.gha - can be renamed and the issue will not be reproducible