Re: [osg-users] Segfault with Qt

2011-10-25 Thread Tiziano Müller
Hi Jason

Well, I tried once with the nvidia-drivers as well and I got a segfault
in libGL instead, but I will try again.

This was on a Gentoo Linux, not on a Fedora, but the versions of
nouveau-drivers, mesa, qt and openscenegraph were basically the same.
While I could reproduce it on Fedora 16, it works on Kubuntu 11.10 as
Robert said. The version of Qt is always 4.7.4, so it may be the
nouveau-drivers and the failure I had with the nvidia-drivers was
something different, but I will check again.
Interestingly, openscenegraph is currently the only 3D-library having a
problem here, the demos from Visualization Library with Qt work.


Thanks,
Tiziano

Am Montag, den 24.10.2011, 11:58 -0400 schrieb Jason Daly:
 On 10/22/2011 09:09 AM, Tiziano Müller wrote: 
  Hi everyone
  
  I am using OpenSceneGraph-3.0.1 for a little project together with Qt-4.7.4
  and it worked perfectly. After same updates on my system (I can't figure
  out what exactly changed) I get segfaults when starting either my app or
  the osgviewerQt demo.
 
 Hi, Tiziano,
 
 It looks like you're using the open-source Nouveau drivers that come
 with Fedora.  These drivers are in a constant state of development.
 From the Nouveau FAQ:
 
 nv50 and nvc0
 On February 28th, 2011, the original nv50 Gallium3D driver was
 completely replaced (in git) by the nvc0 Gallium3D driver
 ported to NV50 family of cards. These drivers are included in
 Mesa 7.11. For nvc0 and the new nv50 drivers, you have to use
 at least the 2.6.38 kernel or you will encounter memory
 corruption. 
 
 Bug reports for nv50 and nvc0 can be submitted by following
 the general reporting guidelines. Please, also follow the
 About bugs and problems section above.
 
 If you want things to function reliably, you should probably install
 the proprietary Nvidia drivers from http://www.nvidia.com.  Otherwise,
 it'll be up to you to deal with the normal issues of unstable
 open-source software.
 
 --J
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Segfault with Qt

2011-10-25 Thread Robert Osfield
Hi Tiziano,

On Tue, Oct 25, 2011 at 7:15 AM, Tiziano Müller t...@dev-zero.ch wrote:
 Well, I tried once with the nvidia-drivers as well and I got a segfault
 in libGL instead, but I will try again.

Do none Qt OSG apps work OK?, i.e. osgviewer, osgcomposteviewe etc.

Have you tried the --SingleThreaded option that I suggested?

 Interestingly, openscenegraph is currently the only 3D-library having a
 problem here, the demos from Visualization Library with Qt work.

Threading, types of OpenGL calls could all have an effect on what
parts of Qt and the GL driver stack that are being worked so just
because one library doesn't exhibit problems and another does it
doesn't mean that the problem in the driver.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Segfault with Qt

2011-10-25 Thread Tiziano Müller
Hi Mathias

Am Dienstag, den 25.10.2011, 07:54 +0200 schrieb Mathias Fröhlich:
 Hi,
 
 On Monday 24 October 2011, Jason Daly wrote:
  If you want things to function reliably, you should probably install the
  proprietary Nvidia drivers from http://www.nvidia.com.  Otherwise, it'll
  be up to you to deal with the normal issues of unstable open-source
  software.
 
 He reported at the bottom of the original mail that it also fails on nvidias 
 own drivers. So it's probably just nice to see a non obfuscated backtrace on 
 our end, when we get such a backtrace in a bugreport ...
Unfortunately I can't reproduce it anymore with the newest NVidia
(290.03) drivers. Older nvidia-drivers don't build anymore here because
of a newer xorg-server and had several problems using Gnome and Compiz.

So, I guess this can be marked as solved for now.

Thanks for your help,
Cheers,
Tiziano

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Segfault with Qt

2011-10-25 Thread Tiziano Müller
Hi Robert

