Solved

When I wanted to run the Standardalone file link Zemax in Python, this error message popped up when I created the StandardAlone Application.

  • 31 August 2022
  • 1 reply
  • 50 views

failed to launch C:\Users\86137\Documents\Zemax\ZOS-API Projects\PythonStandaloneApplication\PythonStandaloneApplication.sln:the operation was canceled by user

And when I run the  file get. I meet the error like this.

I wonder if there is something missing or something wrong.

icon

Best answer by MichaelH 31 August 2022, 19:41

View original

1 reply

Userlevel 6
Badge +2

This is weird since it looks like you’re getting a Windows error and not a Python error.

From a quick search of “ANOMALY: use of REX.w is meaningless”, this appears to be a corrupt low-level JAVA issue; it’s common that this is as either a hardware driver issue or an anti-virus issue.  It appears that AMD GPU’s and TrendMicro AV are common culprits...since ZOS doesn’t rely on GPU, I would suspect it's maybe an anti-virus issue.  However, other low level JAVA programs could also cause this issue.  Can you temporarily disable your AV and see if you can get it to run? 

Reply