salome 2.2.8 : UNKOWN CORBA exception, SMESH module
-
Hi,
I have just installed salome on my laptop (Debian/sarge distribution). I seemed to work well after :
- creating some additional symbolic links to a couple of libraries
- modifying salome.sh (pls refer to the post entitled "pb with environment settings on ubuntu"

However it works until I click on the SMESH module. Then I received an UnKOWN CORBA exception. I put the log at the end of the post. Salome cannot load the SMESH module.
I encountered the same problem with salome 2.2.1. I have installed it on both my laptop and desktop (same debian/sarge distribution). It worked very well on my desktop but not on my laptop.
I believe it is a bug. Did any body encountered this problem and solved it? Could it be related somehow to the X server (I have Xfree on my desktop and Xorg on the laptop).
Thx
Benjamin
---------------------------
inspiron:/opt/salome-2.2.8/KERNEL_2.2.8# runSalome
Searching for a free port for naming service: 2810 2811 2812 - Ok
source= []
opts= {}
args= {u'portkill': 1, 'file': 0, u'killall': 0, 'embedded': [u'registry', u'study', u'moduleCatalog', u'cppContainer'], 'standalone': [u'pyContainer', u'supervContainer'], 'appname': 'salome', 'modules': ['GEOM', 'SMESH', 'VISU', 'SUPERV', 'MED', 'COMPONENT', 'PYCALCULATOR', 'DATA'], u'gui': 1, u'xterm': 0, 'SMESH_plugins': [u'NETGENPlugin', u'GHS3DPlugin'], 'key': [], u'logger': 0, 'interp': 0, 'port': 2812, 'containers': []}
le fichier /root/root_inspiron_2812_SALOME_pidict des process SALOME n'est pas accessible
startSalome {u'portkill': 1, 'file': 0, u'killall': 0, 'embedded': [u'registry', u'study', u'moduleCatalog', u'cppContainer'], 'standalone': [u'pyContainer', u'supervContainer', 'superv'], 'appname': 'salome', 'modules': ['GEOM', 'SMESH', 'VISU', 'SUPERV', 'MED', 'COMPONENT', 'PYCALCULATOR', 'DATA'], u'gui': 1, u'xterm': 0, 'SMESH_plugins': [u'NETGENPlugin', u'GHS3DPlugin'], 'key': [], u'logger': 0, 'interp': 0, 'port': 2812, 'containers': []}
['SALOME_Session_Loader', 'CPP', 'PY', 'SUPERV', 'GUI']
Lancement du Naming Service runNS.sh > /tmp/logs/root/salomeNS.log 2>&1
Searching Naming Service found in 0.0 seconds
Notify Server to launch
GEOM OCAF Resources
GEOM Shape Healing Resources
KERNELCatalog.xml
GEOMCatalog.xml
SMESHCatalog.xml
VISUCatalog.xml
SUPERVCatalog.xml
MEDCatalog.xml
COMPONENTCatalog.xml
PYCALCULATORCatalog.xml
DATACatalog.xml
KERNELCatalog.xml
GEOMCatalog.xml
SMESHCatalog.xml
VISUCatalog.xml
SUPERVCatalog.xml
MEDCatalog.xml
COMPONENTCatalog.xml
PYCALCULATORCatalog.xml
DATACatalog.xml
Searching /Kernel/Session in Naming Service +This is the end of document
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/SALOME_Session_Server.cxx [123] : pman->activate()
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/Session_ServerThread.cxx [269] : Registry thread started
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/NamingService/SALOME_NamingService.cxx [337] : Resolve() : Registry (object) not found
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/Session_ServerThread.cxx [179] : ModuleCatalog thread started
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/Session_ServerThread.cxx [224] : SALOMEDS thread started
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/NamingService/SALOME_NamingService.cxx [463] : This context was'nt created, it's now done
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/Session_ServerThread.cxx [333] : Container thread started
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/Session_ServerThread.cxx [345] : factory_poa does not exists, create...
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/Session_ServerThread.cxx [444] : Session thread started
th. 2962140080 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/Session_ServerThread.cxx [449] : poa->activate_object(mySALOME_Session)
found in 0.5 seconds
Searching /Containers/inspiron/FactoryServerPy in Naming Service +- Trace :
['/opt/salome-2.2.8/KERNEL_2.2.8/bin/salome/SALOME_ContainerPy.py', 'FactoryServerPy']
- Trace :
SALOME_ContainerPy_i::__init__
- Trace :
/Containers/inspiron/FactoryServerPy
- Trace :
SALOME_NamingServicePy_i::Register
found in 0.5 seconds
Searching /Containers/inspiron/SuperVisionContainer in Naming Service +th. 3067599424 COMPILED with /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Container/SALOME_Container.cxx [72] : g++, Jan 10 2006 at 16:04:45
- Trace :
SALOME_ContainerPy_i::ping
found in 0.5 seconds
Start SALOME, elapsed time : 2.7 seconds
additional external python interpreters: 0
Saving of the dictionary of Salome processes in /root/root_inspiron_2812_SALOME_pidict
To kill SALOME processes from a console (kill all sessions from all ports):
python killSalome.py
To kill SALOME from the present interpreter, if it is not closed :
killLocalPort() --> kill this session
(use CORBA port from args of runSalome)
givenPortKill(port) --> kill a specific session with given CORBA port
killAllPorts() --> kill all sessions
runSalome, with --killall option, starts with killing
the processes resulting from the previous execution.
--- registered objects tree in Naming Service ---
ContainerManager.object
ChannelFactory.ChannelFactory
EventChannel.EventChannel
Registry.object
Kernel.dir
ModulCatalog.object
Session.object
Study.dir
myStudyManager.object
Containers.dir
inspiron.dir
FactoryServer.object
FactoryServerPy.object
SuperVisionContainer.object
inspiron:/opt/salome-2.2.8/KERNEL_2.2.8# th. 3069368000 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Loader/SALOME_Session_Loader.cxx [75] : Corba initialisation, Distant server
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/SALOME_Session_Server.cxx [146] : Session activated, Launch IAPP...
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/SALOME_Session_Server.cxx [152] : creation QApplication
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/SALOME_Session_Server.cxx [157] : creation SALOMEGUI_Application
============== import GEOM =======================
============== import SMESH =======================
============== import VISU =======================
============== import SUPERV =======================
============== import MED_idl =======================
============== import MED_Gen_idl =======================
============== import SuperVisionTest =======================
============== import DATA =======================
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/NamingService/SALOME_NamingService.cxx [337] : Resolve() : FactoryServer (dir) not found
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Container/Container_i.cxx [186] : Can't load shared library : libSMESHEngine.so
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Container/Container_i.cxx [187] : error dlopen: libg2c.so.0: cannot open shared object file: No such file or directory
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/NamingService/SALOME_NamingService.cxx [337] : Resolve() : FactoryServerPy (dir) not found
- Trace :
SALOME_ContainerPy_i::load_impl SMESH libSMESHEngine.so
- Trace :
SALOME_ContainerPy_i::load_impl :import SMESH
comp_i = SMESH.SMESH(self._orb, self._poa, self._this(), self._containerName, instanceName, interfaceName)
omniORB: Caught an unexpected Python exception during up-call.
Traceback (most recent call last):
File "/opt/salome-2.2.8/KERNEL_2.2.8/bin/salome/SALOME_ContainerPy.py", line 161, in load_impl
exec the_command
File "", line 2, in ?
AttributeError: 'module' object has no attribute 'SMESH'
th. 2995746496 - Trace /vsr/salome_2.2.8/KERNEL_SRC_2.2.8/src/Session/SALOME_Session_Server.cxx [206] : run(): CORBA exception of the kind : UNKNOWN is caught
