← Back to team overview

yade-users team mailing list archive

Re: glutInit() problem.

 

Ye Yonggeng said:     (by the date of Tue, 27 Jun 2006 11:52:35 +0200)

> 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


Hi Yonggeng!

Thanks for your result. The drawing loop is crashing. We plan to change
the drawing loop, anyway - because it could be possible that in some
cases it might not work. Unfortunately this is your case.

I'll try to code now some kind of quick fix for you. But I'm not sure if
it will work... It will take me some time.

Meanwhile please check if callback example from QGLViewer works for you,
because I want to use the callback mechanism to fix this problem.

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



Follow ups

References