Well, i tried your sample program in my macbook pro. In my mbp everything works
fine but not in the iMac. Here is the callstack of the well-behaved execution
(I added a breakpoint int ~Object()):
Code:
* thread #1: tid = 0x2403, 0x000000010fd67479
libosgd.80.dylib`osg::Object::~Object() + 39 at Object.cpp:44, stop reason =
breakpoint 1.3
frame #0: 0x000000010fd67479 libosgd.80.dylib`osg::Object::~Object() + 39
at Object.cpp:44
frame #1: 0x000000010fba0fa8
libosgd.80.dylib`osg::BufferData::~BufferData() + 298 at BufferObject.cpp:1398
frame #2: 0x000000010e8e2cfa
libosgViewerd.80.dylib`osg::PrimitiveSet::~PrimitiveSet() + 54 at
PrimitiveSet:228
frame #3: 0x000000010e8b98a6
libosgViewerd.80.dylib`osg::DrawElements::~DrawElements() + 54 at
PrimitiveSet:380
frame #4: 0x000000010fd9aa40
libosgd.80.dylib`osg::DrawElementsUShort::~DrawElementsUShort() + 244 at
PrimitiveSet.cpp:221
frame #5: 0x000000010fdbdacd
libosgd.80.dylib`osg::Referenced::signalObserversAndDelete(bool, bool) const +
337 at Referenced.cpp:323
frame #6: 0x000000010e70a304 osgTobias`osg::Referenced::unref() const + 84
at Referenced:198
frame #7: 0x000000010e70a290
osgTobias`osg::ref_ptr<osg::DrawElementsUShort>::~ref_ptr() + 48 at ref_ptr:35
frame #8: 0x000000010e70a255
osgTobias`osg::ref_ptr<osg::DrawElementsUShort>::~ref_ptr() + 21 at ref_ptr:35
frame #9: 0x000000010e70a018 osgTobias`main + 152 at main.cpp:19
frame #10: 0x000000010e709f74 osgTobias`start + 52
In my macbook pro I built OSG using gcc version 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2336.9.00):
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure
--disable-checking --enable-werror
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
--target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
Curiously, I've the same configuration on the iMac and in it it doesn't work.
In the next post i will show the callstack when it fails. In advance, I will
say you that is different if i build using gcc instead of using clang.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48844#48844
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org