Durk Talsma wrote: > > FWIW, I;m seeing an occasional segfault. Today, I managed to trap it using > gdb. below is the complete stack trace. IIRC, 2D texture loading has been > giving occasional problems. This particular error occurred in my new traffic > manager version of Flightgear. It doesn't seem to make much of a difference, > I > guess. > This is great! We can't call osgDB:SharedStateManager::share from the database pager thread. I'll check in a fix soon.
Thanks, Tim > Cheers, > Durk > > > > #0 0x00007f3d24ca20e1 in osg::StateSet::compare () from > /usr/local/lib64/libosg.so.43 > #1 0x00007f3d253467e0 in osgDB::SharedStateManager::find () from > /usr/local/lib64/libosgDB.so.43 > #2 0x00007f3d25347488 in osgDB::SharedStateManager::process () from > /usr/local/lib64/libosgDB.so.43 > #3 0x00007f3d25347688 in osgDB::SharedStateManager::apply () from > /usr/local/lib64/libosgDB.so.43 > #4 0x00007f3d253466f1 in osgDB::SharedStateManager::share () from > /usr/local/lib64/libosgDB.so.43 > #5 0x000000000090554c in SGLoadTexture2D (staticTexture=true, path=<value > optimized out>, options=<value optimized out>, wrapu=false, wrapv=true) > at model.cxx:68 > ---Type <return> to continue, or q <return> to quit--- > #6 0x00000000008d1d96 in SGMaterial::assignTexture (this=<value optimized > out>, state=0x74e3910, [EMAIL PROTECTED], _wrapu=true, _wrapv=48, > _mipmap=<value optimized out>) at > ../../../simgear/scene/model/model.hxx:37 > #7 0x00000000008d1eed in SGMaterial::get_state (this=0x74e2d80, n=<value > optimized out>) at mat.cxx:236 > #8 0x00000000008e7412 in SGLoadBTG ([EMAIL PROTECTED], matlib=0x725a3c0, > calc_lights=true, use_random_objects=true, use_random_vegetation=true) > at obj.cxx:394 > #9 0x00000000008dbb2d in SGReaderWriterBTG::readNode (this=0xd31140, > [EMAIL PROTECTED], options=0x741d2b0) at SGReaderWriterBTG.cxx:73 > #10 0x00000000008dc51e in > simgear::ModelRegistryCallback<simgear::DefaultProcessPolicy, > simgear::NoCachePolicy, simgear::NoOptimizePolicy, simgear::NoCopyPo---Type > <return> to continue, or q <return> to quit--- > licy, simgear::NoSubstitutePolicy>::loadUsingReaderWriter > ([EMAIL PROTECTED], opt=0x741d2b0) at > ../../../simgear/scene/model/ModelRegistry.hxx:115 > #11 0x00000000008dc857 in > simgear::ModelRegistryCallback<simgear::DefaultProcessPolicy, > simgear::NoCachePolicy, simgear::NoOptimizePolicy, simgear::NoCopyPolicy, > simgear::NoSubstitutePolicy>::readNode (this=0xd310d0, [EMAIL PROTECTED], > opt=0x741d2b0) at ../../../simgear/scene/model/ModelRegistry.hxx:91 > #12 0x0000000000909e9f in simgear::ModelRegistry::readNode (this=0xd304d0, > [EMAIL PROTECTED], opt=0x741d2b0) at ModelRegistry.cxx:500 > #13 0x00007f3d2532d599 in osgDB::readNodeFile () from > /usr/local/lib64/libosgDB.so.43 > #14 0x00000000008df059 in simgear::TileEntry::obj_load ([EMAIL PROTECTED], > geometry=0x7f3d1805cb00, is_base=true, options=0x1) at TileEntry.cxx:237 > #15 0x00000000008e1ae0 in simgear::TileEntry::loadTileByName > ([EMAIL PROTECTED], options=0x741d2b0) at TileEntry.cxx:419 > ---Type <return> to continue, or q <return> to quit--- > #16 0x00000000008f7edd in simgear::ReaderWriterSTG::readNode (this=0xd30f60, > fileName=<value optimized out>, options=0x741d2b0) at ReaderWriterSTG.cxx:71 > #17 0x00000000008dc51e in > simgear::ModelRegistryCallback<simgear::DefaultProcessPolicy, > simgear::NoCachePolicy, simgear::NoOptimizePolicy, simgear::NoCopyPolicy, > simgear::NoSubstitutePolicy>::loadUsingReaderWriter ([EMAIL PROTECTED], > opt=0x741d2b0) at ../../../simgear/scene/model/ModelRegistry.hxx:115 > #18 0x00000000008dc857 in > simgear::ModelRegistryCallback<simgear::DefaultProcessPolicy, > simgear::NoCachePolicy, simgear::NoOptimizePolicy, simgear::NoCopyPolicy, > simgear::NoSubstitutePolicy>::readNode (this=0xd31030, [EMAIL PROTECTED], > opt=0x741d2b0) at ../../../simgear/scene/model/ModelRegistry.hxx:91 > #19 0x0000000000909e9f in simgear::ModelRegistry::readNode (this=0xd304d0, > [EMAIL PROTECTED], opt=0x741d2b0) at ModelRegistry.cxx:500 > #20 0x00007f3d25302880 in > osgDB::DatabasePager::DatabaseThread::dpReadRefNodeFile () from > /usr/local/lib64/libosgDB.so.43 > ---Type <return> to continue, or q <return> to quit--- > #21 0x00007f3d25308c76 in osgDB::DatabasePager::DatabaseThread::run () from > /usr/local/lib64/libosgDB.so.43 > #22 0x00007f3d248d9eb0 in OpenThreads::ThreadPrivateActions::StartThread () > from /usr/local/lib64/libOpenThreads.so.11 > #23 0x00007f3d28297040 in start_thread () from /lib64/libpthread.so.0 > #24 0x00007f3d23efa0cd in clone () from /lib64/libc.so.6 > (gdb) bt > #0 0x00007f3d24ca20e1 in osg::StateSet::compare () from > /usr/local/lib64/libosg.so.43 > #1 0x00007f3d253467e0 in osgDB::SharedStateManager::find () from > /usr/local/lib64/libosgDB.so.43 > #2 0x00007f3d25347488 in osgDB::SharedStateManager::process () from > /usr/local/lib64/libosgDB.so.43 > #3 0x00007f3d25347688 in osgDB::SharedStateManager::apply () from > /usr/local/lib64/libosgDB.so.43 > #4 0x00007f3d253466f1 in osgDB::SharedStateManager::share () from > /usr/local/lib64/libosgDB.so.43 > #5 0x000000000090554c in SGLoadTexture2D (staticTexture=true, path=<value > optimized out>, options=<value optimized out>, wrapu=false, wrapv=true) > at model.cxx:68 > ---Type <return> to continue, or q <return> to quit--- > #6 0x00000000008d1d96 in SGMaterial::assignTexture (this=<value optimized > out>, state=0x74e3910, [EMAIL PROTECTED], _wrapu=true, _wrapv=48, > _mipmap=<value optimized out>) at > ../../../simgear/scene/model/model.hxx:37 > #7 0x00000000008d1eed in SGMaterial::get_state (this=0x74e2d80, n=<value > optimized out>) at mat.cxx:236 > #8 0x00000000008e7412 in SGLoadBTG ([EMAIL PROTECTED], matlib=0x725a3c0, > calc_lights=true, use_random_objects=true, use_random_vegetation=true) > at obj.cxx:394 > #9 0x00000000008dbb2d in SGReaderWriterBTG::readNode (this=0xd31140, > [EMAIL PROTECTED], options=0x741d2b0) at SGReaderWriterBTG.cxx:73 > #10 0x00000000008dc51e in > simgear::ModelRegistryCallback<simgear::DefaultProcessPolicy, > simgear::NoCachePolicy, simgear::NoOptimizePolicy, simgear::NoCopyPo---Type > <return> to continue, or q <return> to quit--- > licy, simgear::NoSubstitutePolicy>::loadUsingReaderWriter > ([EMAIL PROTECTED], opt=0x741d2b0) at > ../../../simgear/scene/model/ModelRegistry.hxx:115 > #11 0x00000000008dc857 in > simgear::ModelRegistryCallback<simgear::DefaultProcessPolicy, > simgear::NoCachePolicy, simgear::NoOptimizePolicy, simgear::NoCopyPolicy, > simgear::NoSubstitutePolicy>::readNode (this=0xd310d0, [EMAIL PROTECTED], > opt=0x741d2b0) at ../../../simgear/scene/model/ModelRegistry.hxx:91 > #12 0x0000000000909e9f in simgear::ModelRegistry::readNode (this=0xd304d0, > [EMAIL PROTECTED], opt=0x741d2b0) at ModelRegistry.cxx:500 > #13 0x00007f3d2532d599 in osgDB::readNodeFile () from > /usr/local/lib64/libosgDB.so.43 > #14 0x00000000008df059 in simgear::TileEntry::obj_load ([EMAIL PROTECTED], > geometry=0x7f3d1805cb00, is_base=true, options=0x1) at TileEntry.cxx:237 > #15 0x00000000008e1ae0 in simgear::TileEntry::loadTileByName > ([EMAIL PROTECTED], options=0x741d2b0) at TileEntry.cxx:419 > ---Type <return> to continue, or q <return> to quit--- > #16 0x00000000008f7edd in simgear::ReaderWriterSTG::readNode (this=0xd30f60, > fileName=<value optimized out>, options=0x741d2b0) at ReaderWriterSTG.cxx:71 > #17 0x00000000008dc51e in > simgear::ModelRegistryCallback<simgear::DefaultProcessPolicy, > simgear::NoCachePolicy, simgear::NoOptimizePolicy, simgear::NoCopyPolicy, > simgear::NoSubstitutePolicy>::loadUsingReaderWriter ([EMAIL PROTECTED], > opt=0x741d2b0) at ../../../simgear/scene/model/ModelRegistry.hxx:115 > #18 0x00000000008dc857 in > simgear::ModelRegistryCallback<simgear::DefaultProcessPolicy, > simgear::NoCachePolicy, simgear::NoOptimizePolicy, simgear::NoCopyPolicy, > simgear::NoSubstitutePolicy>::readNode (this=0xd31030, [EMAIL PROTECTED], > opt=0x741d2b0) at ../../../simgear/scene/model/ModelRegistry.hxx:91 > #19 0x0000000000909e9f in simgear::ModelRegistry::readNode (this=0xd304d0, > [EMAIL PROTECTED], opt=0x741d2b0) at ModelRegistry.cxx:500 > #20 0x00007f3d25302880 in > osgDB::DatabasePager::DatabaseThread::dpReadRefNodeFile () from > /usr/local/lib64/libosgDB.so.43 > ---Type <return> to continue, or q <return> to quit--- > #21 0x00007f3d25308c76 in osgDB::DatabasePager::DatabaseThread::run () from > /usr/local/lib64/libosgDB.so.43 > #22 0x00007f3d248d9eb0 in OpenThreads::ThreadPrivateActions::StartThread () > from /usr/local/lib64/libOpenThreads.so.11 > #23 0x00007f3d28297040 in start_thread () from /lib64/libpthread.so.0 > #24 0x00007f3d23efa0cd in clone () from /lib64/libc.so.6 > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel