I’ve tried to find more information on this topic here but have had trouble getting a clear answer. I’m using a Heron component in one of my Grasshopper definitions to do a coordinate transformation and I’ve created a Hops for that definition, but I get the error “Object reference not set to an instance of an object” on that specific component as the error message from rhino.compute. Is this because I’m using an external plugin? I read somewhere there are no issues with that as long as the plugin can be run fine in headless mode, which this one can.
Are you running rhino.compute locally? Or is you rhino.compute on a VM? It’s possible that your plugin isn’t being loaded. You can hit the endpoint /plugins/gh/installed and it will return a list of the plugins which rhino.compute has installed.
I am running locally at the moment. This is the result of hitting that endpoint. I will reach out to the Heron dev. Perhaps it is incompatible. Thanks again, Andy.
{"Heron":"0.4.4","Hops":"0.16.27","Human":"1.3.1","jSwan":"1.2.1","Mesh Pipe":"1.0.0.0","MeshEdit Components":"2.0.0.0","Pufferfish":"3.0.0.0","Weaverbird":"0.9.0.1"}
Is it possible to share the definition that you’re using so I can test on my machine? Thanks.
It is and but I’ll save your time for now unless it becomes a major issue. I’ll see what the developer gets back with. In the meantime I replaced the node with some vanilla Grasshopper instead. Thanks, Andy.
Hi Andy! I will take you up on that offer since I seem to be having the same problem with both Pufferfish as well as the Speckle Plugin. When using both of those in my script and loading the script via rhino.compute I get the error “Object reference not set to an instance of an object”. I’ve attached a file for you to test on your end and your help is greatly appreciated.
building.gh (21.0 KB)
Hi Andy! I did some more debugging this week weekend. Some of those issues appear to be related to incompatible plugins. I’ve removed as many of those as I could and gone with alternatives that work or vanilla Grasshopper. These are my errors now (screenshot attached). I’ve also included my updated script below as well. Two of those errors seem to be Speckle related but I’ve read that it should work fine. See here. If you know what might be causing these issues, please let me know. I’m running rhino.compute on an Azure server and all the external plugins in this script are installed on the RhinoComputeUser account on that VM.
building.gh (25.4 KB)
I figured out the event watcher error. It just had to do with the Read File node not being supported. I was using internalized data in the Read File node as a default value. Then I’ve just removed Speckle from the process for now and I’ve asked their team if they understand why those errors might be there.
Hi Aidan. This is difficult for me to troubleshoot because I don’t currently have the Speckle plugin installed (but I can try to do this if necessary). But, you also haven’t attached all of the referenced files that I would need in order to test this. I see there are links to the speckle system and also to a geojson file. Can you provide those details as well?
Hi Andy, don’t worry about it. I don’t need to use Speckle and have found a vanilla Grasshopper workaround. I thought I had internalized that data in the .gh file but it must not have worked. All good for now though.
