Hi David,

On 23 October 2014 17:08, David Fries <[email protected]> wrote:

> Interesting chance.  Are these nodes supposed to be called from the
> DatabasePager for StateToCompile and main draw thread at the same
> time?  I would have thought it would only be reachable by one or the
> other, but not both.
>

In theory the design of the DatabasePager should ensure that subgraphs that
are being pre-compiled are kept separate from the main scene graph till
compilation is complete.  This should mean that the traversal during
construction and search for the compilable objects is done single threaded.

I don't know why there seems to be a way around this yet, outwardly it
looks like there are multiple traversals happening causing the race
condition.



> These are modified from svn trunk 14451, we were using 3.2.0 when it
> was found.  IncrementalCompileOperation.cpp change is to make it more
> reproducible.  The valgrind --tool=helgrind also helped in pointing
> out where the problem was with this bug.
>

I have been using valgrind through this afternoon, but so far haven't come
up with any smoking gun.

Thanks for the files.  It's end of day here so I'll look at them tomorrow.

Cheers,
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to