Re: [osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-16 Thread Robert Osfield
Hi Ryan, On Wed, Dec 16, 2009 at 9:43 AM, Ryan H. Kawicki wrote: > It might not be convincing to have to go back to the code base and remove > these unsafe sections of code, but by having a set of documentation is really > not going to help eighty or ninety percent of the OSG community.  I rare

Re: [osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-16 Thread Ryan H. Kawicki
> > More generally I'm not convinced that we need to deprecate the none > ref versions. I'd be inclined towards just documenting that > multi-threaded reads should use the Ref versions. > It might not be convincing to have to go back to the code base and remove these unsafe sections of code,

Re: [osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-14 Thread Robert Osfield
Hi Ryan, On Mon, Dec 14, 2009 at 10:38 AM, Ryan H. Kawicki wrote: > Observation 1: > Using the unsafe versions is bad.  Now we know and knowing is half the > battler, but should this be take further.  It might be a good idea to tag the > unsafe versions as deprecated, this way a compiler warnin

Re: [osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-14 Thread Ryan H. Kawicki
Robert, I just wanted to respond with my investigations and observations. > > I sounds like the lack of a readRefFontFile() is a potential problem. > In the case of include/osgDB/ReadFile there are readRefNodeFile() etc. > functions that pass back a ref_ptr<> rather than a C pointer, and are >

Re: [osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-12 Thread Ryan Surkamp
Is it possible for the database pager thread to switch the cache to a temp cache, and then another thread comes in and thinks that temp cache is the actual cache? So when the database pager swaps the cache again, then that ref_ptr in the tmp cache is destroyed? the other thread continues on thinki

Re: [osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-11 Thread Robert Osfield
Hi Ryan, I sounds like the lack of a readRefFontFile() is a potential problem. In the case of include/osgDB/ReadFile there are readRefNodeFile() etc. functions that pass back a ref_ptr<> rather than a C pointer, and are all safer in multi-thread situations where object cache is in play. Could you

[osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-11 Thread Ryan H. Kawicki
I've been investigating a crash that has plagued us for quite some time. I've finally gotten some time to sit down and take a look at this. Details: OSG: 2.8.1 OS: WinXP SP3 32Bit CPU: 8 Core 2.5GHz Xenon Graphics: Quadro FX 3700 512 MB Memory: Plenty Description: Our application embeds OSG int