Segfault when using tests (osg 2.6, linux)

classic Classic list List threaded Threaded
6 messages Options
Pablo d'Angelo Pablo d'Angelo
Reply | Threaded
Open this post in threaded view
|

Segfault when using tests (osg 2.6, linux)

Hi all,

first let me say that osgearth looks like a great project. I've downloaded and compiled the svn source (rev. 266). I use ubuntu linux 8.04 (hardy), with openscenegraph 2.6 (I did compile that myself).
However, I get segfaults when running the examples:

angelo@angelo-laptop:~/soft/other/osg/osgearth-svn$ osgviewer tests/openstreetmap.earth
Overriding profile to GLOBAL_MERCATOR due to profile in MapConfig
TMS driver inverting y
mismatched tag, 9
Failed to load TileMap
TMSSource: no TileMap found; checking for client-side settings..
Segmentation fault

Is there any way to fix this, or a SVN revision that is known to work?

Here is the backtrace:
angelo@angelo-laptop:~/soft/other/osg/osgearth-svn$ gdb osgviewer
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) r tests/openstreetmap.earth
Starting program: /usr/local/bin/osgviewer tests/openstreetmap.earth
[Thread debugging using libthread_db enabled]
[New Thread 0xb757b920 (LWP 18352)]
Overriding profile to GLOBAL_MERCATOR due to profile in MapConfig
TMS driver inverting y
mismatched tag, 9
Failed to load TileMap
TMSSource: no TileMap found; checking for client-side settings..
[New Thread 0xb3196b90 (LWP 18355)]
[New Thread 0xb2995b90 (LWP 18356)]
[New Thread 0xb2194b90 (LWP 18357)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb3196b90 (LWP 18355)]
0xb6e66da3 in ?? () from /usr/lib/dri/i965_dri.so
(gdb) bt
#0  0xb6e66da3 in ?? () from /usr/lib/dri/i965_dri.so
#1  0xb7ec4b1d in osg::DrawElementsUInt::draw () from /usr/local/lib/libosg.so.48
#2  0xb7e52e00 in osg::Geometry::drawImplementation () from /usr/local/lib/libosg.so.48
#3  0xb7e29d40 in osg::Drawable::compileGLObjects () from /usr/local/lib/libosg.so.48
#4  0xb7be711d in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#5  0xb7be8256 in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#6  0xb7e4ca04 in osg::Geode::accept () from /usr/local/lib/libosg.so.48
#7  0xb7e81534 in osg::Group::traverse () from /usr/local/lib/libosg.so.48
#8  0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#9  0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#10 0xb7eb0b38 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#11 0xb7eb0b98 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#12 0xb7ea3cd4 in osg::MatrixTransform::accept () from /usr/local/lib/libosg.so.48
#13 0xb73c9daf in osgTerrain::GeometryTechnique::traverse () from /usr/local/lib/libosgTerrain.so.48
#14 0xb73c425f in osgTerrain::TerrainTile::traverse () from /usr/local/lib/libosgTerrain.so.48
#15 0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#16 0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#17 0xb73c6184 in osgTerrain::TerrainTile::accept () from /usr/local/lib/libosgTerrain.so.48
#18 0xb7e81534 in osg::Group::traverse () from /usr/local/lib/libosg.so.48
#19 0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#20 0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#21 0xb7e82cc4 in osg::Group::accept () from /usr/local/lib/libosg.so.48
#22 0xb7e81534 in osg::Group::traverse () from /usr/local/lib/libosg.so.48
#23 0xb73c7814 in osgTerrain::Terrain::traverse () from /usr/local/lib/libosgTerrain.so.48
#24 0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#25 0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#26 0xb7546ff7 in osgTerrain::Terrain::accept (this=0x8067488, nv=@0xb3196018) at /usr/local/include/osgTerrain/Terrain:35
#27 0xb7e81534 in osg::Group::traverse () from /usr/local/lib/libosg.so.48
#28 0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#29 0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#30 0xb7eb0ab8 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#31 0xb7e16824 in osg::CoordinateSystemNode::accept () from /usr/local/lib/libosg.so.48
#32 0xb7ac60cc in osgViewer::Renderer::compile () from /usr/local/lib/libosgViewer.so.48
#33 0xb7ac411a in osgViewer::Renderer::draw () from /usr/local/lib/libosgViewer.so.48
#34 0xb7ac1928 in osgViewer::Renderer::operator() () from /usr/local/lib/libosgViewer.so.48
#35 0xb7e77c51 in osg::GraphicsContext::runOperations () from /usr/local/lib/libosg.so.48
#36 0xb7e7f03d in osg::RunOperations::operator() () from /usr/local/lib/libosg.so.48
#37 0xb7e7f157 in osg::GraphicsOperation::operator() () from /usr/local/lib/libosg.so.48
#38 0xb7ebae19 in osg::OperationThread::run () from /usr/local/lib/libosg.so.48
#39 0xb7e7f1e9 in osg::GraphicsThread::run () from /usr/local/lib/libosg.so.48
#40 0xb7fa325d in OpenThreads::ThreadPrivateActions::StartThread () from /usr/local/lib/libOpenThreads.so.11
#41 0xb7a2e4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#42 0xb7692e5e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: Segfault when using tests (osg 2.6, linux)

