Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-23 Thread Adrian Egli
Thanks robert, my in some case a ive based or other model cause a crash. Also the use of osgText is cause some problemes, my it comes along this. Unfortunatelly it's same problem that i don't have time to have look depther into this topic at the moment. But osgText is not a problem i using as onl

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-23 Thread Robert Osfield
Hi Adrian, A ReadFileCallback is a reasonable way to enforce serialization without modifying the core OSG so as a workaround its a pretty elegant one. I would actually like to have osgDB working multi-threaded though, not all plugins are up to it, but the ones like .ive should be, as should be th

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-23 Thread Adrian Egli
Hi robert, thank you for the hint. i overwriten the osgDB::Registry::ReadFileCallback following the example openflt plugin in my application if we will add this directly in openscenegraph we no longer have to care about the different SERIALIZE() in the other plugins, we will be thread safe for

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-22 Thread Robert Osfield
Hi Adrian, On 8/22/07, Adrian Egli <[EMAIL PROTECTED]> wrote: > i did some further tests and the problem is in reading two IVE files in two > different threads. Then suddenly the system gets block, i don't know what > can cause to probleme, i will look depther into the plugin code Try putting a s

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-22 Thread Adrian Egli
Hi robert, i did some further tests and the problem is in reading two IVE files in two different threads. Then suddenly the system gets block, i don't know what can cause to probleme, i will look depther into the plugin code /adegli 2007/8/21, Alberto Luaces <[EMAIL PROTECTED]>: > > El Martes 21

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-21 Thread Alberto Luaces
El Martes 21 Agosto 2007, Adrian Egli escribió: > no i don't, the application doesn't crash ! I think you can attach the debugger to your running process in order to get the stack trace. With gdb, it is done so gdb program program_id with MSVC, IIRC there is an option in the Debug submenu. HTH

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-21 Thread Adrian Egli
Hi robert, no i don't, the application doesn't crash ! infact i got a starrivation syndrom, means the application gets lock and stay locked. but only in some unknow case. i don't know when it can happen. when i will get further information, i will post them. unfortunately i can not say anything mo

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-21 Thread Robert Osfield
On 8/20/07, Adrian Egli <[EMAIL PROTECTED]> wrote: > Hi Robert, > > thanks for the answer. I see there is may a thread safe problem in one > plugin. first i have to find > the plugin cause the problem. I guess it's the ive plugin because i am > reading IVE files, but i am > not sure. Do you have a

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-20 Thread Adrian Egli
Hi Robert, thanks for the answer. I see there is may a thread safe problem in one plugin. first i have to find the plugin cause the problem. I guess it's the ive plugin because i am reading IVE files, but i am not sure. /regards 2007/8/20, Robert Osfield <[EMAIL PROTECTED]>: > > Hi Adrian, > >

Re: [osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-20 Thread Robert Osfield
Hi Adrian, Putting serializers into osgDB is the wrong thing to do, as I did quite a bit of work a year or so back to avoid the need for this - its architected to support multi-threaded read calls. Not all plugins are thread safe though and do require serializers so its here I'd suggest you look

[osg-users] s_serialize_readNodeFile_mutex in DatabasePager

2007-08-20 Thread Adrian Egli
Hi robert, there is an other problem i currently have with the database pager. In fact we have to protect our readNodeFile otherwise we run into threading issues. The method is not thread safe at all, so we have to protect it as you did in database pager, in common application it work as expected,