Hi!
I’m having an issue with a Grasshopper model that crashes when run with a local instance of rhino compute
but not with a remote one.
Here’s what i get when i try and open the definition (that doesn’t even open in the end):
CG [13:54:46 DBG] Received a HTTP POST request to the /io endpoint
CG [13:54:47 ERR] Connection id "0HNCS9ERMDO7K", Request id "0HNCS9ERMDO7K:00000003": An unhandled exception was thrown by the application.
System.FormatException: The input string '0000.00' was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, ReadOnlySpan`1 value, TypeCode type)
at System.Decimal.Parse(String s)
at Grasshopper.GUI.Base.GH_DigitNumber.get_Value()
at Grasshopper.GUI.Base.GH_DigitNumber.set_Value(Decimal Value)
at Grasshopper.GUI.Base.GH_DigitScrollerBase.set_Value(Decimal Value)
at Grasshopper.GUI.Base.GH_DigitScrollerBase..ctor()
at Grasshopper.Kernel.Special.GH_ItemPickerAttributes..ctor(GH_ItemPicker owner)
at Grasshopper.Kernel.Special.GH_ItemPicker.CreateAttributes()
at Grasshopper.Kernel.GH_Document.ReadObjectList(GH_IReader reader, String collection, List`1 plugins)
at Grasshopper.Kernel.GH_Document.Read(GH_IReader reader)
at GH_IO.Serialization.GH_Archive.ExtractObject(GH_ISerializable target, String targetName)
at compute.geometry.GrasshopperDefinition.Construct(GH_Archive archive) in D:\BuildAgent\work\4852f584398a78e4\src\compute.geometry\GrasshopperDefinition.cs:line 200
at compute.geometry.GrasshopperDefinition.FromUrl(String url, Boolean cache) in D:\BuildAgent\work\4852f584398a78e4\src\compute.geometry\GrasshopperDefinition.cs:line 95
at compute.geometry.ResthopperEndpointsModule.GetIoNamesHelper(HttpContext ctx, Boolean asPost) in D:\BuildAgent\work\4852f584398a78e4\src\compute.geometry\ResthopperEndpoints.cs:line 217
at compute.geometry.ResthopperEndpointsModule.PostIoNames(HttpContext ctx) in D:\BuildAgent\work\4852f584398a78e4\src\compute.geometry\ResthopperEndpoints.cs:line 191
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
RC [13:54:47 ERR] HTTP POST /io responded 500 in 1653.2823 ms
The thing is, i can solve this definition with a remote server so i guess it may be closely related to this topic (in the sense that it may have something to do with culture info) but a bit more tedious to solve since the logs don’t designate any suspect ID (it completely prevents the definition from opening). It may have something to do with a Flexibility component (hence here) but it’s hard to debug.
The file i use is private as it is customer related but i’d be happy to share privately if required.
The culture info bug is a known thing for us (completely preventing us from using panels such as “0.1” for example since it would fail to convert in a number) but it’s usually relatd to a component. This is a new behaviour for us.
Thanks in advance,
Best,
Quentin