Rhino Compute (Hops) Application startup exception

Hey there

I have a problem regarding the Rhino Compute Server.
I’m running Rhino 8 and installed Hops v.0.16.4.

Hops is running on Grasshopper Startup with the console Window open.

There is a Application startup exception as soon as it starts. If i direct in the browser to the localhost:6xxx there is " An error occurred while starting the application." written.

I’ve tried reinstalling Rhino and Hops but nothing worked. Can u help me?

Here is the complete Compute Log:

[21:45:48 INF] Rhino compute started at 12.02.2024 21:45:48
[21:45:48 INF] Initiliazing reverse proxy at 12.02.2024 21:45:48
[21:45:48 INF] Spawn children at startup is set to True
[21:45:48 INF] Now listening on: http://localhost:6500
[21:45:48 INF] Application started. Press Ctrl+C to shut down.
[21:45:48 INF] Hosting environment: Production
[21:45:48 INF] Content root path: C:\Users\username\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Hops\0.16.3\rhino.compute
CG [21:45:52 INF] Child process started at 12.02.2024 21:45:52
CG [21:45:52 INF] Parsed port = 6001
CG [21:45:54 FTL] Application startup exception
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Rhino.Runtime.InProcess.RhinoCore.InternalStartup(Int32 argc, String argv, StartupInfo& info, IntPtr hostWnd)
at Rhino.Runtime.InProcess.RhinoCore…ctor(String args, WindowStyle windowStyle, IntPtr hostWnd)
at Rhino.Runtime.InProcess.RhinoCore…ctor(String args, WindowStyle windowStyle)
at compute.geometry.Startup.RhinoCoreStartup() in D:\BuildAgent\work\4852f584398a78e4\src\compute.geometry\Startup.cs:line 45
at compute.geometry.Startup.Configure(IApplicationBuilder app) in D:\BuildAgent\work\4852f584398a78e4\src\compute.geometry\Startup.cs:line 30
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
CG [21:45:54 INF] Now listening on: http://localhost:6001
CG [21:45:54 INF] Application started. Press Ctrl+C to shut down.
CG [21:45:54 INF] Hosting environment: Production
CG [21:45:54 INF] Content root path: C:\Users\username\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Hops\0.16.3\rhino.compute
CG [21:45:58 INF] Child process started at 12.02.2024 21:45:58
[21:45:58 ERR] HTTP GET /launch responded 500 in 10215.9978 ms
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
— End of stack trace from previous location —
at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
[21:45:58 ERR] Connection id “0HN1C1EBU3FO5”, Request id “0HN1C1EBU3FO5:00000001”: An unhandled exception was thrown by the application.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
— End of stack trace from previous location —
at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
CG [21:45:58 INF] Parsed port = 6002

Do you have any 3rd party plugins installed on your machine? If so, could you try (temporarily) removing them to see if this fixes the issue?

Hey Andy

Thank u for replying.

I uninstalled all Plugins und reinstalled Rhino 8 completely. Unfortunately that doesn’t work…

Ok. Are you running this locally? Or on a VM? The console log you reported looks like you installed Hops 0.16.3?

I’m running this locally, not in a VM. Yes correct i installed 0.16.3 to try if 0.16.4 was the problem somehow. But i uninstalled it because the error was the same. Now 0.16.4 is running again (the posted log was from before).

I dont get why its changing ports all the time. First its on default :6500 then its going to 6000 - 600x…

The 6500 port is the one reserved for the rhino.compute.exe… this is the application that listens to incoming requests and then spins up multiple child processes running compute.geometry.exe… the port numbers that start 6000, 6001… are the ports dedicated to each child process. The rhino.compute.exe forwards each request to one of the child processes on one of the 6000 ports. Make sense?

Alright this makes sense. So this should be like that. But still the FTL Application startup Error shouldn’t be there.