GH - Missing Definition Objects in Rhino8 Server but not in Rhino8 app

I’ve seen these error messages before for missing components.

In this case, I can open the .gh file in the Rhino8 app running on the AWS server, while logged in as RhinoComputeUser. The file is in the RhinoComputeUser’s Document folder.

However, when I hit the Rhino server itself for the exact same .gh file served by my middleware server, I get the Missing Definition Objects error.

Is there another possible explanation for these messages besides missing components.

(I have a mix of .gha componets and PackageManager components.)

Bill

Here are the log entries if that helps:

{"Timestamp":"2024-09-02T19:16:03.9669242+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:03.9786798+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:03.9965037+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:03.9976391+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.0088335+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.0100243+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.1079022+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.1089377+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.2456224+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.2514145+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.Exception: GH - Missing Definition Objects","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.5117412+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Pufferfish.Components.Components_Curve._5_Curve.BoundingRectangle.SolveInstance(IGH_DataAccess DA)\r\n   at Grasshopper.Kernel.GH_Component.Solution_Compute_MixedAccess(GH_StructureIterator it)","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.5631560+00:00","Level":"Error","MessageTemplate":"An exception occurred while processing request","RenderedMessage":"An exception occurred while processing request","Exception":"System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at GhGltfConverter.glTfGhConverterComponent.SetMaterials(Gltf gltf, List`1 materialIndices, List`1 materialSpecs)\r\n   at GhGltfConverter.glTfGhConverterComponent.SolveInstance(IGH_DataAccess DA)\r\n   at Grasshopper.Kernel.GH_Component.Solution_Compute_MixedAccess(GH_StructureIterator it)","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.5659448+00:00","Level":"Error","MessageTemplate":"Expression generated an error for (startPt, base): Left hand value of operator α is Null: component \"Expression\" (8c77d191-053e-4aee-b5a2-bddaf23d074e)","RenderedMessage":"Expression generated an error for (startPt, base): Left hand value of operator α is Null: component \"Expression\" (8c77d191-053e-4aee-b5a2-bddaf23d074e)","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}
{"Timestamp":"2024-09-02T19:16:04.5663365+00:00","Level":"Error","MessageTemplate":"Expression generated an error for (startPt, base): Left hand value of operator α is Null: component \"Expression\" (3094124e-3d14-4300-b76e-0ab66d9978a6)","RenderedMessage":"Expression generated an error for (startPt, base): Left hand value of operator α is Null: component \"Expression\" (3094124e-3d14-4300-b76e-0ab66d9978a6)","Properties":{"RequestId":"0HN6BGEMIEQEN:00000001","RequestPath":"/grasshopper","ConnectionId":"0HN6BGEMIEQEN"}}

I am experiencing the same problem:

When I login to the VM and start Rhino & GH there everything works as expected. However, as soon as I use the same definition as a Hops component, or try to use it through a browser app, I get the error “GH - Missing Definition Objects”.

Any tips anyone?

I am also experiencing this issue. Running a definition in the GH GUI works fine, but when I try and run it through Hops or rhino.compute I see the “GH - Missing Definition Objects” error. Has anyone found a solution? It would be nice if I could see which components were missing definitions but this doesn’t seem to be possible.

Hi, same thing here !
It’s a pain to troubleshoot definitions with unclear error messages.
I’ve even tried deleting all nodes, in batches, and iterate. I made it till there was no more nodes in the original definition. Still the same error, how is this even possible ?
Another fresh definition with, let’s say, a A+B simple definition, works fine.
@AndyPayne This is exactly this kind of errors that makes me loose my whole day trying to troubleshoot a definition. Not reproducible in the app, even via the compute VM. How can we know what’s actually wrong in the definition ?

Thanks for looking at this, it’s an important problem when using compute.

Is it possible to send as simple of definition as you can which still shows the error message? You can DM me if you can’t attach it here.

Well the error rather seems to be linked to some caching. It’s impossible that an empty definition would return a GH - Missing Definition Objects error… (?)

I’ve deleted my “DefinitionA” ‘s nodes step by step, and saved each time.
When it’s used by a Hops component in another Grasshopper “Caller Definition”, it seems this “Caller Definition” detects the saving of “DefinitionA” and runs again the Hops solving. Since I wanted to be sure, I’ve disabled caching options on the Hops Component
And each time I’ve selected again the “DefinitionA” by clicking Path… and clicking OK. Even selecting another working definition in between.

Since images are worth 10’000 words :slight_smile: :

Animation

I guess you could try manually clearing the cache yourself. Try deleting any files located in C:\Users\yournamehere\AppData\Roaming\McNeel\rhino.compute\definitioncache