Personal tools
You are here: Home Forum Use omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO

omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO

Up to Use

omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO

Posted by Daniel at October 12. 2016

I use salome with python scripting and sometimes I get CORBA errors. For example:

CORBA.TRANSIENT(omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO) 

when calling:

geompy.ImportSTEP(stepfilename, True)

 

 

Why do I get these errors and what can I do?

Re: omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO

Posted by Daniel Potter at March 14. 2019

Bump.

I also am getting this error after about 30 or so executions of salome inside an optimisation loop.  I think it must be something to do with the name server not being shutdown properly after each execution as my process list shows many "omniNames" processes still running.  I have this at the end of the python script:

 

    import os
    from killSalomeWithPort import killMyPort
    killMyPort(os.getenv('NSPORT'))

 

Is something extra needed to kill omniNames?

 

Thanks,

Daniel

Re: omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO

Posted by Daniel Potter at March 14. 2019

Salome version:

SALOME-9.2.0-UB18.04

p, li { white-space: pre-wrap; }

Previously Daniel Potter wrote:

Bump.

I also am getting this error after about 30 or so executions of salome inside an optimisation loop.  I think it must be something to do with the name server not being shutdown properly after each execution as my process list shows many "omniNames" processes still running.  I have this at the end of the python script:

 

    import os
    from killSalomeWithPort import killMyPort
    killMyPort(os.getenv('NSPORT'))

 

Is something extra needed to kill omniNames?

 

Thanks,

Daniel

 

Re: omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO

Posted by Christophe Bourcier at March 15. 2019

Hi,

If you launch Salome with its graphic interface, you can add sys.exit(0) at the end of the script. Or create a script sys_exit.py with:

import sys

sys.exit(0)

And add this script to the command line of Salome after the other script you want to run. For instance:

salome my_script.py sys_exit.py

If some processes still remain, they can be killed by calling the script in attachment.

Christophe

Attachments
Powered by Ploneboard
Document Actions