gdk_x_error (was: Re: [kile] [Bug 321759] Kile crashes when file is opened from menu)

Harald Sitter sitter.harald at gmail.com
Tue Jul 9 10:43:03 BST 2013


On Tue, Jul 9, 2013 at 11:30 AM, Boudewijn Rempt <boud at valdyas.org> wrote:
> On Friday 05 July 2013 Jul 15:34:06 Sven Brauch wrote:
>> >> 2. GDK installs a deadly X error handler, causing the application to
>> >> exit, instead of "just" printing an error message. See multiple
>> >> backtraces containing gdk_x_error[3]
>>
>> There have recently been similar reports for KDevelop, too.
>
> Phew... It got fixed, apparently:
>
> https://bugs.launchpad.net/ubuntu/+source/kile/+bug/1195007

FWIW in case anyone ever ends up doing stuff with the qgtkstyle (or
gtk directly for that matter), you want to save and restore the error
handlers such that the gdk handler does not remain set.

like so:
   x11ErrorHandler qt_x_errhandler = XSetErrorHandler(0);
   QGtkStylePrivate::gtk_init (NULL, NULL);
   XSetErrorHandler(qt_x_errhandler);

HS




More information about the kde-core-devel mailing list