← Back to team overview

yade-users team mailing list archive

Re: "Primary view" window empty

 

Hello everybody. I afford me to begin 2008 as 2007 finished, with my "graphical problems". To make a point about it (it makes indeed a month that I didn't write you about it...) I remind that, after ubuntu updates, for me nothing was drawn in the "Primary view" window, because of a problem with GLX. As suggested by some of you, the instruction /glxgears/ didn't in fact work. Thanks to my office neighbour, I have now changed of graphical driver and now /glxgears/ works (with frame rate of more or less 1800 FPS ) (I also reinstalled qglviewer and recompiled yade). But for Yade it is worse : now yade crashes after the window with "Generation" and "Save time", when I use a preprocessor, or it crashes also as soon as I click on File - New Simulation. Here is written what appears in the terminal :

jerome@c1solimara-l:~/YADE/bin$ ./yade-0.11.1
Constructing ClassFactory  (if multiple times - check '-rdynamic' flag!).
Constructing SerializableSingleton (if multiple times - check '-rdynamic' flag!). INFO core/Omega.cpp:32 Omega: Constructing Omega (if multiple times - check '-rdynamic' flag!). INFO core/yade.cpp:177 main: Loading configuration file: /home/jerome/.yade-0.11.1/preferences.xml
INFO  core/yade.cpp:181 main: Loading plugins...
WARNING: cannot open file used for capillary law, in TriaxalTestWater
INFO  core/yade.cpp:183 main: Plugins loaded.
X Error: BadDevice, invalid or uninitialized input device 171
 Major opcode:  149
 Minor opcode:  3
 Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 171
 Major opcode:  149
 Minor opcode:  3
 Resource id:  0x0
Failed to open device
INFO gui/qt3/YadeQtMainWindow.cpp:48 YadeQtMainWindow: Loading configuration file: /home/jerome/.yade-0.11.1/QtGUIPreferences.xml.
Attribute is not defined : outputFileName
Attribute is not defined : serializationDynlib
Attribute is not defined : outputFileName
Attribute is not defined : serializationDynlib
Attribute is not defined : outputFileName
Attribute is not defined : serializationDynlib
loading configuration file: /home/jerome/.yade-0.11.1/OpenGLRendererPref.xml
Omega::instance().getSimulationFileName()=../data/scene.xml
SIGSEGV/SIGABRT handler called; gdb batch file is `/home/jerome/.yade-0.11.1/gdb_crash_batch-pid16283'
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1236879648 (LWP 16283)]
0xffffe410 in __kernel_vsyscall ()
No symbol "info" in current context.

Thread 1 (Thread -1236879648 (LWP 16283)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb72b16db in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7256b8b in ?? () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7256f62 in system () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7dea5dd in system () from /lib/tls/i686/cmov/libpthread.so.0
#5  0x0810813a in sigHandler (sig=11) at core/yade.cpp:52
#6  <signal handler called>
#7 SimulationController::closeGLViewEvent (this=0xa4ec388, id=-1076864096) at /usr/share/qt3/include/qwidget.h:848 #8 0xb5c7ae24 in QtGeneratedSimulationController::qt_invoke (this=0xa4ec388, _id=53, _o=0xbfd05b08) at /home/jerome/build-0.11.1/gui/qt3/moc_QtGeneratedSimulationController.cc:154
#9  0xb78a5893 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#10 0xb78a61aa in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#11 0xb5cb77d0 in GLViewer::closeSignal (this=0x8251088, t0=-1076864096) at /home/jerome/build-0.11.1/gui/qt3/moc_GLViewer.cc:85
#12 0xb74fc7f2 in QGLViewer::postDraw () from /usr/lib/libqglviewer.so.2
#13 0xb5c312d8 in GLViewer::postDraw (this=0x8251088) at gui/qt3/GLViewer.cpp:261
#14 0xb74f82ab in QGLViewer::paintGL () from /usr/lib/libqglviewer.so.2
#15 0xb7b3297f in QGLWidget::glDraw () from /usr/lib/libqt-mt.so.3
#16 0xb7b31b7a in QGLWidget::updateGL () from /usr/lib/libqt-mt.so.3
#17 0xb74f8a4b in QGLViewer::displayMessage () from /usr/lib/libqglviewer.so.2 #18 0xb5c32520 in GLViewer::centerScene (this=0x8251088) at gui/qt3/GLViewer.cpp:126 #19 0xb5c9cb12 in SimulationController::pbCenterSceneClicked (this=0xa4ec388) at gui/qt3/SimulationController.cpp:369 #20 0xb5c9d75d in SimulationController::loadSimulationFromFileName (this=0xa4ec388, fileName=@0xbfd05eb4, center=true)
   at gui/qt3/SimulationController.cpp:223
#21 0xb5ca17ec in SimulationController (this=0xa4ec388, parent=0x8215080) at gui/qt3/SimulationController.cpp:97 #22 0xb5cac0d4 in YadeQtMainWindow::fileNewSimulation (this=0x81d7320) at gui/qt3/YadeQtMainWindow.cpp:144 #23 0xb5c4a995 in QtFileGenerator::timerEvent (this=0x821fc80) at gui/qt3/QtFileGenerator.cpp:233
#24 0xb78a4f16 in QObject::event () from /usr/lib/libqt-mt.so.3
#25 0xb78dc5b3 in QWidget::event () from /usr/lib/libqt-mt.so.3
#26 0xb783caf0 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#27 0xb783f4ba in QApplication::notify () from /usr/lib/libqt-mt.so.3
#28 0xb77cf209 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
#29 0xb782f53b in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#30 0xb77e3d49 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#31 0xb78571ce in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#32 0xb7856fde in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#33 0xb783e699 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#34 0xb5c57252 in QtGUI::run (this=0x819cd10, argc=1, argv=0xbfd06794) at gui/qt3/QtGUI.cpp:61
#35 0x081093a6 in main (argc=1, argv=0xbfd06794) at core/yade.cpp:193
#0  0xffffe410 in __kernel_vsyscall ()
(gdb)
(gdb)
Does anyone see anything ? Thanks a lot.

Jerome Duriez

Chen, Feng a écrit :
Hi,
Another guess, it might be that your update of Ubuntu has corrupted your 3D video driver, therefore your OpenGL will not work, not say other 3D functions, since either Nvidia or ATI will requre some kernel devel or other very sticky thing to compile, especially, when you update the kernel. So you might try re-install the 3D graphic driver before re-install qglviewer, then re-compile YADE. If you cannot run glxgears, as Vaclav said, that's probably the case. PS: I have one laptop with Fedora Core 4, I am still with Yade 0.10.0, I dare not upgrade:-)
Feng Chen
Graduate Student Department of Civil and Environmental Engineering
223 Perkins Hall
University of Tennessee, Knoxville, 37996
http://fchen3.googlepages.com/home

------------------------------------------------------------------------
*From:* yade-users-bounces@xxxxxxxxxxxxxxxx on behalf of Václav S(milauer
*Sent:* Fri 12/14/2007 5:26 AM
*To:* yade-users@xxxxxxxxxxxxxxxx
*Subject:* Re: [Yade-users] "Primary view" window empty


> Hello. I made it but it didn't solve the problem. In fact it seems to
> be due to a problem with "GLX" which cares of 3d (that's what my
> office neighbour said to me ) :
> Xlib:  extension "GLX" missing on display ":0.0". ( is written in the
> shell of Yade)
> For the moment this "GLX" doesn't still work...
Generally, if GLX is missing, the server will fall back to software
rendering (which is slow by several orders of magnitude - no kidding).
Can you run glxgears from the terminal? Let it run and it will tell you
what is the frame rate after a while - if that is less than a few
hundereds, then your acceleration doesn't work. But in that case you
would see at least something in the primary view. You can also post
output of xdpyinfo to investigate this.

But my first bet would be what Feng suggested: recompile qglviewer,
probably new mesa version with different API was installed.

Regards, Vaclav





_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users

------------------------------------------------------------------------

_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users

References