Bug 193134

Summary: kontact hang/crash on systray update
Product: [Applications] kontact Reporter: Lars Ivar Igesund <larsivar>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lars Ivar Igesund 2009-05-18 18:28:13 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

This issue manifests itself after kontact has been running for some while, typically overnight.
Symptoms are that Kontact hangs, and that trying to do anything except closing the window via the 'X' fails. However, this doesn't actually close the application.

Typically, when this happens, the systray icons go invisible, but still take up room. If I then click one them (akregator or mail), it crashes, and comes up with the trace below (distilled from bug 175289 since the trace originally was different). It has also been suggested that it is related to bug 190572, but I do not think so (this bug is not about kontact startup, and I have no plasma problems).

Program: Kontakt (kontact). Signal: SIGSEGV.
[Current thread is 0 (LWP 30362)]

Thread 2 (Thread 0xab9feb90 (LWP 30383)):
#0  0xb8068430 in __kernel_vsyscall ()
#1  0xb59bd7b1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb5c91380 in QProcessManager::run (this=0x92d4388) at
io/qprocess_unix.cpp:305
#3  0xb5bbf96e in QThreadPrivate::start (arg=0x92d4388) at
thread/qthread_unix.cpp:189
#4  0xb51b64ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb59c549e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb48d0700 (LWP 30362)):
[KCrash Handler]
#6  0xb571ee17 in XVisualIDFromVisual () from /usr/lib/libX11.so.6
#7  0xb621452e in qt_x11_getX11InfoForWindow (xinfo=0xc84a6e4, a=@0xbff850fc)
at kernel/qwidget_x11.cpp:387
#8  0xb621bd4e in QWidgetPrivate::create_sys (this=0xc84a5f0, window=133697871,
initializeWindow=true, destroyOldWindow=true) at kernel/qwidget_x11.cpp:532
#9  0xb61dde1c in QWidget::create (this=0xcc6b500, window=133697871,
initializeWindow=88, destroyOldWindow=<value optimized out>) at
kernel/qwidget.cpp:1259
#10 0xb683520c in QSystemTrayIconSys::addToTray (this=0xcc6b500) at
util/qsystemtrayicon_x11.cpp:236
#11 0xb6835528 in QSystemTrayIconSys (this=0xcc6b500, q=0xa014f00) at
util/qsystemtrayicon_x11.cpp:198
#12 0xb6835693 in QSystemTrayIconPrivate::install_sys (this=0xa014f50) at
util/qsystemtrayicon_x11.cpp:336
#13 0xb681f85a in QSystemTrayIcon::setVisible (this=0xa014f00, visible=true) at
util/qsystemtrayicon.cpp:275
#14 0xb0e66df6 in KMSystemTray::updateNewMessages (this=0xa014f00) at
/usr/include/qt4/QtGui/qsystemtrayicon.h:108
#15 0xb0e6a6e3 in KMSystemTray::qt_metacall (this=0xa014f00,
_c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbff85668) at
/build/buildd/kdepim-4.2.2/obj-i486-linux-gnu/kmail/kmsystemtray.moc:79
#16 0xb5cc9ca8 in QMetaObject::activate (sender=0xa016648, from_signal_index=4,
to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3069
#17 0xb5cca932 in QMetaObject::activate (sender=0xa016648, m=0xb5da6904,
local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3143
#18 0xb5d05717 in QTimer::timeout (this=0xa016648) at
.moc/release-shared/moc_qtimer.cpp:128
#19 0xb5ccf6fe in QTimer::timerEvent (this=0xa016648, e=0xbff85aec) at
kernel/qtimer.cpp:261
#20 0xb5cc415f in QObject::event (this=0xa016648, e=0xbff85aec) at
kernel/qobject.cpp:1082
#21 0xb6184e9c in QApplicationPrivate::notify_helper (this=0x92cec08,
receiver=0xa016648, e=0xbff85aec) at kernel/qapplication.cpp:4084
#22 0xb618d19e in QApplication::notify (this=0xbff85d98, receiver=0xa016648,
e=0xbff85aec) at kernel/qapplication.cpp:3631
#23 0xb6da894d in KApplication::notify (this=0xbff85d98, receiver=0xa016648,
event=0xbff85aec) at
/build/buildd/kde4libs-4.2.2/kdeui/kernel/kapplication.cpp:307
#24 0xb5cb3a3b in QCoreApplication::notifyInternal (this=0xbff85d98,
receiver=0xa016648, event=0xbff85aec) at kernel/qcoreapplication.cpp:602
#25 0xb5ce2d71 in QTimerInfoList::activateTimers (this=0x92d4234) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#26 0xb5cdf4e0 in timerSourceDispatch (source=0x92d4200) at
kernel/qeventdispatcher_glib.cpp:164
#27 0xb4d86b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0xb4d8a0eb in ?? () from /usr/lib/libglib-2.0.so.0
#29 0xb4d8a268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0xb5cdf438 in QEventDispatcherGlib::processEvents (this=0x92b0238, flags={i
= -1074242456}) at kernel/qeventdispatcher_glib.cpp:323
#31 0xb6226365 in QGuiEventDispatcherGlib::processEvents (this=0x92b0238,
flags={i = -1074242408}) at kernel/qguieventdispatcher_glib.cpp:202
#32 0xb5cb206a in QEventLoop::processEvents (this=0xbff85d10, flags={i =
-1074242344}) at kernel/qeventloop.cpp:149
#33 0xb5cb24aa in QEventLoop::exec (this=0xbff85d10, flags={i = -1074242280})
at kernel/qeventloop.cpp:200
#34 0xb5cb4959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#35 0xb6184d17 in QApplication::exec () at kernel/qapplication.cpp:3553
#36 0x0804c072 in main (argc=1, argv=0xbff86094) at
/build/buildd/kdepim-4.2.2/kontact/src/main.cpp:218
Comment 1 Lars Ivar Igesund 2009-05-24 16:07:41 UTC
After looking closer, it appears that the crash only happens when I click the kmail icon in the systray, clicking the akregator icon only brings back kontact in the same non-functional state.
Comment 2 Christophe Marin 2010-03-28 20:33:42 UTC
*** Bug 175289 has been marked as a duplicate of this bug. ***
Comment 3 Christophe Marin 2011-09-25 18:23:42 UTC
Cannot reproduce with kdepim 4.7.1 and the systray code in KMail changed a lot since KDE 4.2. 

Closing