Hi Andrea,

The interaction with the NVidia control panel really suggest an OpenGL
driver bug.

The stack traces suggest a database reading bug...

Is there a chance it could be gcc bug though... try and compile with
-O2 rather than -O3 to see if makes a difference.

Another long shot might be a physical memory error, it doesn't happen
very often, but it has happened in the past that flaky machines have
caused weired memory related crashes.

FYI, I develop under Linux, on a dual core machine, and test on dual
7800GT + paged database regularly and don't see crashes on any of the
terrex or osgdem generated databases I have.

Robert.

On 6/27/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:


Hello all,
 we are experiencing random crashes in the OSG applications we are
developing under
 Linux (realtime image generation with large area PagedLOD databases).
 After several debugging sessions, I think I have been able to isolate the
problem further.
 These factors do not seem to influence the problem:

 OSG application - crashes happen also with the standard osgviewer
 OS version - tested under Fedora Core 3 / 4
 OSG version - both OSG 1.2 and OSG 2.0 have the same problem
 PagedLOD database - tried with several databases, created with osgdem or
with
 custom built applications, or even in TXP format
 Nvidia driver version - tried Linux versions 8174 and 9755

 The problem instead seems related to the Nvidia control panel: I am able to
always trigger
 the crashes by launching the Nvidia control panel (nvidia-settings) and
forcing Antialiasing
 and Anisotropic filtering on. After that, If I close the control panel and
launch any osg application
 with paging, after a very short time the app segfaults. From that moment
on, no matter what
 are the settings in the Nvidia control panel, every app crashes regularly,
after a varying (short)
 amount of time.
 Following are some examples of debugger traces (osgviewer pagedDB.ive)
after the crash.
 Note that the memory usage for the application is very low (7-8% at the
moment of crash).

 Do you have any clue to where could be the problem?

 Thank you

 Andrea Damiano



 #0 0x003c80e3 in __gnu_cxx::__mt_alloc<osg::Vec4f,
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true>
>::allocate ()
 from /usr/local/lib/libosgText.so
 #1 0x003c8160 in std::_Vector_base<osg::Vec4f, std::allocator<osg::Vec4f>
>::_M_allocate () from /usr/local/lib/libosgText.so
 #2 0x003c819c in std::_Vector_base<osg::Vec4f, std::allocator<osg::Vec4f>
>::_Vector_base$base () from /usr/local/lib/libosgText.so
 #3 0x010edafc in std::vector<osg::Vec4f, std::allocator<osg::Vec4f>
>::vector$base () from /usr/local/lib/libosg.so
 #4 0x010edbd3 in osg::TemplateArray<osg::Vec4f, (osg::Array::Type)11, 4,
5126>::TemplateArray () from /usr/local/lib/libosg.so
 #5 0x012e7980 in ive::DataInputStream::readVec4Array ()
from /usr/local/lib//osgPlugins/osgdb_ive.so
 #6 0x012e8bac in ive::DataInputStream::readArray () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #7 0x01329f3c in ive::Geometry::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #8 0x012eaae4 in ive::DataInputStream::readDrawable ()
from /usr/local/lib//osgPlugins/osgdb_ive.so
 #9 0x013282d6 in ive::Geode::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #10 0x012ebdb9 in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #11 0x0132bfa2 in ive::Group::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #12 0x012ebcb6 in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #13 0x01337e52 in ive::PagedLOD::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #14 0x012eb910 in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #15 0x0132bfa2 in ive::Group::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #16 0x013328fc in ive::MatrixTransform::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #17 0x012eb34c in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #18 0x0132bfa2 in ive::Group::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #19 0x012ebcb6 in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #20 0x0133e3d8 in IVEReaderWriter::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #21 0x01340d10 in IVEReaderWriter::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #22 0x002c2c18 in osgDB::Registry::ReadNodeFunctor::doRead
() from /usr/local/lib/libosgDB.so
 #23 0x002c0442 in osgDB::Registry::read () from /usr/local/lib/libosgDB.so
 #24 0x002c13e5 in osgDB::Registry::readImplementation ()
from /usr/local/lib/libosgDB.so
 #25 0x002c1537 in osgDB::Registry::readNodeImplementation
() from /usr/local/lib/libosgDB.so
 #26 0x002b0c36 in osgDB::Registry::readNode () from
/usr/local/lib/libosgDB.so
 #27 0x002af189 in osgDB::readNodeFile () from /usr/local/lib/libosgDB.so
 #28 0x00299d26 in osgDB::readNodeFile () from /usr/local/lib/libosgDB.so
 #29 0x00296cdc in osgDB::DatabasePager::run () from
/usr/local/lib/libosgDB.so
 #30 0x00114696 in
OpenThreads::ThreadPrivateActions::StartThread () from
/usr/local/lib/libOpenThreads.so
 #31 0x00c28b80 in start_thread () from /lib/libpthread.so.0
 #32 0x008aedee in clone () from /lib/libc.so.6



 #0 0x005a9b94 in __gnu_cxx::__mt_alloc<osg::Vec4f,
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true>
>::allocate ()
 from /usr/local/lib/libosgText.so
 #1 0x00e31cf9 in ive::DataInputStream::readVec4Array ()
from /usr/local/lib//osgPlugins/osgdb_ive.so
 #2 0x00e33267 in ive::DataInputStream::readArray () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #3 0x00e5b4e0 in ive::Geometry::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #4 0x00e34c9b in ive::DataInputStream::readDrawable ()
from /usr/local/lib//osgPlugins/osgdb_ive.so
 #5 0x00e59df6 in ive::Geode::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #6 0x00e35424 in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #7 0x00e5d285 in ive::Group::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #8 0x00e353ef in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #9 0x00e5d285 in ive::Group::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #10 0x00e64d53 in ive::MatrixTransform::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #11 0x00e35069 in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #12 0x00e5d285 in ive::Group::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #13 0x00e353ef in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #14 0x00e73861 in IVEReaderWriter::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #15 0x00e72f50 in IVEReaderWriter::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #16 0x00ef4ac4 in osgDB::Registry::ReadNodeFunctor::doRead
() from /usr/local/lib/libosgDB.so
 #17 0x00eeb15e in osgDB::Registry::read () from /usr/local/lib/libosgDB.so
 #18 0x00eebf75 in osgDB::Registry::readImplementation ()
from /usr/local/lib/libosgDB.so
 #19 0x00eec584 in osgDB::Registry::readNodeImplementation
() from /usr/local/lib/libosgDB.so
 #20 0x00edd69e in osgDB::readNodeFile () from /usr/local/lib/libosgDB.so
 #21 0x00ec2e1c in osgDB::DatabasePager::run () from
/usr/local/lib/libosgDB.so
 #22 0x00a9a696 in
OpenThreads::ThreadPrivateActions::StartThread () from
/usr/local/lib/libOpenThreads.so
 #23 0x00c28b80 in start_thread () from /lib/libpthread.so.0
 #24 0x008c0dee in clone () from /lib/libc.so.6


 #0 0x0036dcbb in __gnu_cxx::__mt_alloc<unsigned short,
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true>
>::allocate ()
 from /usr/local/lib/libosgUtil.so
 #1 0x003bf7be in std::vector<unsigned short, std::allocator<unsigned short>
>::_M_fill_insert () from /usr/local/lib/libosgUtil.so
 #2 0x00e5533f in ive::DrawElementsUShort::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #3 0x00e5b229 in ive::Geometry::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #4 0x00e34c9b in ive::DataInputStream::readDrawable ()
from /usr/local/lib//osgPlugins/osgdb_ive.so
 #5 0x00e59df6 in ive::Geode::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #6 0x00e35424 in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #7 0x00e5d285 in ive::Group::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #8 0x00e64d53 in ive::MatrixTransform::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #9 0x00e35069 in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #10 0x00e5d285 in ive::Group::read () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #11 0x00e353ef in ive::DataInputStream::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #12 0x00e73861 in IVEReaderWriter::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #13 0x00e72f50 in IVEReaderWriter::readNode () from
/usr/local/lib//osgPlugins/osgdb_ive.so
 #14 0x0091bac4 in osgDB::Registry::ReadNodeFunctor::doRead
() from /usr/local/lib/libosgDB.so
 #15 0x0091215e in osgDB::Registry::read () from /usr/local/lib/libosgDB.so
 #16 0x00912f75 in osgDB::Registry::readImplementation ()
from /usr/local/lib/libosgDB.so
 #17 0x00913584 in osgDB::Registry::readNodeImplementation
() from /usr/local/lib/libosgDB.so
 #18 0x0090469e in osgDB::readNodeFile () from /usr/local/lib/libosgDB.so
 #19 0x008e9e1c in osgDB::DatabasePager::run () from
/usr/local/lib/libosgDB.so
 #20 0x00114696 in
OpenThreads::ThreadPrivateActions::StartThread () from
/usr/local/lib/libOpenThreads.so
 #21 0x00c28b80 in start_thread () from /lib/libpthread.so.0
 #22 0x00a10dee in clone () from /lib/libc.so.6

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to