Hi Pablo,

I'm using Ubuntu 8.10 and Windows Vista and currently and aren't seeing any segfaults with the latest version (266) and the example files on either.  I'm not sure what the issue could be right off hand.  Do the other OSG examples work alright for you?

Thanks,

Jason

On Mon, Feb 16, 2009 at 2:12 PM, Pablo d'Angelo (via Nabble) - No Reply <[hidden email]> wrote:
Hi all,

first let me say that osgearth looks like a great project. I've downloaded and compiled the svn source (rev. 266). I use ubuntu linux 8.04 (hardy), with openscenegraph 2.6 (I did compile that myself).
However, I get segfaults when running the examples:

angelo@angelo-laptop:~/soft/other/osg/osgearth-svn$ osgviewer tests/openstreetmap.earth
Overriding profile to GLOBAL_MERCATOR due to profile in MapConfig
TMS driver inverting y
mismatched tag, 9
Failed to load TileMap
TMSSource: no TileMap found; checking for client-side settings..
Segmentation fault

Is there any way to fix this, or a SVN revision that is known to work?

Here is the backtrace:
angelo@angelo-laptop:~/soft/other/osg/osgearth-svn$ gdb osgviewer
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) r tests/openstreetmap.earth
Starting program: /usr/local/bin/osgviewer tests/openstreetmap.earth
[Thread debugging using libthread_db enabled]
[New Thread 0xb757b920 (LWP 18352)]
Overriding profile to GLOBAL_MERCATOR due to profile in MapConfig
TMS driver inverting y
mismatched tag, 9
Failed to load TileMap
TMSSource: no TileMap found; checking for client-side settings..
[New Thread 0xb3196b90 (LWP 18355)]
[New Thread 0xb2995b90 (LWP 18356)]
[New Thread 0xb2194b90 (LWP 18357)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb3196b90 (LWP 18355)]
0xb6e66da3 in ?? () from /usr/lib/dri/i965_dri.so
(gdb) bt
#0  0xb6e66da3 in ?? () from /usr/lib/dri/i965_dri.so
#1  0xb7ec4b1d in osg::DrawElementsUInt::draw () from /usr/local/lib/libosg.so.48
#2  0xb7e52e00 in osg::Geometry::drawImplementation () from /usr/local/lib/libosg.so.48
#3  0xb7e29d40 in osg::Drawable::compileGLObjects () from /usr/local/lib/libosg.so.48
#4  0xb7be711d in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#5  0xb7be8256 in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#6  0xb7e4ca04 in osg::Geode::accept () from /usr/local/lib/libosg.so.48
#7  0xb7e81534 in osg::Group::traverse () from /usr/local/lib/libosg.so.48
#8  0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#9  0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#10 0xb7eb0b38 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#11 0xb7eb0b98 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#12 0xb7ea3cd4 in osg::MatrixTransform::accept () from /usr/local/lib/libosg.so.48
#13 0xb73c9daf in osgTerrain::GeometryTechnique::traverse () from /usr/local/lib/libosgTerrain.so.48
#14 0xb73c425f in osgTerrain::TerrainTile::traverse () from /usr/local/lib/libosgTerrain.so.48
#15 0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#16 0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#17 0xb73c6184 in osgTerrain::TerrainTile::accept () from /usr/local/lib/libosgTerrain.so.48
#18 0xb7e81534 in osg::Group::traverse () from /usr/local/lib/libosg.so.48
#19 0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#20 0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#21 0xb7e82cc4 in osg::Group::accept () from /usr/local/lib/libosg.so.48
#22 0xb7e81534 in osg::Group::traverse () from /usr/local/lib/libosg.so.48
#23 0xb73c7814 in osgTerrain::Terrain::traverse () from /usr/local/lib/libosgTerrain.so.48
#24 0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#25 0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#26 0xb7546ff7 in osgTerrain::Terrain::accept (this=0x8067488, nv=@0xb3196018) at /usr/local/include/osgTerrain/Terrain:35
#27 0xb7e81534 in osg::Group::traverse () from /usr/local/lib/libosg.so.48
#28 0xb7be82fc in osgUtil::GLObjectsVisitor::apply () from /usr/local/lib/libosgUtil.so.48
#29 0xb7eb0a58 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#30 0xb7eb0ab8 in osg::NodeVisitor::apply () from /usr/local/lib/libosg.so.48
#31 0xb7e16824 in osg::CoordinateSystemNode::accept () from /usr/local/lib/libosg.so.48
#32 0xb7ac60cc in osgViewer::Renderer::compile () from /usr/local/lib/libosgViewer.so.48
#33 0xb7ac411a in osgViewer::Renderer::draw () from /usr/local/lib/libosgViewer.so.48
#34 0xb7ac1928 in osgViewer::Renderer::operator() () from /usr/local/lib/libosgViewer.so.48
#35 0xb7e77c51 in osg::GraphicsContext::runOperations () from /usr/local/lib/libosg.so.48
#36 0xb7e7f03d in osg::RunOperations::operator() () from /usr/local/lib/libosg.so.48
#37 0xb7e7f157 in osg::GraphicsOperation::operator() () from /usr/local/lib/libosg.so.48
#38 0xb7ebae19 in osg::OperationThread::run () from /usr/local/lib/libosg.so.48
#39 0xb7e7f1e9 in osg::GraphicsThread::run () from /usr/local/lib/libosg.so.48
#40 0xb7fa325d in OpenThreads::ThreadPrivateActions::StartThread () from /usr/local/lib/libOpenThreads.so.11
#41 0xb7a2e4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#42 0xb7692e5e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)



