Hi Carsten!

Both logs are at the bottom of this mail.
I've stopped using the call: 
getClientThread()->getChangeList()->applyAndClear(); from the external 
thread.

 > There is one datastructure in OpenSG that grows without bound, it is a
 > vector in FieldContainerFactory that maps field container ids to field
 > containers. But that is usually only a problem when you create huge
 > numbers of objects. By the way, your program looks as if it leaked a
 > Barrier, per call to callSync ;)

I don't understand what you mean when you say that the program leaks a 
Barrier? The method callSync contains two barrier calls. And the 
displayfunction also contain two barriercalls (inside the needSync 
statement). Callsync does not exit until the display function have 
synchronized it's data. Or have i missed anything? :)

About the synchronization to the servers, are this done in separate 
hidden threads? And how can I make sure that they also get synchronized 
inside the needSync statement.

Also I will create a huge amount of objects over time, but these objects 
also get delete every now and then. Are there a way to clean up old 
"ids" and clean up this vector? We're currently working on a Interactive 
Bar (using multitouch, and OpenSG as render, and a tracking algorithm 
tells the graphic loop either to make/update or destroy blobs).

About the debug data. Here is an example where the program crashes. I've 
just started both programs, and starts to manipulate the surface of our 
bar. This will generate events that openSG catches and begin to alter he 
scene.

This execution of the program crashed right after I started the program 
and proceeds to manipulate the surface the first time. I've removed all 
debug text witch contained the startup sequence. The log that follows is 
right after I've moved the camera a bit. Tell me if you need a whole log 
and I could email the data to you.

Many Thanks!
// Martin

************* Debug log for server
DEBUG:  Window 0x0x8250b88 (event 95,ri:25,rf:25): Validating object 24: 
last reinit:1, last validate:95 last refresh: 0 => up-to-date
DEBUG:  TextureChunk::activate - 24
DEBUG:  TexGenChunk::activate
DEBUG:  Window 0x0x8250b88 (event 95,ri:25,rf:25): Validating object 21: 
last reinit:1, last validate:95 last refresh: 95 => up-to-date
DEBUG:  Created:Node 345
DEBUG:  Created:Transform 346
DEBUG:  Created:GeoPositions3f 347
DEBUG:  Created:GeoNormals3f 348
DEBUG:  Created:GeoTexCoords2f 349
DEBUG:  Created:GeoIndicesUI32 350
DEBUG:  Created:GeoPLengthsUI32 351
DEBUG:  Created:GeoPTypesUI8 352
DEBUG:  Created:Geometry 353
DEBUG:  Created:Image 354
DEBUG:  Created:ImageGenericAtt 355
DEBUG:  Created:SimpleTexturedMaterial 356
DEBUG:  Created:TextureChunk 357
DEBUG:  Created:TexGenChunk 358
DEBUG:  Created:State 359
DEBUG:  Created:MaterialChunk 360
DEBUG:  Created:BlendChunk 361
DEBUG:  Created:Node 362
DEBUG:  Map: 195 to 329
DEBUG:  Map: 202 to 345
WARNING:  Can't find container id:220
DEBUG:  Map: 220 to 0
DEBUG:  Map: 178 to 313
DEBUG:  Map: 191 to 326
DEBUG:  Map: 219 to 362
DEBUG:  Map: 203 to 346
DEBUG:  Map: 202 to 345
DEBUG:  Map: 210 to 353
DEBUG:  Map: 210 to 353
DEBUG:  Map: 210 to 353
DEBUG:  Map: 210 to 353
DEBUG:  Map: 210 to 353
DEBUG:  Map: 210 to 353
DEBUG:  Map: 219 to 362
DEBUG:  Map: 213 to 356
DEBUG:  Map: 209 to 352
DEBUG:  Map: 208 to 351
DEBUG:  Map: 204 to 347
DEBUG:  Map: 205 to 348
DEBUG:  Map: 206 to 349
DEBUG:  Map: 207 to 350
DEBUG:  Map: 211 to 354
DEBUG:  Map: 211 to 354
DEBUG:  Map: 211 to 354
DEBUG:  Map: 202 to 345
DEBUG:  Map: 210 to 353
DEBUG:  AddRef: SimpleMaterial ID:314
DEBUG:  AddRef: GeoPositions3f ID:347
DEBUG:  AddRef: GeoNormals3f ID:348
DEBUG:  AddRef: GeoTexCoords2f ID:349
DEBUG:  AddRef: GeoIndicesUI32 ID:350
DEBUG:  AddRef: GeoPTypesUI8 ID:352
DEBUG:  AddRef: GeoPLengthsUI32 ID:351
DEBUG:  AddRef: ImageGenericAtt ID:355
DEBUG:  AddRef: TextureChunk ID:357
DEBUG:  AddRef: TexGenChunk ID:358
DEBUG:  AddRef: Image ID:354
DEBUG:  AddRef: State ID:359
DEBUG:  AddRef: MaterialChunk ID:360
DEBUG:  AddRef: BlendChunk ID:361
DEBUG:  AddRef: MaterialChunk ID:360
DEBUG:  AddRef: TextureChunk ID:357
DEBUG:  AddRef: TexGenChunk ID:358
DEBUG:  AddRef: SimpleTexturedMaterial ID:356
DEBUG:  AddRef: Geometry ID:353
DEBUG:  AddRef: Transform ID:346
DEBUG:  AddRef: Node ID:362
DEBUG:  AddRef: Node ID:345
DEBUG:  SubRef: SimpleMaterial ID:314
DEBUG:  Changed:Node 326
DEBUG:  Changed:Node 329
DEBUG:  Changed:Node 345
DEBUG:  Changed:Transform 346
DEBUG:  Changed:GeoPositions3f 347
DEBUG:  Changed:GeoNormals3f 348
DEBUG:  Changed:GeoTexCoords2f 349
DEBUG:  Changed:GeoIndicesUI32 350
DEBUG:  Changed:GeoPLengthsUI32 351
DEBUG:  Changed:GeoPTypesUI8 352
DEBUG:  Changed:Geometry 353
DEBUG:  Changed:Image 354
DEBUG:  Changed:ImageGenericAtt 355
DEBUG:  Changed:SimpleTexturedMaterial 356
DEBUG:  Changed:TextureChunk 357
DEBUG:  Changed:TexGenChunk 358
DEBUG:  Changed:MaterialChunk 360
DEBUG:  Changed:BlendChunk 361
DEBUG:  Changed:Node 362
Segmentation fault

