Rhino 8 SRC14 has broken my Rhino plugins

OK - got me panic’d again team.

My two commercial Rhino plugins - KaroroCAD and KaroroCAM are completely broken in R8 SRC14.

Both plugins are developed in Grasshopper with a custom UI and compiled to a YAK file using the Rhino Script Compiler.

KaroroCAD is developed in R7 as I have committed to supporting R7 until R9 is released.

KaroroCAM is developed in R8.

The source code opens and runs as expected in R8 SRC14, however in both cases the compiled code appears to run ONCE then close.

I have never needed to use the GH player “Keep Open After Command Completes” check box for my code - and its never been available in R7 anyway.

I will look if that check might fix KaroroCAM and will report back.

DK

Hi @kiteboardshaper
I’m afraid we need more details to understand what is going on. Is this something you can repeat on a sample piece of code? I can imagine you don’t want to share the source code of your plugins, but if you do I m happy to try reproducing the issue.

Hi Gijs,

You can install yourself from the package manager “KaroroCAD” - there are a few GH dependencies needed.

I’ve just setup and new PC and have ‘lost’ the R8 script compiler… Will do some more tests locally as soon as I find it

OK - so I have tested KaroroCAM - the R8 only plugin - with the “Keep Open After Command Completes” check box ticked. But no result.

The plugin shows all the appearance of being run once then being closed.

I’ll advise my clients to stay with SR13 for now and pray McNeel has not killed my products off.

Cheers

DK

I installed KaroroCam, and when I run it (many missing plugins btw that you depend on) I get a browser window. When I close it and run it again I get a message that the program is already running. I assume that is the issue you are having?
What code do you run when the user closes the window?

Maybe @AndyPayne or @kike have an idea, as apparently there have been made some changes because of grasshopper player leaving behind display objects.

Hi Gijs,

My plugin uses an ETO webview as the user interface - the browser window should look like this when everything is running OK:

The message you get when you close the UI window gives the option to re open the UI window or close Rhino completely - this avoids the issue of the UI being closed but the plugin still running/showing in the Rhino doc.

This breaking change smells A LOT like a fix has been done to kill off GH player geo still showing in the Rhino UI - unfortunately that ‘fix’ kills the running of my plugins.

Cheers

DK

This is the code that runs when that ETO.Webview window is closed:

def OnClosed(*args):
    GO = False
    option = rs.MessageBox("""    The KaroroCAM contol window was closed
        
      Did you want to finish your session?
        
Press YES to close KaroroCAM or NO to return""",324)
    if option == 6:
        rs.Exit()
    if option == 7:
        ghenv.Component.ExpireSolution(True)

(side note you might want to fix this typo)

I’ll ask Andy and Kike to chime in, as they have been working on this.

1 Like

haha - thanks - my spelling is “Engineer” level at best…

Hi @kiteboardshaper,

I’m trying to launch KaroroCAM. But there are two components that I’m unable to found.

This is what I get so far here.

Please update to latest 8.14 RC from today and test it.

@kiteboardshaper I’ve logged the issue as
RH-84943 Plugin doesn’t run when launched the second time

@kike I don’t think you necessarily need it to see the issue. Once you close that and stay in Rhino, then try to run the tool again, you’ll get a message that the tool is already running, and the dialog will not pop up again.

@kiteboardshaper I am sending you the latest dujour of 8.14. I’m not sure if the tool now works as expected (but I do see a change in behavior). Could you test and report back?
thanks.

RH-84943 is fixed in Rhino 8 Service Release 14

Hi @kike

Thanks, those components are from the Bengesht GH plugin and are the local server driving HTTP to the ETO.Webview window:

Its FINE tho - your picture shows that the preview geometry is showing up, which shows the rest of the code is actually working. I was getting a complete failure on the earlier SRC14 version.

@Gijs I’m just downloading the version on your link now and will report back soon.

Cheers

DK

Hi Guys,

I can confirm that both of my plugins are working in Version 8 SR14 (8.14.24332.15001, 2024-11-27):

Thank you for your fast work on looking at this.

Cheers

DK

6 Likes