View message @ http://n2.nabble.com/Segfault-when-using-tests-%28osg-2.6%2C-linux%29-tp2336655p2336655.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.


Pablo d'Angelo Pablo d'Angelo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault when using tests (osg 2.6, linux)

Hi Jason,

Yes, my osg 2.6 install works, I have extensively tested that with some big databases build with VirtualPlanetBuilder. I'll try using osg 2.8 instead of osg 2.6 and see what happens.

ciao
 Pablo
Pablo d'Angelo Pablo d'Angelo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault when using tests (osg 2.6, linux)

Hi all,

Upgrading to osg 2.8 did not solve this problem. The crash only happens on my laptop (Ubuntu 8.04, with Intel 965 onboard graphics). Osgearth works fine on my workstation with an NVidia card. So I guess its due to a buggy driver by intel.

ciao
 Pablo
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: Segfault when using tests (osg 2.6, linux)

Hi Pablo,

This is worth a shot.  Sometimes Intel graphics drivers have issues with VBO's, which osgTerrain uses.  Try disabling them by setting the OSG_GL_EXTENSION_DISABLE environment variable to GL_ARB_vertex_buffer_object and see if that helps.

Thanks!

Jason

On Wed, Feb 18, 2009 at 11:02 AM, Pablo d'Angelo (via Nabble) <[hidden email]> wrote:
Hi all,

Upgrading to osg 2.8 did not solve this problem. The crash only happens on my laptop (Ubuntu 8.04, with Intel 965 onboard graphics). Osgearth works fine on my workstation with an NVidia card. So I guess its due to a buggy driver by intel.

ciao
 Pablo


View message @ http://n2.nabble.com/Segfault-when-using-tests-%28osg-2.6%2C-linux%29-tp2336655p2347698.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.


Pablo d'Angelo Pablo d'Angelo
Reply | Threaded
Open this post in threaded view
|

Re: Segfault when using tests (osg 2.6, linux)

Hi Jason,

Thanks for the tip,
export OSG_GL_EXTENSION_DISABLE=GL_ARB_vertex_buffer_object
did indeed solve the problem.

ciao
 Pablo