Hi,
Running a bunch of IDF files with the RunIDF component is giving me the following error:
Runtime error (AggregateException): One or more errors occurred.
Traceback:
line 202, in run_function_in_parallel, “C:\Program Files\ladybug_tools\python\Lib\site-packages\ladybug_rhino\grasshopper.py”
line 133, in script
The thing is that the simulations were performed OK. I get all results in the respective output folders. But the outputs of the component are empty [of course, because of the error].
I’m running the files in parallel.
Any ideas?
It seems possible that one or more of the simulations failed. You can see the real error if you set the _cpu_count_ to 1. The generic “One or more errors occurred” is what you get when one part of a larger parallel process fails.
If setting the CPU count to 1 doesn’t help you narrow down the cause, then upload a sample file and I can take a look.
Hi @chris ,
Running by 1 works fine for all cases.
Attached the necessary files to recreate the issue.
Thanks!!
-A. Simulation_Folders.zip (44.4 KB) RunIDF.gh (23.3 KB)
Hi @chris,
At first it can be related that i was saving the simulations over the cloud [onedrive]. Tested saving on the local machine and … it isn’t the problem.
Tried with the EPW link I sent in the GH above and it works OK.
So the problem appears when using ANY of my local EPW files.
Can you try with the attached here? ISR_D_Eilat-Hozman.AP_.401990_TMYx.2006-2020_Standard Wind-Corrected.zip (254.8 KB)
I’m pretty sure it wont work now, even for you
Just to add, the simulations are done fine. They don’t fail. Just at the end the component fails showing the error. As a result the outputs are missing.
Maybe the writing of files to the cloud was what caused the problem. I imagine that, if your internet connection wasn’t perfect and it dropped for a millisecond during the run, you could get an error that was mostly undetectable from just looking at the result files but would be caught in the whole process.
At least that is my best guess until I can find a way to recreate the issue.
Oh,
Those are bad news [for me].
The drive is not the problem since I’m running on my computer itself.
Tried restarting Rhino/Gh but still failing at the end.
I suspect that some file is not found, or something similar. When I tried to run without the input idf files in the right location [as specified in the _idf input] the error [including the lines in the code] were the same that I get when the run ends.
Next week I’ll try to test in a different computer and get back with insights. In the meantime … clueless.
Thanks @chris !
-A.
Hi @chris,
Update: Tested in 2 different computers. Running just one CPU is fine, meaning the simulation is performed and the HB_RunIDF doesn’t report errors. Simulating more than one, the simulations are performed but the component report the above mentioned error.
This happens both running locally or on the cloud.
Any ideas what to check?
-A.
I really have no idea what could be causing this issue. If you look at the component code, the same exact function is being used to run the code in parallel as is used for the single-core simulation:
… and the fact that I cannot recreate it leaves me at a loss. I guess the only next thing I can ask is what version of Rhino (including the SR) and what version of Windows are you running? FYI, I tried running your sample in both Rhino 7.38 and 8.18 and I could not recreate it. I am using Windows 11.
Maybe if we can figure out what is different between your setup and mine, that could lead us towards an explanation.
Tried some other EPWs, not only my local ones. To my surprise i see that the NY Kennedy comes through but NY La Guardia [onebuilding and energyplus] don’t.