This little patches fix the problems in kde-games without tweaking the sysctl kern.ipc.shm_allow_removed
The problem is described here: http://www.freebsd.org/cgi/query-pr.cgi?pr=164742 The patches are for x11-toolkits/qt4-gui , and for qt 4.8, in qt 4.7.4 shuould be similar fix. YMMV. I was getting the same errors with qt-4.8 all over the place, I am currently testing if this fixes those errors as well, but so far looks promising. The idea of the patch comes from here: http://www.freebsd.org/cgi/query-pr.cgi?pr=130966#reply11 A -- Thu Feb 16 14:59:18 2012 GMT ** ***** ****** ******* ******* ****** ***** ** 23.
--- src/gui/image/qpixmap_x11.cpp.orig 2012-02-14 19:57:02.000000000 -0600 +++ src/gui/image/qpixmap_x11.cpp 2012-02-14 20:01:09.000000000 -0600 @@ -203,6 +203,8 @@ xshminfo.readOnly = false; if (ok) ok = XShmAttach(dpy, &xshminfo); + if (ok) + ok = XSync(dpy, False); if (!ok) { qSafeXDestroyImage(xshmimg); xshmimg = 0;
--- src/plugins/platforms/xlib/qxlibwindowsurface.cpp.orig 2012-02-14 20:04:43.000000000 -0600 +++ src/plugins/platforms/xlib/qxlibwindowsurface.cpp 2012-02-14 20:07:03.000000000 -0600 @@ -107,6 +107,7 @@ image_info->image = image; Status shm_attach_status = XShmAttach(screen->display()->nativeDisplay(), &image_info->shminfo); + XSync(screen->display()->nativeDisplay(), False); Q_ASSERT(shm_attach_status == True);
_______________________________________________ kde-freebsd mailing list kde-freebsd@kde.org https://mail.kde.org/mailman/listinfo/kde-freebsd See also http://freebsd.kde.org/ for latest information