From kde-core-devel Mon Jul 21 13:57:18 2008 From: Lubos Lunak Date: Mon, 21 Jul 2008 13:57:18 +0000 To: kde-core-devel Subject: Re: XIO errors Message-Id: <200807211557.18543.l.lunak () suse ! cz> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=121664872128821 On Saturday 19 of July 2008, Joris Guisson wrote: > I have gotten several reports of crashes in ktorrent and they all have > the similar backtraces, for example this one : > > https://bugs.kde.org/show_bug.cgi?id=166685 > > In the backtrace you can see that the _XIOError function is called, > this then triggers kde_xio_errhandler which starts shutting the down > the app (which then crashes). > > Does anybody has any idea what is causing these XIO errors ? Lost connection to X server, usually (see man XSetIOErrorHandler). It doesn't fit the error description, but I can't see how one could normally get this problem otherwise. The actual problem appears to be KApplication::xioErrhandler() emitting aboutToQuit() - with XIO errors, the application is not about to quit, it's about to fall flat on its face, hard. I will remove that code. > Even if I > manage to fix the crash, ktorrent will still be shutdown, so the best > solution would be to prevent this from happening. I have searched > bugs.kde.org (see query below) for similar crashes and I have found > quite a few of these, but nobody appears to have any idea how to fix > this judging from how the bugs are resolved. -- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@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