July 21, 2022 at 8:34 pmfdtdisgreatSubscriber
I am using Python on Spyder to run Lumerical. I am experiencing intermittent errors when running 'fdtd = lumapi.FDTD()' to open Lumerical. The error is:
appOpen error: \n Failed to start messaging, check licenses...
Typically this error will occur many times in a row before it suddenly works. Then the next day the error will be back. I am able to open Lumerical GUI via terminal consistently without any problems, and my licenses are correctly configured. I have the same preamble as suggested on Lumerical website (i.e spec_linux = importlib.util.spec_from_file_location("lumapi","/opt/lumerical/v221/api/python/lumapi.py" ) etc.)
In addition, when I am able to run Lumerical via Python, sometimes I get an error when trying to save transmission results as a variable in Python (i.e. I define a function in Python that runs Lumerical, and the return of the function is 'fdtd.getresult("Trans_Monitor","T")' ). The error I get is 'failed to get variable'. This error is also intermittent, and I suspect related to the first error.
I am running this on a RHEL server. Lumerical Version is 2022 R1.
Thanks in advance.
July 22, 2022 at 1:19 amfdtdisgreatSubscriber
I've also noticed that each time I try to open it and it fails, an instance of 'fdtd-solutions-app' opens and hangs in the background (according to System Monitor).
July 22, 2022 at 4:51 pmLito YapAnsys Employee
Please see this KB article: >https://optics.ansys.com/hc/en-us/articles/5771091294739
Also, ensure that you have write access to the “/tmp” folder.
And running on a supported RHEL version: >https://www.lumerical.com/licensing/system-requirements/
July 24, 2022 at 1:59 amfdtdisgreatSubscriber
Thanks for your response @lito yap.
I am able to run Lumerical consistently through the terminal, so RHEL version is not the problem.
I just restarted the server and Python is now able to open Lumerical without any errors (no other changes have been made to the Python code I am running or to the server itself). This makes me wonder if there is a problem with Lumerical not releasing resources or programs if it is closed a certain way (i.e. stopping Lumerical via Python console vs selecting ‘Quit and don’t save’ vs closing Lumerical GUI whilst it is running)? Is there known problem with regards to this? Restarting the server each time this problem occurs would not be a feasible long-term solution.
Thank you in advance.
July 26, 2022 at 7:15 pm
- You must be logged in to reply to this topic.
Simulation World 2022
Earth Rescue – An Ansys Online Series
- “Import optical generation” or “delta generation rate”?
- Error on Lumerical device
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Using a license file on a new license server
- Ansys Insight: Convergence issues in CHARGE
- Ansys Insight: About override mesh in FDTD: its use and settings
- Ansys Insight: Diverging Simulations
- Lumerical support has moved to the Ansys Learning Forum (ALF)
- Is there a Lumerical script command to output the Simulation and Memory requirements?
- focusing efficiency