← Back to team overview

yade-users team mailing list archive

Re: glutInit() problem.

 

On Mon, 2006-06-26 at 20:20 +0200, Janek Kozicki wrote:
> Ye Yonggeng said:     (by the date of Mon, 26 Jun 2006 19:42:31 +0200)
> 
> > The code you send to me works well, and all the glviewer examples works
> > well. That means there is no problem about 3D rendering in my computer.
> > 
> > And I can launch the window "Simulation player". :), ha, now I don't
> > know whether it uses the same codes as the "new simulation" when it is
> > launched.
> 
> Does Preprocessor->File Generator work? The result should be a file
> /data/scene.xml with something inside.
> 
> 
> 
> We need to perform some troubleshooting, 
> 
> first run ./yade-scripts/setDebug
> 
> then compile yade *again* with flag -g
> (make sure to execute before: make clean CXXFLAGS='...' INSTALLDIR='..' PREFIX_DIR='...')
> 
> like this:
> 
> CXXFLAGS='-g'
> 
> if you used any other flags inside CXXFLAGS then use them as well,
> separated by spaces. (for example: CXXFLAGS='-pthread -lpthread -g')
> 
> now when it is compiled, just before starting yade type:
> 
>   ulimit -c unlimited
>   ./yade
> 
> when it crashes you will have a huge core file. run:
> 
>   gdb ./yade ./core
> 
> gdb will start, then type this command:
> 
>   bt
> 
> It will produce a backtrace of the crash, with line numbers. Send it
> here, so I can see it.
> 
> 

Hi Janek,

Thanks a lot.

The backtrace of the crash is like that:

(gdb) bt
#0  0xb49a9be9 in intelGetLock () from /usr/lib/dri/i915_dri.so
#1  0xb49cdf63 in _mesa_make_current () from /usr/lib/dri/i915_dri.so
#2  0xb49a997a in intelMakeCurrent () from /usr/lib/dri/i915_dri.so
#3  0xb49910ef in __driUtilUpdateDrawableInfo ()
from /usr/lib/dri/i915_dri.so
#4  0xb7313f40 in glXGetCurrentDrawable () from /usr/lib/libGL.so.1
#5  0xb73141c5 in glXMakeCurrentReadSGI () from /usr/lib/libGL.so.1
#6  0xb731444a in glXMakeCurrent () from /usr/lib/libGL.so.1
#7  0xb7c149bd in QGLContext::makeCurrent () from /usr/lib/libqt-mt.so.3
#8  0xb7c102e4 in QGLWidget::makeCurrent () from /usr/lib/libqt-mt.so.3
#9  0xb7c10ac9 in QGLWidget::glDraw () from /usr/lib/libqt-mt.so.3
#10 0xb6f91fa2 in QGLThread::oneLoop (this=0x89256f8) at
QGLThread.cpp:75
#11 0xb6f95003 in Threadable<QGLThread>::operator() (this=0x89256f8) at
Threadable.tpp:107
#12 0xb6f950f9 in
boost::detail::function::void_function_obj_invoker0<QGLThread,
void>::invoke (function_obj_ptr=
      {obj_ptr = 0x89256f8, const_obj_ptr = 0x89256f8, func_ptr =
0x89256f8, data = "�"}) at function_template.hpp:136
#13 0x0812b2ce in thread_proxy ()
#14 0xb7578341 in start_thread ()
from /lib/tls/i686/cmov/libpthread.so.0
#15 0xb740b4ee in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) quit

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



Follow ups

References