Am Dienstag, den 25.10.2011, 08:44 +0100 schrieb Robert Osfield:
 Hi Tiziano,
 
 On Tue, Oct 25, 2011 at 7:15 AM, Tiziano Müller t...@dev-zero.ch wrote:
  Well, I tried once with the nvidia-drivers as well and I got a segfault
  in libGL instead, but I will try again.
 
 Do none Qt OSG apps work OK?, i.e. osgviewer, osgcomposteviewe etc.
 
 Have you tried the --SingleThreaded option that I suggested?
Yes, and also my application is using the single thread model.
Unfortunately it didn't help, same result.

 
  Interestingly, openscenegraph is currently the only 3D-library having a
  problem here, the demos from Visualization Library with Qt work.
 
 Threading, types of OpenGL calls could all have an effect on what
 parts of Qt and the GL driver stack that are being worked so just
 because one library doesn't exhibit problems and another does it
 doesn't mean that the problem in the driver.
Yes, that's what I meant.

Greets,
Tiziano

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Segfault with Qt

2011-10-25 Thread Jason Daly

On 10/25/2011 02:15 AM, Tiziano Müller wrote:

Hi Jason

Well, I tried once with the nvidia-drivers as well and I got a segfault
in libGL instead, but I will try again.


My mistake.  I didn't catch that in your original message.  Sometimes I 
read too quickly  :-)


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Segfault with Qt

2011-10-24 Thread Tiziano Müller
Hi

Testing osgviewerQt from osg-3.0.1 on Fedora 16 shows the same
segmentation fault.

Cheers,
Tiziano

