Closed sergioschena-db closed 1 year ago
Hello @sergioschena-db,
Thanks for creating this issue and apologizes for the very late answer!
The issue may have two root causes:
sudo apt-get install libosmesa6
. Could you please try that solution and post in this thread if that solves the issue on your side or not?Thanks @lboucin for your answer.
I am on Ubuntu 22.04.2 LTS.
I have installed libosmesa6
, but still getting the same dlopen
errors. I think the problem is the missing libEGL.so.1
.
I have also tried by installing some packages installing ligEGL.so
(e.g. libegl1
, libegl1-mesa
).
I don't have anymore the dlopen
errors, but now I have
Graphical Error in initGLContextAndFrameBuffer_t: context fail:
Any advice you can give me here ?
Hi @sergioschena-db, thanks for your fast answer!
I've made some tests yesterday (with branch issue109/bug755776) and I do reproduce the same initGLContextAndFrameBuffer_t
error, when installing libegl1
. I think the issue is that our RomViewerSharedLib.so depends on libEGL, which is useless for offscreen png rendering. This BUG has been fixed with Twin Builder 23R2 release (see below)
but I still have to update the twin model from our example data repo (that is downloaded at the beginning of the pytwin example script).
I'll ping you once it is done, and that would be very nice of you if you could give it a try and post your feedback here.
Thanks BR/L.
@lboucin Will I have to wait for a new release of pytwin
to have Twin Builder 23R2 ?
@sergioschena-db nope, you should be able to keep using 0.3.0
Ansys Twin Builder is the software that let you create a twin model and export it under a twin file, while pytwin is one way of consuming it. Once I will have updated the twin file on our example data repo, you should be able to evaluate it with pytwin 0.3.0.
That said, a new release of pytwin (0.4.0) with better support of our ROM with field input and/or output will be available very soon (you may have a look at the new example in pytwin dev doc).
Great! I thought an update of the TwinRuntimeSDK bundled with pytwin
was needed.
@lboucin Let me know when I can test again and if I still need to install libosmesa6
.
@lboucin any update on the example file for pytwin based on 23R2 ?
Hello @sergioschena-db,
I'm sorry for the long answer delay. But good news: I've uploaded a new twin file (see ThermalTBROM_23R2.twin) for this example, that has the right RomViewerSharedLib.so library without the legacy dependencies to the libGL*.so libraries.
PyTwin now unit tests this new twin file and successfully runs image generation with it on Github Ubuntu 20.04 runners (see PR119).
To try it on your side, could you please:
twin_file = download_file("ThermalTBROM_23R2.twin", "twin_files", force_download=True)
on line 53sudo apt-get install libosmesa6
That should solve the issue you encountered.
Could you please try these two steps and tell me if the issue is solved on your side too?
Thanks once more for your patience in letting us solve this issue.
BR/L.
It works ! Thanks @lboucin !
🔍 Before submitting the issue
🐞 Description of the bug
Running the 3D Field Rom example, I am facing some errors related to the point cloud-based ROM Viewer embedded in the twin runtime.
When the model is initialised and the first output is updated, with the following code:
the following errors are logged:
I can also find the following lines logged in the model log file:
As a consequence, no image file is generated in the ROM directory and the following cell fails to display the image:
I suppose that some
.so
are missing and I was expecting them to be installed with thepytwin
package, as this ROM viewer should be embedded in the runtime.📝 Steps to reproduce
In a fresh environment, i.e. without any specific library added to the classpath, install pytwin and then run the 3D Field ROM example.
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
0.3.0
🐍 Which Python version are you using?
3.10
📦 Installed packages