Enabling vsync on all cards/screens worked and it runs ok now. I traced the segfault down to the statshandler code or better say the the things it uses. Problem is that valgrind slows down the machine as much so that the race condition does not get triggered. Maybe I wasn't clear xrandr is not needed but it seems without it OSG_WINDOW and OSG_SCREEN environment variables have no effect - windows end up on the second screen of the first card.


Cheers,
Hartmut


Robert Osfield wrote:
Hi Hartmut,

I have driven four screens from two cards under linux without
problems, but haven't recently tried this.  I also didn't use Xrandr,
and I'm not sure why you say this is needed as running four screens is
possible with just straight configuration of xorg.conf.

The stack trace you have suggest the crash is in OpenGL, so it could
be a driver bug or perhaps an OSG bug, but at this stage not possible
to say which.  Try different OpenGL versions.

Also please enable vsync.

Robert.

On Mon, Oct 13, 2008 at 9:58 PM, Hartmut Seichter
<[EMAIL PROTECTED]> wrote:
Dear osg'ler Following scenario:

Quad Core 2 with three NVIDIA 260 GTX - SLI is installed but not used - four
screens (final setup will have six), no Xinerama (this performs even worse).
OSG is build with Xrandr support so it works as is with the four screens

Ubuntu 8.04.1 + latest patches, NVIDIA driver 177.80 compiled for the
respective kernel:  x86_64 GNU/Linux 2.6.24-19-generic

OpenSceneGraph 2.6.1 (HEAD of branch of 2.6) - for sake of completeness OSG
2.4 release shows the same behaviour

when running the cow.osg the application crashes a few frames after pulling
up the statshandler ... however, even without the stats the performance is
rather poor or lets say "jumpy" between 900 and 90 fps. Changing the
threading modes does help at least the SingleThreaded doesn't crash but is
rather slow ~200fps. I am trying to triangulate between OSG, nvidia driver
and the Xorg config where things go haywire.

Attached the backtrace of the crash. Please let me know if you need more
information.

Goal for us is actually to merge a three screen vis centre to run off one
machine rather than on three with removing the need for network sync etc pp.


Cheers,
Hartmut



--
Hartmut Seichter, PhD (HKU), Dipl-Ing.(BUW), Postdoctoral Fellow, HITLabNZ


(gdb) back
#0  0x00007f80a070f095 in raise () from /lib/libc.so.6
#1  0x00007f80a0710af0 in abort () from /lib/libc.so.6
#2  0x00007f80a0749a7b in ?? () from /lib/libc.so.6
#3  0x00007f80a075108a in ?? () from /lib/libc.so.6
#4  0x00007f80a0754c1c in free () from /lib/libc.so.6
#5  0x00007f809f876d5b in ?? () from /usr/lib/libGLcore.so.1
#6  0x00007f809f876fab in ?? () from /usr/lib/libGLcore.so.1
#7  0x00007f80a3655feb in osg::Drawable::Extensions::glGetQueryObjectiv ()
  from /usr/local/lib64/libosg.so.48
#8  0x00007f80a2553012 in osgViewer::OpenGLQuerySupport::checkQuery ()
  from /usr/local/lib64/libosgViewer.so.48
#9  0x00007f80a2554410 in osgViewer::Renderer::draw ()
  from /usr/local/lib64/libosgViewer.so.48
#10 0x00007f80a254ff39 in osgViewer::Renderer::operator() ()
  from /usr/local/lib64/libosgViewer.so.48
#11 0x00007f80a36b828d in osg::GraphicsContext::runOperations ()
  from /usr/local/lib64/libosg.so.48
#12 0x00007f80a36c285d in osg::RunOperations::operator() ()
  from /usr/local/lib64/libosg.so.48
#13 0x00007f80a36c2ed0 in osg::GraphicsOperation::operator() ()
  from /usr/local/lib64/libosg.so.48
#14 0x00007f80a3707ddd in osg::OperationThread::run ()
  from /usr/local/lib64/libosg.so.48
#15 0x00007f80a36c2f58 in osg::GraphicsThread::run ()
  from /usr/local/lib64/libosg.so.48
#16 0x00007f80a3a9e956 in OpenThreads::ThreadPrivateActions::StartThread ()
  from /usr/local/lib64/libOpenThreads.so.11
#17 0x00007f80a1d9a3f7 in start_thread () from /lib/libpthread.so.0
#18 0x00007f80a07b4b3d in clone () from /lib/libc.so.6
#19 0x0000000000000000 in ?? ()


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


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


--
Hartmut Seichter, PhD (HKU), Dipl-Ing.(BUW), Postdoctoral Fellow, HITLabNZ

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

Reply via email to