Nepomukserver crash

Lubos Lunak l.lunak at suse.cz
Mon Sep 7 19:11:46 BST 2009


On Sunday 06 of September 2009, Michael Jansen wrote:
> Hi
>
> I see the following crash since sebastian made nepomukserver a gui-less
> application (KUniqueApplication(false)).
>
> Even if the app said it has no gui. KApplication tries to get some
> information from the x-server in KApplication::checkRestartVersion
>
>     Display* dpy = QX11Info::display();
> 	[...]
>     if( XGetWindowProperty( dpy, RootWindow( dpy, 0 ), XInternAtom( dpy,
> "KDE_SESSION_VERSION", False ),
>
> The fix is more or less easy. Just check if dpy is NULL and don't execute
> XGetWindowProperty() if not. But i can't decide if the calling of that
> function itself is wrong in an application without gui.

 Should be fixed in trunk with r1020962.

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http://www.suse.cz




More information about the kde-core-devel mailing list