knotify crashing
Jarrod Johnson
jbjohns4 at eos.ncsu.edu
Sat May 11 06:17:25 BST 2002
I have a problem where knotify (from KDE 3.0) constantly crashes on
every event. I managed to resolve this by modifying qcursor_x11.cpp of
my qt 3.0.4 distribution in the following manner:
Qt::HANDLE QCursor::handle() const
{
if ( !initialized )
initialize();
+ if ( !data ) {
+ return 0;
+ }
if ( !data->hcurs )
update();
return data->hcurs;
}
Adding those three lines makes knotify work and stop crashing, but I
presume conditions that result in data being null after a call to
initialize is a somewhat bad condition, and that returning NULL from
this method is, to say the least, a bad thing. In general, I still have
issues with the equals operator of qcursor when I try to run apps like
help, noatun, and kaboodle, basically the same sort of condition causes
the segfault. The !data case seems to be frequently true, but not
always true, but almost true at *least* once during every knotify
invocation.
Please let me know what might be causing this condition, or additional
debugging information that I should provide. I wasn't sure where to
send this, so if I need to send this elsewhere, please let me know that
as well.
I had KDE 3.0rc2 and whatever version of qt3 that was current at the
time working correctly, so this is a relatively new condition.
___________________________________________________
This message is from the kde mailing list.
Account management: http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list