Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyMapdl crahes/looses connection, when running in a loop #3156

Closed
4 tasks done
mrcklg opened this issue Jun 6, 2024 · 2 comments
Closed
4 tasks done

PyMapdl crahes/looses connection, when running in a loop #3156

mrcklg opened this issue Jun 6, 2024 · 2 comments
Labels
MAPDL Requires changes in MAPDL

Comments

@mrcklg
Copy link

mrcklg commented Jun 6, 2024

🤓 Before submitting the issue

🔍 Description of the bug

I want to do a mesh convergence study. For this i am running PyMapdl in a loop, solving the problem for different mesh sizes.
This works up until a point but then it crashes (at a random meshsize so the crash does not occur at the same mesh size every time) with the following Error Message:

ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
<_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Connection reset"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-06T11:36:14.151348247+00:00", grpc_status:14, grpc_message:"Connection reset"}"

I tried also to exit and reopening it for each solve (this takes extra time so not an ideal solution) however the problem remains.

🕵️ Steps To Reproduce

The log will automatically be formatted as Python code! No need to type backticks.

💻 Which Operating System are you using?

Windows

🐍 Which Python version are you using?

3.11

💾 Which MAPDL version are you using?

MAPDL: 22.2, PyMapdl: 0.68.1

📝 PyMAPDL Report

Show the Report!

# PASTE HERE THE OUTPUT OF `python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"` here

📝 Installed packages

Show the installed packages!

# PASTE HERE THE OUTPUT OF `python -m pip freeze` here

📝 Logger output file

Show the logger output file.

# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.

@germa89
Copy link
Collaborator

germa89 commented Jun 7, 2024

Hi @mrcklg

Would it be possible for you to share the code that generates that error??

@germa89 germa89 added the MAPDL Requires changes in MAPDL label Jul 15, 2024
@germa89
Copy link
Collaborator

germa89 commented Jul 15, 2024

Closing issue because of stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MAPDL Requires changes in MAPDL
Projects
None yet
Development

No branches or pull requests

2 participants