Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-12-01 Thread J.P. Delport
Hi Robert, Robert Osfield wrote: Hi J.P et. al, I've completed my work on clean up of texture objects and buffer objects and have checked this work into snv/trunk. I've done a range of tests where the viewer is constructed and destructed repeated, when handling a range of models and

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-26 Thread Robert Osfield
Hi J.P, I have done a lot more investigation in the context clean up issues and have checked in a provisional fix for the issues. Could you please do an svn update and then test against your own applications to see if things are fixed. The code I've just checked in still has lots of debug info

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-25 Thread Robert Osfield
Hi J.P. Thanks fort he test app + data, I'll look into this today. My guess is that the issue will be close related to the crash that Nico has reported. Robert. On Wed, Nov 25, 2009 at 8:28 AM, J.P. Delport jpdelp...@csir.co.za wrote: Hi Robert, J-S, the results of my most recent tests:

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-25 Thread Robert Osfield
Hi J.P, I've tried out your example and found that with paged databases and your supplied model everything works fine for the first viewer then on the subsequent viewer I get: Warning: detected OpenGL error 'invalid operation' at after RenderBin::draw(..) Warning: detected OpenGL error 'out of

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-25 Thread Jason Beverage
Hi Robert, This sounds the issue that I've been seeing with regards to context ID reuse as mentioned in this thread (

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-25 Thread Jean-Sébastien Guay
Hi Robert, Jason, I would see similar crashes / missing textures, but only when previous context ID's were reused, and only when using paged databases. I'd sure like to see this fixed... I posted an example reproducing the issue on osg-users a while back but Robert was busy on the GLES port.

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-25 Thread Robert Osfield
Hi J.P, I've modified the osgcamera example to have code path for testing a series viewers, with sharing models and reloading them for each viewer. I've written about it on the thread VBO's - lifetime.. I'm able to get GL errors when using VBO's, and with your test model with a straight

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-25 Thread Robert Osfield
Hi J.P. I've just changed USE_NEW_TEXTURE_POOL to 0 and then tested: osgcamera -r 3 earth_sphere_dt1.ive And it doesn't produce any errors and model always comes up with textures. So it does look like the new osgcamera test is sufficient for testing this particular bug. Robert.

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread Robert Osfield
Hi J.P, The typical problem is that the scene graph has been set up to unref texture images after apply so when it comes to reloading the texture images there aren't the to download. Robert. On Tue, Nov 24, 2009 at 9:17 AM, J.P. Delport jpdelp...@csir.co.za wrote: Hi all, I've run into the

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread Robert Osfield
Hi J.P. I'm still knee deep in merging submissions so can't yet go off reviewing user code. In principle it is possible to mange open and closing viewers. I can point you in the right direction but have to let you get on with it otherwise. Robert. On Tue, Nov 24, 2009 at 12:32 PM, J.P.

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Hi, Robert Osfield wrote: Hi J.P. I'm still knee deep in merging submissions so can't yet go off reviewing user code. In principle it is possible to mange open and closing viewers. I can point you in the right direction but have to let you get on with it otherwise. I understand, I'll try

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Hi Robert, it seems to be something broken on context destruction with the new texture pool. The orphaned list does not seem to be cleared properly. A texture is used from the orphaned list even though the context it belonged to had been destroyed earlier. When libosg is compiled with

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread Jean-Sébastien Guay
Hi J.P., Can anyone confirm the missing textures? Any hints as to what else needs to be done to make sure everything is cleared/flushed correctly? We've been doing something similar to this for a while now and it's worked for us, what I'm wondering is whether the recent changes to texture

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Hi J-S, Jean-Sébastien Guay wrote: Hi J.P., Can anyone confirm the missing textures? Any hints as to what else needs to be done to make sure everything is cleared/flushed correctly? We've been doing something similar to this for a while now and it's worked for us, what I'm wondering is

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread Jean-Sébastien Guay
Hi again, I haven't had a chance to check your code yet, give me a few minutes and I'll check if there's anything amiss that I can see. I'm sorry to say I can't repro here on Windows Vista, VC++ 2005 on SVN head. But it seems that you've pinned it down to the texture pool as I thought,

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread Drolet, Frederic
: www.valcartier.drdc-rddc.gc.ca -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of J.P. Delport Sent: November-24-09 8:53 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CompositeViewer context cleanup

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Hi J-S, Jean-Sébastien Guay wrote: Hi again, I haven't had a chance to check your code yet, give me a few minutes and I'll check if there's anything amiss that I can see. I'm sorry to say I can't repro here on Windows Vista, VC++ 2005 on SVN head. But it seems that you've pinned it down to

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread Jean-Sébastien Guay
Hi Frederic, Since we don't have direct access to the textures, we can't make the call to setUnRefImageDataAfterApply(). Would there be another way? You can run a visitor to get to the textures and turn this setting off. You can either make your own, or use

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Web : www.valcartier.drdc-rddc.gc.ca -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of J.P. Delport Sent: November-24-09 8:53 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CompositeViewer context

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Hi J-S, J.P. Delport wrote: Hi J-S, Jean-Sébastien Guay wrote: Hi again, I haven't had a chance to check your code yet, give me a few minutes and I'll check if there's anything amiss that I can see. I'm sorry to say I can't repro here on Windows Vista, VC++ 2005 on SVN head. But it seems

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread Robert Osfield
Hi J.P, On Tue, Nov 24, 2009 at 3:32 PM, J.P. Delport jpdelp...@csir.co.za wrote: Latest SVN indeed works as expected. I must have been using a dud version from somewhere in svn land. Sorry for the noise folks... move right along... nothing to see here... Does this mean that there isn't a

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Hi Robert, J.P. Delport wrote: Hi Robert, it seems to be something broken on context destruction with the new texture pool. The orphaned list does not seem to be cleared properly. A texture is used from the orphaned list even though the context it belonged to had been destroyed earlier.

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread Jean-Sébastien Guay
Hi Frederic, Some more fun in perspective! At least, I'll try the texture pool solution in the latest SVN build to see if it helps. I think that's what's most susceptible to work. Even stable releases can have bugs. So I really suspect that you're hitting a bug that's fixed in SVN. As I

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Hi Robert, Robert Osfield wrote: Hi J.P, On Tue, Nov 24, 2009 at 3:32 PM, J.P. Delport jpdelp...@csir.co.za wrote: Latest SVN indeed works as expected. I must have been using a dud version from somewhere in svn land. Sorry for the noise folks... move right along... nothing to see here...

Re: [osg-users] CompositeViewer context cleanup and missing textures

2009-11-24 Thread J.P. Delport
Hi J-S, Jean-Sébastien Guay wrote: Hi again, I haven't had a chance to check your code yet, give me a few minutes and I'll check if there's anything amiss that I can see. I'm sorry to say I can't repro here on Windows Vista, VC++ 2005 on SVN head. But it seems that you've pinned it down to