Am Samstag, den 22.10.2011, 15:09 +0200 schrieb Tiziano Müller:
 Hi everyone
 
 I am using OpenSceneGraph-3.0.1 for a little project together with Qt-4.7.4
 and it worked perfectly. After same updates on my system (I can't figure
 out what exactly changed) I get segfaults when starting either my app or
 the osgviewerQt demo.
 
 Traceback from my app:
 
 Program received signal SIGSEGV, Segmentation fault.
 0x00841f0f in ?? ()
 (gdb) bt
 #0  0x00841f0f in ?? ()
 #1  0x7fffe6114f83 in nouveau_fence_update () from 
 /usr/lib64/dri/nouveau_dri.so
 #2  0x7fffe60d6f9b in nv50_default_flush_notify () from 
 /usr/lib64/dri/nouveau_dri.so
 #3  0x7fffe5ce861c in nouveau_pushbuf_flush () from 
 /usr/lib64/libdrm_nouveau.so.1
 #4  0x7fffe61195eb in st_context_flush () from 
 /usr/lib64/dri/nouveau_dri.so
 #5  0x7fffe6095c24 in dri_unbind_context () from 
 /usr/lib64/dri/nouveau_dri.so
 #6  0x7fffe60921b6 in driUnbindContext () from 
 /usr/lib64/dri/nouveau_dri.so
 #7  0x723d319d in glXMakeCurrentReadSGI () from /usr/lib64/libGL.so.1
 #8  0x77b88dd2 in QGLContext::doneCurrent() () from 
 /usr/lib64/qt4/libQtOpenGL.so.4
 #9  0x73fb4ed0 in 
 osgQt::GraphicsWindowQt::releaseContextImplementation() () from 
 /usr/lib64/libosgQt.so.80
 #10 0x745f986d in osg::GraphicsContext::releaseContext() () from 
 /usr/lib64/libosg.so.80
 #11 0x73fb5ae7 in osgQt::GraphicsWindowQt::realizeImplementation() () 
 from /usr/lib64/libosgQt.so.80
 #12 0x74209b74 in osgViewer::CompositeViewer::realize() () from 
 /usr/lib64/libosgViewer.so.80
 #13 0x74245789 in osgViewer::ViewerBase::frame(double) () from 
 /usr/lib64/libosgViewer.so.80
 #14 0x0048edb4 in ViewerWidget::paintEvent (this=0x7fcb70) at 
 /home/tiziano/entwicklung/uni/ba/simulation/gui/viewer_widget.cc:91
 #15 0x759728f8 in QWidget::event(QEvent*) () from 
 /usr/lib64/qt4/libQtGui.so.4
 #16 0x75922324 in QApplicationPrivate::notify_helper(QObject*, 
 QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
 #17 0x759271b1 in QApplication::notify(QObject*, QEvent*) () from 
 /usr/lib64/qt4/libQtGui.so.4
 #18 0x74ab53ec in QCoreApplication::notifyInternal(QObject*, QEvent*) 
 () from /usr/lib64/qt4/libQtCore.so.4
 #19 0x7596f806 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
 const, QPoint const, int, QPainter*, QWidgetBackingStore*) () from 
 /usr/lib64/qt4/libQtGui.so.4
 #20 0x759703e0 in 
 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QListQObject* const, 
 int, QRegion const, QPoint const, int, QPainter*, QWidgetBackingStore*) () 
 from /usr/lib64/qt4/libQtGui.so.4
 #21 0x7596f53c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
 const, QPoint const, int, QPainter*, QWidgetBackingStore*) () from 
 /usr/lib64/qt4/libQtGui.so.4
 #22 0x759703e0 in 
 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QListQObject* const, 
 int, QRegion const, QPoint const, int, QPainter*, QWidgetBackingStore*) () 
 from /usr/lib64/qt4/libQtGui.so.4
 #23 0x759702c0 in 
 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QListQObject* const, 
 int, QRegion const, QPoint const, int, QPainter*, QWidgetBackingStore*) () 
 from /usr/lib64/qt4/libQtGui.so.4
 #24 0x759702c0 in 
 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QListQObject* const, 
 int, QRegion const, QPoint const, int, QPainter*, QWidgetBackingStore*) () 
 from /usr/lib64/qt4/libQtGui.so.4
 #25 0x759702c0 in 
 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QListQObject* const, 
 int, QRegion const, QPoint const, int, QPainter*, QWidgetBackingStore*) () 
 from /usr/lib64/qt4/libQtGui.so.4
 #26 0x759702c0 in 
 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QListQObject* const, 
 int, QRegion const, QPoint const, int, QPainter*, QWidgetBackingStore*) () 
 from /usr/lib64/qt4/libQtGui.so.4
 #27 0x7596f53c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
 const, QPoint const, int, QPainter*, QWidgetBackingStore*) () from 
 /usr/lib64/qt4/libQtGui.so.4
 #28 0x75b2d8f2 in QWidgetBackingStore::sync() () from 
 /usr/lib64/qt4/libQtGui.so.4
 #29 0x75b2dc65 in QWidgetBackingStore::sync(QWidget*, QRegion const) 
 () from /usr/lib64/qt4/libQtGui.so.4
 #30 0x7599d595 in QETWidget::translatePaintEvent(_XEvent const*) () 
 from /usr/lib64/qt4/libQtGui.so.4
 #31 0x7599e633 in QApplication::x11ProcessEvent(_XEvent*) () from 
 /usr/lib64/qt4/libQtGui.so.4
 #32 0x759c55c2 in x11EventSourceDispatch(_GSource*, int (*)(void*), 
 void*) () from /usr/lib64/qt4/libQtGui.so.4
 #33 0x7167969d in g_main_context_dispatch () from 
 /usr/lib64/libglib-2.0.so.0
 #34 0x71679e98 in g_main_context_iterate.isra.21 () from 
 /usr/lib64/libglib-2.0.so.0
 #35 0x7167a069 

Re: [osg-users] Segfault with Qt

2011-10-24 Thread Robert Osfield
Hi Tiziano,

osgviewerQt is working fine for me.  I'm using Kubuntu 11.11 and
NVidia drivers.  From glxinfo:

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 560 Ti/PCI/SSE2
OpenGL version string: 4.1.0 NVIDIA 280.13
OpenGL shading language version string: 4.10 NVIDIA via Cg compiler