******* Debug for the client:
DEBUG:  Changed: MultiDisplayWindow ID:171 Mask:524288
DEBUG:  Changed: Transform ID:194 Mask:-1
DEBUG:  SyncFieldFilter: :MultiDisplayWindow
DEBUG:  Changed: MultiDisplayWindow ID:171 Mask:524288
DEBUG:  SyncFieldFilter: :MultiDisplayWindow
DEBUG:  Changed: MultiDisplayWindow ID:171 Mask:524288
DEBUG:  try to image read deniz2.jpg as image/jpeg
DEBUG:  image: 149x119
DEBUG:  try to image read deniz2.jpg as image/jpeg
DEBUG:  image: 149x119
DEBUG:  SyncFieldFilter: :MultiDisplayWindow
DEBUG:  Changed: MultiDisplayWindow ID:171 Mask:524288
DEBUG:  Changed: Node ID:191 Mask:-1
DEBUG:  Changed: Node ID:195 Mask:4
DEBUG:  Changed: Node ID:202 Mask:-1
DEBUG:  Changed: Transform ID:203 Mask:-1
DEBUG:  Changed: GeoPositions3f ID:204 Mask:-1
DEBUG:  Changed: GeoNormals3f ID:205 Mask:-1
DEBUG:  Changed: GeoTexCoords2f ID:206 Mask:-1
DEBUG:  Changed: GeoIndicesUI32 ID:207 Mask:-1
DEBUG:  Changed: GeoPLengthsUI32 ID:208 Mask:-1
DEBUG:  Changed: GeoPTypesUI8 ID:209 Mask:-1
DEBUG:  SyncFieldFilter: :Geometry
DEBUG:  Changed: Geometry ID:210 Mask:-2097153
DEBUG:  Changed: Image ID:211 Mask:131064
DEBUG:  Changed: ImageGenericAtt ID:212 Mask:2
DEBUG:  Changed: SimpleTexturedMaterial ID:213 Mask:-1
DEBUG:  SyncFieldFilter: :TextureChunk
DEBUG:  Changed: TextureChunk ID:214 Mask:17936
DEBUG:  Changed: TexGenChunk ID:215 Mask:48
DEBUG:  Changed: MaterialChunk ID:217 Mask:-1
DEBUG:  Changed: BlendChunk ID:218 Mask:-1
DEBUG:  Changed: Node ID:219 Mask:84
terminate called after throwing an instance of 
'osg::BinaryDataHandler::ReadError'
   what():  BinaryDataHandler ReadError: Channel closed
Aborted



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to