-
Couldn't load subscription status.
- Fork 201
Description
Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
Description of the bug
When PyAEDT is used to instantiate an AEDT Desktop in non-graphical mode, sometimes a dialog pops up when the program crashes. The crash window allows the user to click to close or obtain more diagnostics information. Whichever python command was being issued at the time hangs until the user closes the dialog window. After closing the dialog window the function returns with an error code.
The crash happens seldomly so it is hard to reproduce and to try to troubleshoot why it happens. We will figure out how to catch the crash/returned error code and open a new desktop instance and move on. But... the reason for this post is that I would like to know how to prevent the dialog from halting the script of continuing to run. Is there a way to prevent this behavior? Some kind of non-interactive mode? Or of disabling diagnostic windows...? The error occurs after processing dozens or hundreds of files over periods of hours so continuous monitoring to close a crashed window is not an option.
Steps To Reproduce
-
Start a new Desktop session in non-graphical mode (non-graphical=True).
-
Work on HFSS projects and issue an hfss.validate_full_design() command (up to now we have only noticed the crash with this function).
-
Crash occurs and a dialog window with diagnostic options pops up (have not identified the reason of the crash yet).
-
hfss.validate_full_design() does not return until user closes the crash dialog window, preventing code from addressing crash the moment it occurs.
Which Operating System are you using?
Windows
Which Python version are you using?
3.12
Installed packages
annotated-types==0.7.0
ansys-pythonnet==3.1.0rc6
attrs==24.2.0
certifi==2025.8.3
cffi==1.17.1
charset-normalizer==3.4.3
clr_loader==0.2.7.post0
contourpy==1.3.2
cycler==0.12.1
defusedxml==0.7.1
dicttoxml==1.7.16
fonttools==4.56.0
fpdf2==2.8.2
grpcio==1.75.1
idna==3.10
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
kiwisolver==1.4.8
matplotlib==3.10.1
networkx==3.4.2
numpy==2.2.2
packaging==25.0
pandas==2.2.3
pillow==11.1.0
plumbum==1.9.0
psutil==6.1.1
pyaedt==0.21.0
pycparser==2.22
pydantic==2.10.6
pydantic_core==2.27.2
pyedb==0.37.0
pyodbc==5.2.0
pyparsing==3.2.3
PyQt5==5.15.11
PyQt5-Qt5==5.15.2
PyQt5_sip==12.17.0
python-dateutil==2.9.0.post0
pytz==2025.1
pywin32==308
PyYAML==6.0.2
referencing==0.35.1
requests==2.32.5
rpds-py==0.22.3
rpyc==6.0.1
Rtree==1.3.0
scikit-rf==1.5.0
scipy==1.15.1
setuptools==78.1.0
six==1.17.0
toml==0.10.2
tomli_w==1.2.0
typing_extensions==4.12.2
tzdata==2025.1
urllib3==2.5.0
WMI==1.5.1