From the look of the stack traces the problems you are seeing are
driver related.  The example runs in mulit-threaded, perhaps this is
what introducing problem with the drivers.  Try running

osgviewerQt --SingleThreaded

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Segfault with Qt

2011-10-24 Thread Jason Daly

On 10/22/2011 09:09 AM, Tiziano Müller wrote:

Hi everyone

I am using OpenSceneGraph-3.0.1 for a little project together with Qt-4.7.4
and it worked perfectly. After same updates on my system (I can't figure
out what exactly changed) I get segfaults when starting either my app or
the osgviewerQt demo.


Hi, Tiziano,

It looks like you're using the open-source Nouveau drivers that come 
with Fedora.  These drivers are in a constant state of development.  
From the Nouveau FAQ:



 nv50 and nvc0

   On February 28th, 2011, the original nv50 Gallium3D driver was
   completely replaced (in git) by the nvc0 Gallium3D driver ported to
   NV50 family of cards. These drivers are included in *Mesa 7.11*. For
   nvc0 and the new nv50 drivers, you have to use *at least the 2.6.38
   kernel* or you will encounter memory corruption.

   Bug reports for nv50 and nvc0 can be submitted by following the
   general reporting guidelines
   http://nouveau.freedesktop.org/wiki/Bugs. Please, also follow the
   /About bugs and problems/ section above.

If you want things to function reliably, you should probably install the 
proprietary Nvidia drivers from http://www.nvidia.com.  Otherwise, it'll 
be up to you to deal with the normal issues of unstable open-source 
software.


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Segfault with Qt

2011-10-24 Thread Mathias Fröhlich

Hi,

On Monday 24 October 2011, Jason Daly wrote:
 If you want things to function reliably, you should probably install the
 proprietary Nvidia drivers from http://www.nvidia.com.  Otherwise, it'll
 be up to you to deal with the normal issues of unstable open-source
 software.

He reported at the bottom of the original mail that it also fails on nvidias 
own drivers. So it's probably just nice to see a non obfuscated backtrace on 
our end, when we get such a backtrace in a bugreport ...

But I cant reproduce that either. Probably because of a way older qt here?

Greetings

Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Segfault with Qt

2011-10-22 Thread Tiziano Müller
Hi everyone

I am using OpenSceneGraph-3.0.1 for a little project together with Qt-4.7.4
and it worked perfectly. After same updates on my system (I can't figure
out what exactly changed) I get segfaults when starting either my app or
the osgviewerQt demo.

Traceback from my app:

