Bug 363431

Summary: kontact crashes when closing
Product: [Frameworks and Libraries] kdelibs Reporter: Herr Schmidt <wettererscheinung>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: winter
Priority: NOR Keywords: drkonqi
Version: 4.14.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: possible fix for crash

Description Herr Schmidt 2016-05-23 13:10:57 UTC
Application: kontact (4.14.10)
KDE Platform Version: 4.14.14
Qt Version: 4.8.7
Operating System: Linux 4.5.0-2-amd64 x86_64
Distribution: Debian GNU/Linux testing (stretch)

-- Information about the crash:
Dear maintainers,
kontact was opened automatically after login because it was open when I shutted down my computer last time. I just looked at the task planner and clicked on akregator (it said this is a different instance or sth like that and the window has to brought up to foreground, but that never happened it just showed the window from the planner before) then I switched to calendar and planner back and forth. I decided to quit and hitted the window quit button at the upper right window corner. Then this dialogue about crashing came up. This happened just a few minutes ago as well in a similar situation.

Things I noticed:
First time this happened I quitted because I did not see my mouse cursor anymore, although it was obviously there as several buttons where highlited when the invisible mouse passed them. This just happend again and might be correlated to using the console with Ctrl-Alt-F1 and installing the debug symbols. (It happened when I switched back (Ctrl-Alt-F7) while the install was going. Switching back to the console and after the install back to KDE made the mouse visible again.

Thanks for your work!

The crash can be reproduced sometimes.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f40b8927940 (LWP 24599))]

Thread 4 (Thread 0x7f4098ab8700 (LWP 24608)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f40b5047f5d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f40b5047fb9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f40afb4f454 in start_thread (arg=0x7f4098ab8700) at pthread_create.c:334
#4  0x00007f40b5df6e5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f40581ad700 (LWP 24609)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f40b4d6bef1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f40b5078536 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f40afb4f454 in start_thread (arg=0x7f40581ad700) at pthread_create.c:334
#4  0x00007f40b5df6e5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f40428be700 (LWP 24667)):
#0  0x00007f40b5deddcd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f40af66739c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f40af6674ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f40b65ed266 in QEventDispatcherGlib::processEvents (this=0x7f403c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f40b65bb18f in QEventLoop::processEvents (this=this@entry=0x7f40428bdc90, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f40b65bb4f5 in QEventLoop::exec (this=this@entry=0x7f40428bdc90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f40b64aa549 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f40b64ace3c in QThreadPrivate::start (arg=0x244ca10) at thread/qthread_unix.cpp:352
#8  0x00007f40afb4f454 in start_thread (arg=0x7f40428be700) at pthread_create.c:334
#9  0x00007f40b5df6e5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f40b8927940 (LWP 24599)):
[KCrash Handler]
#6  QAbstractSlider::maximum (this=0x20) at widgets/qabstractslider.cpp:366
#7  0x00007f40b7d30584 in KViewStateSaverPrivate::restoreScrollBarState (this=0x22ca1a0) at /build/kde4libs-3hgzgp/kde4libs-4.14.14/kdeui/itemviews/kviewstatesaver.cpp:67
#8  KViewStateSaver::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/kde4libs-3hgzgp/kde4libs-4.14.14/obj-x86_64-linux-gnu/kdeui/kviewstatesaver.moc:52
#9  0x00007f40b65d6db1 in QObject::event (this=0x4a5e900, e=<optimized out>) at kernel/qobject.cpp:1222
#10 0x00007f40b6fe190c in QApplicationPrivate::notify_helper (this=this@entry=0x22cf300, receiver=receiver@entry=0x4a5e900, e=e@entry=0x4fc7120) at kernel/qapplication.cpp:4570
#11 0x00007f40b6fe8846 in QApplication::notify (this=this@entry=0x7fffda223c40, receiver=receiver@entry=0x4a5e900, e=e@entry=0x4fc7120) at kernel/qapplication.cpp:4356
#12 0x00007f40b7d623ca in KApplication::notify (this=0x7fffda223c40, receiver=0x4a5e900, event=0x4fc7120) at /build/kde4libs-3hgzgp/kde4libs-4.14.14/kdeui/kernel/kapplication.cpp:311
#13 0x00007f40b65bc90d in QCoreApplication::notifyInternal (this=0x7fffda223c40, receiver=receiver@entry=0x4a5e900, event=event@entry=0x4fc7120) at kernel/qcoreapplication.cpp:955
#14 0x00007f40b65c03c6 in QCoreApplication::sendEvent (event=0x4fc7120, receiver=0x4a5e900) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#15 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x227cc90) at kernel/qcoreapplication.cpp:1579
#16 0x00007f40b65c06a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#17 0x00007f40b65ed0f3 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#18 postEventSourceDispatch (s=0x22bc1e0) at kernel/qeventdispatcher_glib.cpp:280
#19 0x00007f40af6671a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f40af667400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f40af6674ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f40b65ed244 in QEventDispatcherGlib::processEvents (this=0x225bf40, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#23 0x00007f40b708b9b6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x00007f40b65bb18f in QEventLoop::processEvents (this=this@entry=0x7fffda223b50, flags=...) at kernel/qeventloop.cpp:149
#25 0x00007f40b65bb4f5 in QEventLoop::exec (this=this@entry=0x7fffda223b50, flags=...) at kernel/qeventloop.cpp:204
#26 0x00007f40b65c14b9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#27 0x00000000004036c7 in ?? ()
#28 0x00007f40b5d2e5f0 in __libc_start_main (main=0x402c20, argc=3, argv=0x7fffda223d98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffda223d88) at libc-start.c:291
#29 0x0000000000403edb in _start ()

Reported using DrKonqi
Comment 1 Allen Winter 2016-05-23 13:28:32 UTC
this is a bug in kdelibs/itemviews. reassigning
Comment 2 Allen Winter 2016-05-23 13:31:40 UTC
Created attachment 99141 [details]
possible fix for crash
Comment 3 Allen Winter 2016-05-23 13:33:52 UTC
I just attached a patch that might fix this crash.  I am unable to reproduce the crash, however.

Herr Schmidt, maybe you can test it ?
Comment 4 Herr Schmidt 2016-05-24 19:18:43 UTC
Dear Allan Winter,

thanks for the patch and your help! Unluckily I don't know how to use
it. What will it do?

And I wanted to link to the other problems in this installation as they
might be connected(?).

* akonadi-backend-mysql: errors in selftest 5,16,17; maybe connection to
severe unstability of my system? Debian Bug#825224
* dolphin 15.08.3: Crashes randomly and frequently Debian Bug#808244
* Search emails in Kmail/Kontact gives no results although it should.
* kdeinit5 sometimes crashes before log out.
* Krunner crashes regularly (segmentation fault) with no visible reason
as well. I have to restart it manually. Sometimes even the starter and
the control bar crash leaving me unoperable. No Bug report yet as there
are no debug symbols available.
* VLC does'nt start related somehow to the Qt Interface plus purge VLC
wants to uninstall essential KDE stuff. Debian Bug#825140

Thanks alot again! I am a little bit in a despair by now.
Maria

Allen Winter via KDE Bugzilla:
> https://bugs.kde.org/show_bug.cgi?id=363431
> 
> --- Comment #3 from Allen Winter <winter@kde.org> ---
> I just attached a patch that might fix this crash.  I am unable to reproduce
> the crash, however.
> 
> Herr Schmidt, maybe you can test it ?
>
Comment 5 Andrew Crouthamel 2018-11-01 13:45:33 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2018-11-16 11:41:58 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2018-12-02 03:47:56 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!