Hi Andreas,

Sorry for the slow turn around in getting back to this issue.  During
the last month I've been investigating other threading issues relating
to DatabasePager/Referenced/Observer, these look to be addressed so
I'm now able to return to the issue of the deadlocks you've seen.

Over the last 3 weeks in svn/trunk I've disabled the boundary
equalization code so it as to not interfere with my other work on
DatabasePager, but now I've re-enabled it and am attempting to
re-creating the deadlocks you've seen.  So far I haven't been able to.
 Looking at your stack trace it looks like your using Windows,
unfortunately I don't have a Window machine to test against.

Would it be possible for you to test svn/trunk out with your data and
see if you still see the problem.  I haven't merged your suggested
fixes yet as I'm still working on understanding the exact dynamics of
the dead-locks, once I understand I should be able to spot the most
appropriate fix.  Ideally I'd be able re-create the dead-lock but may
well not to so relying on others like yourself for testing will be
required.

Thanks,
Robert.

On Mon, Apr 26, 2010 at 9:24 AM, Andreas Malzahn
<[email protected]> wrote:
> Hi Robert,
>
> i fixed the deadlock using a separate mutex on the updateList in Terrain. 
> Another option would be using a ReadWriteMutex, so the read operations 
> (traversal and get) don't block each other.
>
> I think there are also some not thread safe operations in the code, e.g. the 
> Terrain::getTile(const TileID& tileID) returns a  TerrainTile* which could be 
> deleted in another thread - maybe this should be changed to a osg::ref<>.
>
> Or the deleting operation should be moved to a location where no other 
> database threads run and also the viewer thread is not running.
>
> Regards,
> Andreas
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=27278#27278
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/terrain_550.zip
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to