Program received signal SIGSEGV, Segmentation fault.
0x00841f0f in ?? ()
(gdb) bt
#0  0x00841f0f in ?? ()
#1  0x7fffe6114f83 in nouveau_fence_update () from 
/usr/lib64/dri/nouveau_dri.so
#2  0x7fffe60d6f9b in nv50_default_flush_notify () from 
/usr/lib64/dri/nouveau_dri.so
#3  0x7fffe5ce861c in nouveau_pushbuf_flush () from 
/usr/lib64/libdrm_nouveau.so.1
#4  0x7fffe61195eb in st_context_flush () from /usr/lib64/dri/nouveau_dri.so
#5  0x7fffe6095c24 in dri_unbind_context () from 
/usr/lib64/dri/nouveau_dri.so
#6  0x7fffe60921b6 in driUnbindContext () from /usr/lib64/dri/nouveau_dri.so
#7  0x723d319d in glXMakeCurrentReadSGI () from /usr/lib64/libGL.so.1
#8  0x77b88dd2 in QGLContext::doneCurrent() () from 
/usr/lib64/qt4/libQtOpenGL.so.4
#9  0x73fb4ed0 in 
osgQt::GraphicsWindowQt::releaseContextImplementation() () from 
/usr/lib64/libosgQt.so.80
#10 0x745f986d in osg::GraphicsContext::releaseContext() () from 
/usr/lib64/libosg.so.80
#11 0x73fb5ae7 in osgQt::GraphicsWindowQt::realizeImplementation() () 
from /usr/lib64/libosgQt.so.80
#12 0x74209b74 in osgViewer::CompositeViewer::realize() () from 
/usr/lib64/libosgViewer.so.80
#13 0x74245789 in osgViewer::ViewerBase::frame(double) () from 
/usr/lib64/libosgViewer.so.80
#14 0x0048edb4 in ViewerWidget::paintEvent (this=0x7fcb70) at 
/home/tiziano/entwicklung/uni/ba/simulation/gui/viewer_widget.cc:91
#15 0x759728f8 in QWidget::event(QEvent*) () from 
/usr/lib64/qt4/libQtGui.so.4
#16 0x75922324 in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from /usr/lib64/qt4/libQtGui.so.4
#17 0x759271b1 in QApplication::notify(QObject*, QEvent*) () from 
/usr/lib64/qt4/libQtGui.so.4
#18 0x74ab53ec in QCoreApplication::notifyInternal(QObject*, QEvent*) 
() from /usr/lib64/qt4/libQtCore.so.4
#19 0x7596f806 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const, QPoint const, int, QPainter*, QWidgetBackingStore*) () from 
/usr/lib64/qt4/libQtGui.so.4
#20 0x759703e0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QListQObject* const, int, QRegion const, QPoint const, int, QPainter*, 
QWidgetBackingStore*) () from /usr/lib64/qt4/libQtGui.so.4
#21 0x7596f53c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const, QPoint const, int, QPainter*, QWidgetBackingStore*) () from 
/usr/lib64/qt4/libQtGui.so.4
#22 0x759703e0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QListQObject* const, int, QRegion const, QPoint const, int, QPainter*, 
QWidgetBackingStore*) () from /usr/lib64/qt4/libQtGui.so.4
#23 0x759702c0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QListQObject* const, int, QRegion const, QPoint const, int, QPainter*, 
QWidgetBackingStore*) () from /usr/lib64/qt4/libQtGui.so.4
#24 0x759702c0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QListQObject* const, int, QRegion const, QPoint const, int, QPainter*, 
QWidgetBackingStore*) () from /usr/lib64/qt4/libQtGui.so.4
#25 0x759702c0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QListQObject* const, int, QRegion const, QPoint const, int, QPainter*, 
QWidgetBackingStore*) () from /usr/lib64/qt4/libQtGui.so.4
#26 0x759702c0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QListQObject* const, int, QRegion const, QPoint const, int, QPainter*, 
QWidgetBackingStore*) () from /usr/lib64/qt4/libQtGui.so.4
#27 0x7596f53c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const, QPoint const, int, QPainter*, QWidgetBackingStore*) () from 
/usr/lib64/qt4/libQtGui.so.4
#28 0x75b2d8f2 in QWidgetBackingStore::sync() () from 
/usr/lib64/qt4/libQtGui.so.4
#29 0x75b2dc65 in QWidgetBackingStore::sync(QWidget*, QRegion const) 
() from /usr/lib64/qt4/libQtGui.so.4
#30 0x7599d595 in QETWidget::translatePaintEvent(_XEvent const*) () 
from /usr/lib64/qt4/libQtGui.so.4
#31 0x7599e633 in QApplication::x11ProcessEvent(_XEvent*) () from 
/usr/lib64/qt4/libQtGui.so.4
#32 0x759c55c2 in x11EventSourceDispatch(_GSource*, int (*)(void*), 
void*) () from /usr/lib64/qt4/libQtGui.so.4
#33 0x7167969d in g_main_context_dispatch () from 
/usr/lib64/libglib-2.0.so.0
#34 0x71679e98 in g_main_context_iterate.isra.21 () from 
/usr/lib64/libglib-2.0.so.0
#35 0x7167a069 in g_main_context_iteration () from 
/usr/lib64/libglib-2.0.so.0
#36 0x74adff5f in 
QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () 
from /usr/lib64/qt4/libQtCore.so.4
#37 0x759c525e in