Bug 350153 - Plan crashed after adding task
Summary: Plan crashed after adding task
Status: RESOLVED WORKSFORME
Alias: None
Product: calligraplan
Classification: Applications
Component: general (show other bugs)
Version: 2.9.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Dag Andersen
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-07-12 19:10 UTC by Ville Ranki
Modified: 2021-01-16 04:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ville Ranki 2015-07-12 19:10:59 UTC
Application: calligraplan (2.9.2)
KDE Platform Version: 4.14.6
Qt Version: 4.8.6
Operating System: Linux 3.19.0-22-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
- What I was doing when the application crashed:

I created a few tasks to a new project. After that i clicked "Add Task" in Task Editor, but it stopped responding. After a while (10-20 seconds) Plan crashed causing this segfault.

Tested on 2.9.2 / Ubuntu 15.04

The crash can be reproduced sometimes.

-- Backtrace:
Application: Plan (calligraplan), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb3794447c0 (LWP 6065))]

Thread 3 (Thread 0x7fb361b78700 (LWP 6068)):
#0  0x00007fb378da88dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fb373d2febc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb373d30242 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb367124af6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fb373d56955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb3742156aa in start_thread (arg=0x7fb361b78700) at pthread_create.c:333
#6  0x00007fb378db3eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fb361377700 (LWP 6069)):
#0  0x00007fb373d74789 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb373d2fea2 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb373d2ffcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb373d30009 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb373d56955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb3742156aa in start_thread (arg=0x7fb361377700) at pthread_create.c:333
#6  0x00007fb378db3eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fb3794447c0 (LWP 6065)):
[KCrash Handler]
#6  qHash (key=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:68
#7  qHash (k=...) at image/qpixmapcache.cpp:216
#8  QHash<QPixmapCache::Key, QCache<QPixmapCache::Key, QPixmapCacheEntry>::Node>::findNode (this=this@entry=0x1902c20, akey=..., ahp=ahp@entry=0x0) at ../../include/QtCore/../../src/corelib/tools/qhash.h:882
#9  0x00007fb377f54c0d in contains (akey=..., this=0x1902c20) at ../../include/QtCore/../../src/corelib/tools/qhash.h:874
#10 contains (key=..., this=0x1902c10) at ../../include/QtCore/../../src/corelib/tools/qcache.h:118
#11 QPMCache::flushDetachedPixmaps (this=this@entry=0x1902c00, nt=nt@entry=false) at image/qpixmapcache.cpp:255
#12 0x00007fb377f54d2c in QPMCache::timerEvent (this=0x1902c00) at image/qpixmapcache.cpp:270
#13 0x00007fb3774857b3 in QObject::event (this=0x1902c00, e=<optimized out>) at kernel/qobject.cpp:1253
#14 0x00007fb377e789bc in QApplicationPrivate::notify_helper (this=this@entry=0x140fa60, receiver=receiver@entry=0x1902c00, e=e@entry=0x7ffde63aee60) at kernel/qapplication.cpp:4570
#15 0x00007fb377e7f4d8 in QApplication::notify (this=0x7ffde63af160, receiver=receiver@entry=0x1902c00, e=e@entry=0x7ffde63aee60) at kernel/qapplication.cpp:4356
#16 0x00007fb3789f6067 in KoApplication::notify (this=<optimized out>, receiver=0x1902c00, event=0x7ffde63aee60) at /build/buildd/calligra-2.9.2/libs/main/KoApplication.cpp:623
#17 0x00007fb37746c1cd in QCoreApplication::notifyInternal (this=0x7ffde63af160, receiver=0x1902c00, event=event@entry=0x7ffde63aee60) at kernel/qcoreapplication.cpp:955
#18 0x00007fb37749de9b in sendEvent (event=0x7ffde63aee60, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#19 QTimerInfoList::activateTimers (this=0x1411260) at kernel/qeventdispatcher_unix.cpp:621
#20 0x00007fb37749aec9 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:193
#21 idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:240
#22 0x00007fb373d2fc3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007fb373d2ff20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fb373d2ffcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fb37749b85e in QEventDispatcherGlib::processEvents (this=0x140fa20, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#26 0x00007fb377f20c66 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007fb37746ad21 in QEventLoop::processEvents (this=this@entry=0x7ffde63af0e0, flags=...) at kernel/qeventloop.cpp:149
#28 0x00007fb37746b085 in QEventLoop::exec (this=this@entry=0x7ffde63af0e0, flags=...) at kernel/qeventloop.cpp:204
#29 0x00007fb377470b09 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#30 0x00007fb377e76c1c in QApplication::exec () at kernel/qapplication.cpp:3828
#31 0x00007fb379078945 in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/buildd/calligra-2.9.2/plan/main.cpp:73
#32 0x00007fb378ccda40 in __libc_start_main (main=0x4006d0 <main(int, char**)>, argc=1, argv=0x7ffde63af2a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffde63af298) at libc-start.c:289
#33 0x0000000000400709 in _start ()

Possible duplicates by query: bug 315379, bug 259333, bug 230634, bug 214068, bug 195875.

Reported using DrKonqi
Comment 1 Friedrich W. H. Kossebau 2015-07-12 21:50:06 UTC
Thanks for the bug report.
Tried to reproduce it, but as much as I added tasks and subtasks to all of the three templates, could not reproduce any crash.
The QPMCache::timerEvent in the backtrace seems to point to the root of the problem.
There is a related bug report https://bugreports.qt.io/browse/QTBUG-12788 where it is hinted such crashes could be from QPixmaps created in the non-gui thread.
I will inspect Plan's code for that.

But QPixmaps could also be something created by the Qt widget style that is used.  Which style are you using?
Comment 2 Justin Zobel 2020-12-17 05:35:22 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 3 Bug Janitor Service 2021-01-01 04:35:15 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 4 Bug Janitor Service 2021-01-16 04:34:31 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!