Ladybug SDK always giving "Operation failed"
AnsweredHi!
We're trying to create panoramas on a server from PGR files automatically. I followed the installation steps from Ladybug SDK (got the apt packages installed and ran the installer script).
I tried to make&run a couple included scripts, like LadybugSimpleGrab and LadybugProcessStreamPostProcess, but it returns with a "Error: Ladybug library reported - Operation failed" message.
I can get the "Usage/help" screen when running some scripts without any params, so I think the compile was successful.
Tried to run it on 2 machines (both are headless servers): a tarditional x86_64 Ubuntu, and a qemu emulated x86_64 Ubuntu 20.04 vm running on Apple silicon - same outputs.
Do you have any ideas/recommendations on how to debug this?
-
Official comment
Hi Markus,
We managed to solve the issue with the SDK! One of the machine was a noraml onprem server, the other was a virtual machine.
We managed to make it work, but had to emulate a screen, since they were both headless servers.
Installing mesa drivers and xvfb solved the issue. Now when running the SDK with `xvfb-run <ladybug_cmd>` it works.
I believe the "Operation Failed" error message was coming when the context was initialising (before printing anything out, usually at the first lines of each programs main function, where you use the error macros).
In short, we managed to run it xvfb on a headless server, on a qemu amulated vagrant virtual machine and even in docker!
Balazs
-
Hello rbalazs,
Thank you for submitting this question. Let's concentrate on the traditional x86_64 Ubuntu.
This is not a virtual machine, right?
Is this also Ubuntu 20.04?
What version of Ladybug SDK are you using?
Could you please let me know the function which is returning Operation Failed?
Did installing the dependencies (apt packages) before the installation return any errors?Thanks,
Markus0 -
Hi Balazs,
Thanks for the update and glad to hear you could fix the issues.
Best Regards,
Markus0
Please sign in to leave a comment.
Comments
3 comments