Error form radiationAnalysis when running Ladybug on Rhino Compute

Hi all!

I am checking if Ladybug is running with Rhino Compute.
For now, I am running Rhino Compute only on my local machine and I am using it with the example from http://www.github.com/mostaphaRoudsari/hydra_1/tree/master/Radiation_Analysis

The problem occurs with the radiationAnalysis but the rest of the components in that definition seem to work.

I get an error:

    [11:17:16 DBG] Skipping input tree... same input
    [11:17:16 ERR] An exception occured while processing request
    System.NullReferenceException:Object Reference Not Set to an instance of an object. 
       w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeInstance(Object instance, Object[] args)
       w Microsoft.Scripting.Interpreter.DynamicInstructionN.Run(InterpretedFrame frame)
       w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
       w Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
       w IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
       w RhinoPython.PyCompiledCode.Execute(PythonScript scope) w D:\BuildAgent\work\commercial\src4\rhino4\Plug-ins\ironpython\core\Runtime.cs:wiersz 165
       w GhPython.Component.ScriptingAncestorComponent.SafeSolveInstance(IGH_DataAccess da)
    [11:17:16 DBG] Microsoft.Scripting.Interpreter.InterpretedFrameInfo : ["checkUnits$307: 24: [341-341] '<module>'", "main$305: 690: [246-246] '<module>'", "CallSite.Target", "<unnamed>: 517: [493-495] '<module>'"]
    [11:17:16 DBG] Microsoft.Scripting.Runtime.DynamicStackFrame : ["checkUnits in <string>:341, System.Object Run2[PythonFunction,Object,Object](IronPython.Runtime.PythonFunction, System.Object)", "main in <string>:246, System.Object Run15[PythonFunction,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object](IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "<module> in <string>:493, System.Object Run2[CodeContext,FunctionCode,Object](IronPython.Runtime.CodeContext, IronPython.Runtime.FunctionCode)"]
    [11:17:16 DBG] PreviousStackTraces : ["   w GhPython.DocReplacement.GrasshopperDocument.get_ModelUnitSystem()\r\n   w Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Invoke(Object arg0)\r\n   w IronPython.Runtime.Binding.PythonGetMemberBinder.FastPropertyGet`1.GetProperty(CallSite site, TSelfType target, CodeContext context)\r\n   w System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)\r\n   w IronPython.Runtime.Method.MethodBinding.SelfTarget(CallSite site, CodeContext context, Object target)\r\n   w System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run15[T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14)\r\n   w IronPython.Compiler.PythonCallTargets.OriginalCallTarget14(PythonFunction function, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13)\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args)\r\n   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object )\r\n"]
    [11:17:16 ERR] An exception occured while processing request
    System.NullReferenceException: Object Reference Not Set to an instance of an object.
       w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeInstance(Object instance, Object[] args)
       w Microsoft.Scripting.Interpreter.DynamicInstructionN.Run(InterpretedFrame frame)
       w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
       w Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
       w IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
       w RhinoPython.PyCompiledCode.Execute(PythonScript scope) w D:\BuildAgent\work\commercial\src4\rhino4\Plug-ins\ironpython\core\Runtime.cs:wiersz 165
       w GhPython.Component.ScriptingAncestorComponent.SafeSolveInstance(IGH_DataAccess da)
       w Grasshopper.Kernel.GH_Component.Solution_Compute_MixedAccess(GH_StructureIterator it)
    [11:17:16 DBG] Microsoft.Scripting.Interpreter.InterpretedFrameInfo : ["checkUnits$307: 24: [341-341] '<module>'", "main$305: 690: [246-246] '<module>'", "CallSite.Target", "<unnamed>: 517: [493-495] '<module>'"]
    [11:17:16 DBG] Microsoft.Scripting.Runtime.DynamicStackFrame : ["checkUnits in <string>:341, System.Object Run2[PythonFunction,Object,Object](IronPython.Runtime.PythonFunction, System.Object)", "main in <string>:246, System.Object Run15[PythonFunction,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object](IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "<module> in <string>:493, System.Object Run2[CodeContext,FunctionCode,Object](IronPython.Runtime.CodeContext, IronPython.Runtime.FunctionCode)"]
    [11:17:16 DBG] PreviousStackTraces : ["   w GhPython.DocReplacement.GrasshopperDocument.get_ModelUnitSystem()\r\n   w Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Invoke(Object arg0)\r\n   w IronPython.Runtime.Binding.PythonGetMemberBinder.FastPropertyGet`1.GetProperty(CallSite site, TSelfType target, CodeContext context)\r\n   w System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)\r\n   w IronPython.Runtime.Method.MethodBinding.SelfTarget(CallSite site, CodeContext context, Object target)\r\n   w System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run15[T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14)\r\n   w IronPython.Compiler.PythonCallTargets.OriginalCallTarget14(PythonFunction function, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13)\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args)\r\n   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object )\r\n"]
    [11:17:16 DBG] IronPython.Runtime.Exceptions.PythonExceptions+BaseException : IronPython.Runtime.Exceptions.PythonExceptions+ExceptionDataWrapper
    [11:17:16 ERR] Error in grasshopper component: "radiationAnalysis" (97690e36-ba0a-44b3-9390-62083c602868): Solution exception:Object Reference Not Set to an instance of an object.
    [11:17:16 DBG] Warning in grasshopper component: "Mesh" (38e4600b-d7b2-4f57-9633-d562a38dd097): Floating parameter Mesh failed to collect data

I did also ask on the ladybug forum but nobody have responded until now

Can anybody help me with that? :slight_smile:

Hey @archicoder, this bug should be fixed in the current Rhino 7.2 release candidate (direct download).

The error above is caused by the plug-in calling scriptcontext.doc.ModelUnitSystem, which in turn tries to get the model units from the current Rhino doc. Compute is designed to be stateless, so there is no current doc, hence the NullReferenceException! In Rhino 7.2, these calls will return sensible defaults. See https://github.com/mcneel/compute.rhino3d/issues/117.

1 Like

Awesome!

Thank you @will for solving that issue and for a good description of the problem. :wink:

I hope you have a lovely rest during Christmas!
Happy holidays!

1 Like

Hi @will.
Bad news :slight_smile:
I got back to it after Christmas, but with Rhino 7.2.20343.11011 I still get an error.

127.0.0.1 - [2020-12-29T18:26:43.1299359+01:00] "POST /grasshopper HTTP/1.1" 500 -
[18:26:59 DBG] Using cached definition
[18:26:59 DBG] Skipping input tree... same input
[18:27:02 ERR] An exception occured while processing request
System.MissingMemberException: 'NoneType' object has no attribute 'Objects'
   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeInstance(Object instance, Object[] args)
   w Microsoft.Scripting.Interpreter.DynamicInstructionN.Run(InterpretedFrame frame)
   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   w Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
   w IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
   w RhinoPython.PyCompiledCode.Execute(PythonScript scope) w D:\BuildAgent\work\commercial\src4\rhino4\Plug-ins\ironpython\core\Runtime.cs:wiersz 165
   w GhPython.Component.ScriptingAncestorComponent.SafeSolveInstance(IGH_DataAccess da)
[18:27:02 DBG] Microsoft.Scripting.Interpreter.InterpretedFrameInfo : ["CallSite.Target", "text2srf$206: 412: [2981-2981] '<module>'", "createLegend$204: 1652: [2898-2898] '<module>'", "CallSite.Target", "CallSite.Target", "resultVisualization$197: 172: clear", "CallSite.Target", "main$179: 2995: [467-469] '<module>'", "CallSite.Target", "<unnamed>: 517: [493-495] '<module>'"]
[18:27:02 DBG] Microsoft.Scripting.Runtime.DynamicStackFrame : ["text2srf in <string>:2981, System.Object Run9[PythonFunction,Object,Object,Object,Object,Object,Object,Object,Object,Object](IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "createLegend in <string>:2898, System.Object lambda_method(System.Runtime.CompilerServices.Closure, IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "resultVisualization in <string>:173, System.Object lambda_method(System.Runtime.CompilerServices.Closure, IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "main in <string>:467, System.Object Run15[PythonFunction,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object](IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "<module> in <string>:493, System.Object Run2[CodeContext,FunctionCode,Object](IronPython.Runtime.CodeContext, IronPython.Runtime.FunctionCode)"]
[18:27:02 DBG] PreviousStackTraces : ["   w Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run9[T0,T1,T2,T3,T4,T5,T6,T7,T8,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)\r\n   w IronPython.Runtime.Method.MethodBinding`5.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`8.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args)\r\n   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object )\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeInstance(Object instance, Object[] args)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstructionN.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`16.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args)\r\n   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Int32 , Object , Object , Object , Object , Object )\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeInstance(Object instance, Object[] args)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstructionN.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run15[T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14)\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args)\r\n   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object )\r\n"]
[18:27:02 ERR] An exception occured while processing request
System.MissingMemberException: 'NoneType' object has no attribute 'Objects'
   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeInstance(Object instance, Object[] args)
   w Microsoft.Scripting.Interpreter.DynamicInstructionN.Run(InterpretedFrame frame)
   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   w Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
   w IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
   w RhinoPython.PyCompiledCode.Execute(PythonScript scope) w D:\BuildAgent\work\commercial\src4\rhino4\Plug-ins\ironpython\core\Runtime.cs:wiersz 165
   w GhPython.Component.ScriptingAncestorComponent.SafeSolveInstance(IGH_DataAccess da)
   w Grasshopper.Kernel.GH_Component.Solution_Compute_MixedAccess(GH_StructureIterator it)
[18:27:02 DBG] Microsoft.Scripting.Interpreter.InterpretedFrameInfo : ["CallSite.Target", "text2srf$206: 412: [2981-2981] '<module>'", "createLegend$204: 1652: [2898-2898] '<module>'", "CallSite.Target", "CallSite.Target", "resultVisualization$197: 172: clear", "CallSite.Target", "main$179: 2995: [467-469] '<module>'", "CallSite.Target", "<unnamed>: 517: [493-495] '<module>'"]
[18:27:02 DBG] Microsoft.Scripting.Runtime.DynamicStackFrame : ["text2srf in <string>:2981, System.Object Run9[PythonFunction,Object,Object,Object,Object,Object,Object,Object,Object,Object](IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "createLegend in <string>:2898, System.Object lambda_method(System.Runtime.CompilerServices.Closure, IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "resultVisualization in <string>:173, System.Object lambda_method(System.Runtime.CompilerServices.Closure, IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "main in <string>:467, System.Object Run15[PythonFunction,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object,Object](IronPython.Runtime.PythonFunction, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "<module> in <string>:493, System.Object Run2[CodeContext,FunctionCode,Object](IronPython.Runtime.CodeContext, IronPython.Runtime.FunctionCode)"]
[18:27:02 DBG] PreviousStackTraces : ["   w Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run9[T0,T1,T2,T3,T4,T5,T6,T7,T8,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)\r\n   w IronPython.Runtime.Method.MethodBinding`5.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`8.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args)\r\n   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object )\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeInstance(Object instance, Object[] args)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstructionN.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstruction`16.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args)\r\n   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Int32 , Object , Object , Object , Object , Object )\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeInstance(Object instance, Object[] args)\r\n   w Microsoft.Scripting.Interpreter.DynamicInstructionN.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run15[T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14)\r\n", "   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args)\r\n   w Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n   w Microsoft.Scripting.Interpreter.LightLambda.Run(Object[] arguments)\r\n   w CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object , Object )\r\n"]
[18:27:02 DBG] IronPython.Runtime.Exceptions.PythonExceptions+BaseException : IronPython.Runtime.Exceptions.PythonExceptions+ExceptionDataWrapper
[18:27:02 DBG] Warning in grasshopper component: "Mesh" (38e4600b-d7b2-4f57-9633-d562a38dd097): Floating parameter Mesh failed to collect data
[18:27:02 DBG] Warning in grasshopper component: "Mesh" (9b98e89c-25c8-45ad-94cf-b3057640da8b): Floating parameter Mesh failed to collect data
[18:27:02 ERR] Error in grasshopper component: "radiationAnalysis" (97690e36-ba0a-44b3-9390-62083c602868): Solution exception:'NoneType' object has no attribute 'Objects'
127.0.0.1 - [2020-12-29T18:27:02.4781538+01:00] "POST /grasshopper HTTP/1.1" 500

Looks like a different error to me – that’s good news in my book! I’ll see if I can track this one down…

Ah, I hadn’t realised that this example uses the legacy Ladybug. Unfortunately this version of Ladybug has references to Rhino’s ActiveDoc which doesn’t exist in the context of Compute (it’s supposed to be stateless, so there is no “open” Rhino document).

Can you try recreating the same workflow using the new version of Ladybug (v1.x.x)? I had a go and it seems to produce comparable results and it runs without errors in Compute. I’m no expert though!

Radiation_Analysis_110.gh (106.8 KB)