Plugin not working on Rhino WIP

Hi

The OctaneRender for Rhino does not load for Rhino 8. It is installed in the Rhino7 plugin folders.

The Rhino 8 command line shows:

Compatibility test for OctaneRenderForRhino failed in 2.38s
Details written to C:\Users\Paul\AppData\Local\Temp\RhinoCompat\OctaneRenderForRhino.txt
Unable to load OctaneRenderForRhino.rhp plug-in: initialization failed.

The compatibility file is attached. Is a McNeel dev able to assist please?

Thanks

Paul
OctaneRenderForRhino.txt (9.3 MB)

1 Like

Thanks @pkinnane for reporting the issue. According to the report, OctaneRender uses some APIs that don’t exist when running in .NET Core, namely these (later versions of Rhino WIP have a more succinct report):

OctaneRenderForRhino, Version=2022.1.0.134, Culture=neutral, PublicKeyToken=null
    ? FAIL System.Void System.Windows.Forms.ContextMenu::.ctor() < System.Windows.Forms
    ? FAIL System.Windows.Forms.Menu/MenuItemCollection System.Windows.Forms.Menu::get_MenuItems() < System.Windows.Forms
    ? FAIL System.Void System.Windows.Forms.MenuItem::.ctor(System.String,System.EventHandler) < System.Windows.Forms
    ? FAIL System.Int32 System.Windows.Forms.Menu/MenuItemCollection::Add(System.Windows.Forms.MenuItem) < System.Windows.Forms
    ? FAIL System.Windows.Forms.Menu/MenuItemCollection System.Windows.Forms.Menu::get_MenuItems() < System.Windows.Forms
    ? FAIL System.Void System.Windows.Forms.MenuItem::.ctor(System.String,System.EventHandler) < System.Windows.Forms
    ? FAIL System.Int32 System.Windows.Forms.Menu/MenuItemCollection::Add(System.Windows.Forms.MenuItem) < System.Windows.Forms
    ? FAIL System.Windows.Forms.Menu/MenuItemCollection System.Windows.Forms.Menu::get_MenuItems() < System.Windows.Forms
    ? FAIL System.Void System.Windows.Forms.MenuItem::.ctor(System.String,System.EventHandler) < System.Windows.Forms
    ? FAIL System.Int32 System.Windows.Forms.Menu/MenuItemCollection::Add(System.Windows.Forms.MenuItem) < System.Windows.Forms
    ? FAIL System.Windows.Forms.Menu/MenuItemCollection System.Windows.Forms.Menu::get_MenuItems() < System.Windows.Forms
    ? FAIL System.Void System.Windows.Forms.MenuItem::.ctor(System.String,System.EventHandler) < System.Windows.Forms
    ? FAIL System.Int32 System.Windows.Forms.Menu/MenuItemCollection::Add(System.Windows.Forms.MenuItem) < System.Windows.Forms
    ? FAIL System.Void System.Windows.Forms.ContextMenu::Show(System.Windows.Forms.Control,System.Drawing.Point) < System.Windows.Forms
    ? FAIL System.Windows.Forms.MenuItem < System.Windows.Forms
    ? FAIL System.Int32 System.Windows.Forms.MenuItem::get_Index() < System.Windows.Forms

The plugin will have to be updated to use ContextMenuStrip, and ToolStripMenuItem APIs instead.

In the meantime, you can use the SetDotNetRuntime command to run Rhino in .NET Framework which should get the plugin running for now.

Hope this helps!

Thank you - that helps a lot.

Paul