Andreas Zieringer a écrit :
Hi Mathieu,

is this a typo or did you really use 127.0.0.1:30000 as the server address? You can't use the local loopback address because it's local ;-) Just type ping <servername> and use this ip.

Oops, just tried to do this correctly but got the same kind of errors :

$ 12ClusterServer -geometry 300x300+200+100 -w 10.3.3.107:30000
OSGLog::setLogLevel: overriden by envvar OSG_LOG_LEVEL '5'.
[...]
INFO: Waiting for request of 10.3.3.107:30000
INFO: Connection bound to 127.0.0.1:30000
INFO: wait for request by broadcast
INFO: Request for 10.3.3.107:30000 StreamSock
INFO: Response StreamSock:rambon.cstb.local:30000

and the client just issues slightly the same output :

INFO: Connect to 10.3.3.107:30000
NOTICE: caught an exception in GroupSockConnection::connectSocket() : SocketLib: connect() 10061 WSAECONNREFUSED

INFO: send request to:224.245.211.234
INFO: send request to:255.255.255.255
INFO: Found at address rambon.cstb.local:30000
NOTICE: caught an exception in GroupSockConnection::connectSocket() : SocketLib: connect() 10061 WSAECONNREFUSED

this 10.3.3.107 maps correctly to rambon.cstb.local in the local dns

BUT... On the linux box the ping rambon.cstb.local gave me a 127.0.0.1 :-(

I changed the /etc/host accordingly and it worked fine :-)

Many thanks for the hint :-)

As a side note, I saw that many try on tries do not get caught specifically but always ignored (at least in this networking part), is this intended or left for later ?


Regards,
Mathieu

Andreas

Hi,

I've being using OpenSG 1.6 for a while now and I'm wanting to use it's clustering part... I've been able to use it with the tutorials on the same computer (which is not of any use except for proof of concept), and it worked fine as expected. Then I tried with two computers one Server and the other the client : I'm not able to make the tutorial work...

After raising the OSG_LOG_LEVEL to 4, I managed to have this output on the client :

$ Debug/13ClusterClient.exe -f Data/tie.wrl 10.3.3.107:30000
006351C44'.
INFO: BaseThread::initThreading
INFO: Group Connection type Multicast added
INFO: Group Connection type StreamSock added
INFO: Group Connection type SockPipeline added
INFO: Point Connection type Multicast added
INFO: Point Connection type StreamSock added
INFO: Point Connection type SockPipeline added
INFO: Init osb Scene File Type 25638364
INFO: Thread::initThreading
INFO: Init 3ds Scene File Type 25648912
INFO: Init bin Scene File Type 25648980
INFO: Init dxf Scene File Type 25649416
INFO: Init obj Scene File Type 25649488
INFO: Init off Scene File Type 25649568
INFO: Init osg Scene File Type 25649628
INFO: Init raw Scene File Type 25649688
INFO: Init slp Scene File Type 25649744
INFO: Init wrl Scene File Type 25650160
INFO: add image suffix: dat
INFO: add image suffix: dds
INFO: add image suffix: gif
INFO: add image suffix: jpg
INFO: add image suffix: jpeg
INFO: add image suffix: mng
INFO: add image suffix: mtd
INFO: add image suffix: opensg
INFO: add image suffix: opensgImage
INFO: add image suffix: png
INFO: add image suffix: pnm
INFO: add image suffix: pbm
INFO: add image suffix: pgm
INFO: add image suffix: ppm
INFO: add image suffix: rgb
INFO: add image suffix: rgba
INFO: add image suffix: sgi
INFO: add image suffix: bw
INFO: add image suffix: tga
INFO: add image suffix: tif
INFO: add image suffix: tiff
INFO: create SharedObjectHandler
INFO: construct SharedObject Application
INFO: SO : Application | 01E3CEE0
INFO:   Object Application | 00400000
INFO: OSGTM : got table lock 01E3CF98
INFO: OSGTM : create -OSGThread- app thread
INFO: OSGTM : got application thread 01E3D080
INFO: OSGFieldContainerPtrBase init
INFO: init singleton FieldContainerFactory
INFO: OSGFieldContainerFactory init pending types
INFO: DVRVolume::DVRVolume(void) this: 01EA70D0
INFO: DVRVolume::DVRVolume(void) this: 01EA7228
(1|0)
INFO: Init VRMLWriter
INFO: Check base : Data\Data\tie.wrl
INFO: Check from pl : c:\SDK\OpenSG1.6\Tutorials\Data\tie.wrl
INFO: try to read c:\SDK\OpenSG1.6\Tutorials\Data\tie.wrl as VRML GEOMETRY
INFO: try to read stream as VRML GEOMETRY
NOTICE: primitiveN:  9, 496, 0/0 1/0 2/0 3/496 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
NOTICE: primitiveN:  9, 930, 0/0 1/0 2/0 3/930 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
NOTICE: primitiveN:  9, 48, 0/0 1/0 2/0 3/48 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
NOTICE: primitiveN:  9, 472, 0/0 1/0 2/0 3/472 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
NOTICE: primitiveN:  9, 776, 0/0 1/0 2/0 3/776 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
NOTICE: primitiveN:  9, 240, 0/0 1/0 2/0 3/240 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
NOTICE: primitiveN:  9, 8, 0/0 1/0 2/0 3/8 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
NOTICE: primitiveN:  9, 6, 0/0 1/0 2/0 3/6 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
NOTICE: primitiveN:  9, 22, 0/0 1/0 2/0 3/22 4/0 5/0
NOTICE: IndexType: coord: VERTEX_IT, color: EMPTY_IT, normal: EMPTY_IT, texture: EMPTY_IT
INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0
INFO: Full Time : 0.564000 | Use Time 0.000000
INFO: read ok:
10.3.3.107:30000
INFO: Connect to 10.3.3.107:30000
INFO: send request to:224.245.211.234
INFO: send request to:255.255.255.255
INFO: send request to:224.245.211.234
INFO: send request to:255.255.255.255

and on the Server launched by :
12ClusterServer -geometry 300x300+200+100 -w 127.0.0.1:30000

I have repeating lines saying :

INFO: Request for 10.3.3.107:30000 StreamSock
INFO: Request for 10.3.3.107:30000 StreamSock
INFO: Request for 10.3.3.107:30000 StreamSock
INFO: Request for 10.3.3.107:30000 StreamSock
INFO: Request for 10.3.3.107:30000 StreamSock


It seems that the connection is tried without success in an infinite loop.

My questions now :)

1) What is this ip 224.245.211.234 ?
in the code I can see that it is a hard coded _sfServiceAddress

2) What am I doing wrong, and if not where should I look for clues on what is not happening that should happen ?

I'm in a dead lock here :-) Any hint would be greatly appreciated !

Regards,




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

--
Mathieu Marache, Ph. D.  (CSTB > TIDS > SAIL > EVE)
tel: +33 (0)4 93956 407         fax: +33 (0)4 93956 733
[EMAIL PROTECTED]         http://salle-immersive.cstb.fr
jabber id : [EMAIL PROTECTED]


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to