ansys / pyedb-core

Ansys Electronics Database Python Client Package
https://edb.core.docs.pyansys.com/
MIT License
2 stars 1 forks source link

When RPC server is already running opening an EDB fails ->need to kill the process and restart #372

Closed svandenb-dev closed 5 months ago

svandenb-dev commented 6 months ago

🔍 Before submitting the issue

🐞 Description of the bug

First init with starting RPC server works fine we can open EDB file. Then after closing I want to reopen another one, the init is detecting the server is running as I got the pid but then if I open the EDB it fails. As a work round I will kill and restart the sever but we can't open multiple EDB and if the server is running remotely killing the sever will impact all users connected.

📝 Steps to reproduce

NA

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

NA

🐍 Which Python version are you using?

3.9

📦 Installed packages

NA
hiro727 commented 5 months ago

running change_capacitor_models.ipynb multiple time works fine. (each run opens a db, performs operations, then closes it)

I tested the example as is (disconnect current session after each run) and without disconnecting from session (close db and reopen a new one right away) and didn't see issues

@svandenb-dev can you post exact repro step please?

svandenb-dev commented 5 months ago

@hiro727 we should check together unless I missed something on how the server works. I can reproduce on my unit test

svandenb-dev commented 5 months ago

connection to existing session fixed the issue