Hi Abhishek,

Thanks for the extra details.  Being able to reliable reproduce the
problem is good news in that at least you should be able to confirm a
fix on your system.  On my on Kubuntu system I'm not yet able to
reproduce the same error, but on repeatidly running osgwindows 100
times I was able to get the following error on one of the runs:

Warning Referenced::signalObserversAndDelete(,,) doing delete with
_refCount=4294967295
Warning: deleting still referenced object 0x236c230 of type
'PN3osg10ReferencedE'
         the final reference count was 4294967295, memory corruption possible.

This looks likely to be a threading issue on destruction rather than
construction like you are seeing, it could be connected but more
likely to be something else.  The way I test osgwindow was to run in
using the follow bash alias (put into .basrc)


# implement repeat command
repeat() {
    n=$1
    shift
    while [ $(( n -= 1 )) -ge 0 ]
    do
        "$@"
    done
}

Open a new bash shell to force the definitation of repeat then then in
this console tell osgViewer::Viewer::run() to only complete 10 frames
and then exit via:

> export OSG_RUN_FRAME_COUNT=10

Then run the test:

> repeat 100 osgwindows cow.osg

For me it can correctly for each of the 100 runs, and only once
reported the error to the console.

The Kubuntu 13.04 distribution have version 4.7.3 of the gnu compilers:

$ c++ --version
c++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
Copyright © 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I guess there is a chance that there is a relationship between the
problem you've seen a the gnu compiler version.  Could you try
building the OSG on another dev system with a more up to date
compiler?

I will do some longer tests here to see if I can get it to reveal the
problems you are seeing.

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

Reply via email to