Hi Lv, It is a known issue of the osgviewerQt example under Linux. AFAIK, OSG's multithreading mechanism could well with QtOpenGL under Windows, but the make current operation is confused when using QGLWidget as the low-level graphics context. With Qt 4.7 and Ubuntu 10.10, the example seems to work with warnings, but still not responsible. Maybe somebody could help debug into the Qt source code to find the problem later.
Cheers, Wang Rui 2011/5/9 Lv Qing <donlvq...@msn.com>: > > > Hi, > > Thx ,Robert ! > > Never thought you do experiments yourself for me! > > I have already given up X11 and try osgviewerQtContext. > > However there is a new problem,when I run the osgviewerQtContext example,it > seems OK in siglethread mode.When I set it to the ThreadPerCamera mode and > resize the widget,it prints such error: > QGLContext::makeCurrent(): Failed. > > After a few times resizing,it crashed and prints: > Xlib: unexpected async reply (sequence 0x0)! > X Error: 0 0 > Major opcode: 0 () > Resource id: 0x0 > X Error: 0 0 > Major opcode: 0 () > Resource id: 0x0 > > Is it because osgviewerQtContext do not support muti-threading yet? > Or is there a better way? > > THX! > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=39182#39182 > > > > > > _______________________________________________ > 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