🔍 Before submitting the issue
🐞 Description of the bug
Process is terminated due to StackOverflowException.
[I 2026-02-27 15:45:56.838 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), keep random ports
[W 2026-02-27 15:45:56.838 ServerApp] kernel 24163caa-a059-4c52-8ec3-e197fb190ceb restarted
[I 2026-02-27 15:45:56.841 ServerApp] Starting buffering for 24163caa-a059-4c52-8ec3-e197fb190ceb:b42853be-5a6c-42c3-8f6f-74f1f9b21c89
[I 2026-02-27 15:45:56.846 ServerApp] Adapting from protocol version 5.3 (kernel 24163caa-a059-4c52-8ec3-e197fb190ceb) to 5.4 (client).
[I 2026-02-27 15:45:56.847 ServerApp] Connecting to kernel 24163caa-a059-4c52-8ec3-e197fb190ceb.
[I 2026-02-27 15:45:56.847 ServerApp] Restoring connection for 24163caa-a059-4c52-8ec3-e197fb190ceb:b42853be-5a6c-42c3-8f6f-74f1f9b21c89
📝 Steps to reproduce
from ansys.mechanical.core import App
app = App(version = 252)
app.update_globals(globals())
project_path = r"C:\Users\name.mechdb"
app.open(project_path, remove_lock=True)
result = app.DataModel.GetObjectsByName("Maximum Principal Stress")[0]
formatted_value = 0.012
Pt = app.Graphics.CreateWorldPoint(0, 0, 0)
label = app.Graphics.Scene.Factory2D.CreateText(Pt,str(formatted_value))
label.Color = 0x000000 # black
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
25R2
🐍 Which Python version are you using?
3.10
📦 Installed packages
Package Version
------------------------------------- -----------
ansys-api-mechanical 0.1.3
ansys-api-platform-instancemanagement 1.1.3
ansys-mechanical-core 0.11.30
ansys-mechanical-env 0.1.16
ansys-mechanical-stubs 0.1.6
ansys-platform-instancemanagement 1.1.2
ansys-pythonnet 3.1.0rc6
ansys-tools-common 0.4.3
ansys-tools-path 0.8.1
anyio 4.12.1
appdirs 1.4.4
argon2-cffi 25.1.0
argon2-cffi-bindings 25.1.0
arrow 1.4.0
asttokens 3.0.1
async-lru 2.1.0
attrs 25.4.0
babel 2.18.0
beautifulsoup4 4.14.3
bleach 6.3.0
certifi 2026.1.4
cffi 2.0.0
charset-normalizer 3.4.4
click 8.3.1
clr-loader 0.2.6
colorama 0.4.6
comm 0.2.3
debugpy 1.8.20
decorator 5.2.1
defusedxml 0.7.1
exceptiongroup 1.3.1
executing 2.2.1
fastjsonschema 2.21.2
fqdn 1.5.1
grpcio 1.78.0
h11 0.16.0
httpcore 1.0.9
httpx 0.28.1
idna 3.11
importlib_metadata 8.7.1
ipykernel 7.1.0
ipython 8.38.0
isoduration 20.11.0
jedi 0.19.2
Jinja2 3.1.6
json5 0.13.0
jsonpointer 3.0.0
jsonschema 4.26.0
jsonschema-specifications 2025.9.1
jupyter_client 8.8.0
jupyter_core 5.9.1
jupyter-events 0.12.0
jupyter-lsp 2.3.0
jupyter_server 2.17.0
jupyter_server_terminals 0.5.4
jupyterlab 4.5.3
jupyterlab_pygments 0.3.0
jupyterlab_server 2.28.0
lark 1.3.1
MarkupSafe 3.0.3
matplotlib-inline 0.2.1
mistune 3.2.0
nbclient 0.10.4
nbconvert 7.17.0
nbformat 5.10.4
nest-asyncio 1.6.0
notebook_shim 0.2.4
overrides 7.7.0
packaging 26.0
pandocfilters 1.5.1
parso 0.8.5
pip 23.0.1
platformdirs 4.5.1
prometheus_client 0.24.1
prompt_toolkit 3.0.52
protobuf 5.29.6
psutil 7.2.2
pure_eval 0.2.3
pycparser 3.0
Pygments 2.19.2
python-dateutil 2.9.0.post0
python-json-logger 4.0.0
pywin32 311
pywinpty 3.0.3
PyYAML 6.0.3
pyzmq 27.1.0
referencing 0.37.0
requests 2.32.5
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rfc3987-syntax 1.1.0
rpds-py 0.30.0
scooby 0.11.0
Send2Trash 2.1.0
setuptools 65.5.0
six 1.17.0
soupsieve 2.8.3
stack-data 0.6.3
terminado 0.18.1
tinycss2 1.4.0
tomli 2.4.0
tornado 6.5.4
tqdm 4.67.3
traitlets 5.14.3
typing_extensions 4.15.0
tzdata 2025.3
uri-template 1.3.0
urllib3 2.6.3
wcwidth 0.5.3
webcolors 25.10.0
webencodings 0.5.1
websocket-client 1.9.0
zipp 3.23.0
🔍 Before submitting the issue
🐞 Description of the bug
Process is terminated due to StackOverflowException.
[I 2026-02-27 15:45:56.838 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), keep random ports
[W 2026-02-27 15:45:56.838 ServerApp] kernel 24163caa-a059-4c52-8ec3-e197fb190ceb restarted
[I 2026-02-27 15:45:56.841 ServerApp] Starting buffering for 24163caa-a059-4c52-8ec3-e197fb190ceb:b42853be-5a6c-42c3-8f6f-74f1f9b21c89
[I 2026-02-27 15:45:56.846 ServerApp] Adapting from protocol version 5.3 (kernel 24163caa-a059-4c52-8ec3-e197fb190ceb) to 5.4 (client).
[I 2026-02-27 15:45:56.847 ServerApp] Connecting to kernel 24163caa-a059-4c52-8ec3-e197fb190ceb.
[I 2026-02-27 15:45:56.847 ServerApp] Restoring connection for 24163caa-a059-4c52-8ec3-e197fb190ceb:b42853be-5a6c-42c3-8f6f-74f1f9b21c89
📝 Steps to reproduce
from ansys.mechanical.core import App
app = App(version = 252)
app.update_globals(globals())
project_path = r"C:\Users\name.mechdb"
app.open(project_path, remove_lock=True)
result = app.DataModel.GetObjectsByName("Maximum Principal Stress")[0]
formatted_value = 0.012
Pt = app.Graphics.CreateWorldPoint(0, 0, 0)
label = app.Graphics.Scene.Factory2D.CreateText(Pt,str(formatted_value))
label.Color = 0x000000 # black
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
25R2
🐍 Which Python version are you using?
3.10
📦 Installed packages