Hi Rebecca, On 26 January 2014 17:20, Rebecca N. Palmer <[email protected]> wrote:
> I have already modified osgviewerQt to use SingleThreaded when compiling >> against Qt5.0. >> > It needs an XInitThreads() before doing any graphics then: without that, > multithreading crashes even in Qt 4. http://lists.openscenegraph. > org/pipermail/osg-users-openscenegraph.org/2013-December/065773.html I haven't ever seen this threading crash with osgviewerQt when compiling against Qt4. I haven't just tried against 4.8.4 pulled in from the Kubuntu 13.10 repositories, compiled the OSG against it and have just run osgviewerQt multiple times without any problems. Under what circumstances do you see this crash? If the Windowing library is working properly multi-threaded it shouldn't require XInitThreads(), osgViewer's own GraphicsWindowX11 implementation doesn't need it, so for Qt to require it's not managing X11 in the most efficient way. Given the nature this intermittent bug, and the hacky nature of this workaround for a 3rd party bug, I don't feel that it's an appropriate solution to just compile to our example. Perhaps one could provide a comment saying that it might be needed for buggy versions of Qt. I don't see a reason to disable multi-threading of osgviewerQt for all platforms simply because in some platform combination Qt fails. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

