Launchpad has imported 32 comments from the remote bug at
https://bugs.kde.org/show_bug.cgi?id=326289.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2013-10-19T20:07:38+00:00 Piotr Kęplicz wrote:

Application: plasma-desktop (4.11.2)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.11.0-12-generic i686
Distribution: Ubuntu 13.10

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

I started printing some documents and before the printing job finished,
I modified printer applet settings so that it would show finished jobs
also. It crashed plasma-desktop, restarting it causes crash again.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Powłoka pulpitu Plazmy (plasma-desktop), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb1277740 (LWP 5114))]

Thread 5 (Thread 0xad787b40 (LWP 5115)):
#0  0xb772a424 in __kernel_vsyscall ()
#1  0xb20e184b in pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb75de9bc in __pthread_cond_wait (cond=0xb31e38d0, mutex=0xb31e38b8) at 
forward.c:149
#3  0xb30e0ef2 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb30e0f3f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb20ddd78 in start_thread (arg=0xad787b40) at pthread_create.c:311
#6  0xb75d101e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 4 (Thread 0xa6a9db40 (LWP 5116)):
#0  0xb75deba7 in pthread_mutex_lock (mutex=0xa6100558) at forward.c:192
#1  0xb200bba0 in g_mutex_lock (mutex=mutex@entry=0xa61004e0) at 
/build/buildd/glib2.0-2.38.0/./glib/gthread-posix.c:213
#2  0xb1fc858b in g_main_context_check (context=context@entry=0xa61004e0, 
max_priority=2147483647, fds=fds@entry=0xa6102288, n_fds=n_fds@entry=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3558
#3  0xb1fc8aea in g_main_context_iterate (context=context@entry=0xa61004e0, 
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3709
#4  0xb1fc8c98 in g_main_context_iteration (context=0xa61004e0, may_block=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3773
#5  0xb603a8df in QEventDispatcherGlib::processEvents (this=0xa6100468, 
flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb60099f3 in QEventLoop::processEvents (this=this@entry=0xa6a9d228, 
flags=...) at kernel/qeventloop.cpp:149
#7  0xb6009d19 in QEventLoop::exec (this=this@entry=0xa6a9d228, flags=...) at 
kernel/qeventloop.cpp:204
#8  0xb5ef8e3d in QThread::exec (this=this@entry=0xa831688) at 
thread/qthread.cpp:542
#9  0xb5fe9e14 in QInotifyFileSystemWatcherEngine::run (this=0xa831688) at 
io/qfilesystemwatcher_inotify.cpp:265
#10 0xb5efb72f in QThreadPrivate::start (arg=0xa831688) at 
thread/qthread_unix.cpp:338
#11 0xb20ddd78 in start_thread (arg=0xa6a9db40) at pthread_create.c:311
#12 0xb75d101e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 3 (Thread 0xa53ffb40 (LWP 5118)):
#0  0xb772a424 in __kernel_vsyscall ()
#1  0xb75c1a0b in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0xb1fd7a3b in poll (__timeout=__timeout@entry=-1, __nfds=__nfds@entry=1, 
__fds=__fds@entry=0xa4a023a0) at /usr/include/i386-linux-gnu/bits/poll2.h:46
#3  g_poll (fds=fds@entry=0xa4a023a0, nfds=nfds@entry=1, 
timeout=timeout@entry=-1) at /build/buildd/glib2.0-2.38.0/./glib/gpoll.c:132
#4  0xb1fc8b58 in g_main_context_poll (priority=2147483647, n_fds=1, 
fds=0xa4a023a0, timeout=-1, context=0xa5408d10) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:4006
#5  g_main_context_iterate (context=0xa5408d10, block=block@entry=1, 
dispatch=dispatch@entry=1, self=<optimized out>) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3707
#6  0xb1fc903b in g_main_loop_run (loop=0xa5408cd8) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3906
#7  0xa5e1a0ea in gdbus_shared_thread_func (user_data=0xa5408cf8) at 
/build/buildd/glib2.0-2.38.0/./gio/gdbusprivate.c:278
#8  0xb1feec3a in g_thread_proxy (data=0xa8affb0) at 
/build/buildd/glib2.0-2.38.0/./glib/gthread.c:798
#9  0xb20ddd78 in start_thread (arg=0xa53ffb40) at pthread_create.c:311
#10 0xb75d101e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 2 (Thread 0xa1135b40 (LWP 5121)):
#0  0xb772a424 in __kernel_vsyscall ()
#1  0xb75bf8db in read () at ../sysdeps/unix/syscall-template.S:81
#2  0xb200ad3e in read (__nbytes=16, __buf=0xa113507c, __fd=<optimized out>) at 
/usr/include/i386-linux-gnu/bits/unistd.h:44
#3  g_wakeup_acknowledge (wakeup=0xa4a051b0) at 
/build/buildd/glib2.0-2.38.0/./glib/gwakeup.c:212
#4  0xb1fc864b in g_main_context_check (context=context@entry=0xa540a230, 
max_priority=2147483647, fds=fds@entry=0xa540a220, n_fds=n_fds@entry=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3513
#5  0xb1fc8aea in g_main_context_iterate (context=context@entry=0xa540a230, 
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3709
#6  0xb1fc8c98 in g_main_context_iteration (context=0xa540a230, may_block=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3773
#7  0xb603a8df in QEventDispatcherGlib::processEvents (this=0xa540a140, 
flags=...) at kernel/qeventdispatcher_glib.cpp:426
#8  0xb60099f3 in QEventLoop::processEvents (this=this@entry=0xa1135238, 
flags=...) at kernel/qeventloop.cpp:149
#9  0xb6009d19 in QEventLoop::exec (this=this@entry=0xa1135238, flags=...) at 
kernel/qeventloop.cpp:204
#10 0xb5ef8e3d in QThread::exec (this=0xb0952e0) at thread/qthread.cpp:542
#11 0xa28af8a7 in KCupsConnection::run() () from /usr/lib/libkcupslib.so
#12 0xb5efb72f in QThreadPrivate::start (arg=0xb0952e0) at 
thread/qthread_unix.cpp:338
#13 0xb20ddd78 in start_thread (arg=0xa1135b40) at pthread_create.c:311
#14 0xb75d101e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 1 (Thread 0xb1277740 (LWP 5114)):
[KCrash Handler]
#7  0xa28c91a1 in JobModel::updateJob(int, KCupsJob const&) () from 
/usr/lib/libkcupslib.so
#8  0xa28cd4cd in JobModel::getJobFinished() () from /usr/lib/libkcupslib.so
#9  0xa28cdb98 in ?? () from /usr/lib/libkcupslib.so
#10 0xb601c77a in QMetaCallEvent::placeMetaCall (this=0xa540e5c0, 
object=0xaad6498) at kernel/qobject.cpp:524
#11 0xb602458b in QObject::event (this=0xaad6498, e=0xa540e5c0) at 
kernel/qobject.cpp:1194
#12 0xb551b744 in QApplicationPrivate::notify_helper (this=0x9fa2a28, 
receiver=0xaad6498, e=0xa540e5c0) at kernel/qapplication.cpp:4567
#13 0xb5522223 in QApplication::notify (this=0x9f50ba0, 
receiver=receiver@entry=0xaad6498, e=e@entry=0xa540e5c0) at 
kernel/qapplication.cpp:4353
#14 0xb667f024 in KApplication::notify (this=0x9f50ba0, receiver=0xaad6498, 
event=0xa540e5c0) at ../../kdeui/kernel/kapplication.cpp:311
#15 0xb600aeda in QCoreApplication::notifyInternal (this=0x9f50ba0, 
receiver=receiver@entry=0xaad6498, event=event@entry=0xa540e5c0) at 
kernel/qcoreapplication.cpp:946
#16 0xb600e6ad in sendEvent (event=0xa540e5c0, receiver=0xaad6498) at 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#17 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, 
event_type=event_type@entry=0, data=0x9f1b130) at 
kernel/qcoreapplication.cpp:1570
#18 0xb600ebbc in QCoreApplication::sendPostedEvents 
(receiver=receiver@entry=0x0, event_type=event_type@entry=0) at 
kernel/qcoreapplication.cpp:1463
#19 0xb603af6e in sendPostedEvents () at 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#20 postEventSourceDispatch (s=s@entry=0x9fa14a0) at 
kernel/qeventdispatcher_glib.cpp:279
#21 0xb1fc882e in g_main_dispatch (context=0x9fa2ca0, context@entry=0x9f216c8) 
at /build/buildd/glib2.0-2.38.0/./glib/gmain.c:3065
#22 g_main_context_dispatch (context=context@entry=0x9fa2ca0) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3641
#23 0xb1fc8bd8 in g_main_context_iterate (context=context@entry=0x9fa2ca0, 
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3712
#24 0xb1fc8c98 in g_main_context_iteration (context=0x9fa2ca0, may_block=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3773
#25 0xb603a8bf in QEventDispatcherGlib::processEvents 
(this=this@entry=0x9f1bea8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#26 0xb55d032e in QGuiEventDispatcherGlib::processEvents (this=0x9f1bea8, 
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0xb60099f3 in QEventLoop::processEvents (this=this@entry=0xbfa2a078, 
flags=...) at kernel/qeventloop.cpp:149
#28 0xb6009d19 in QEventLoop::exec (this=this@entry=0xbfa2a078, flags=...) at 
kernel/qeventloop.cpp:204
#29 0xb600f89e in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#30 0xb5519974 in QApplication::exec () at kernel/qapplication.cpp:3828
#31 0xb76e8947 in kdemain (argc=1, argv=0xbfa2a214) at 
../../../../plasma/desktop/shell/main.cpp:126
#32 0x0804858b in main (argc=1, argv=0xbfa2a214) at plasma-desktop_dummy.cpp:3

Reported using DrKonqi

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/0

------------------------------------------------------------------------
On 2013-10-22T18:53:05+00:00 Daniel Nicoletti wrote:

Can you reproduce it everytime?
Without debug symbols I can't find out why is it crashing.

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/1

------------------------------------------------------------------------
On 2013-10-22T21:27:57+00:00 Piotr Kęplicz wrote:

I rebuilt print-manager with debugging symbols, below goes a new
backtrace. It crashes everytime plasma-desktop starts.

Application: Powłoka pulpitu Plazmy (plasma-desktop), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb1234740 (LWP 29647))]

Thread 5 (Thread 0xad745b40 (LWP 29652)):
#0  0xb76e7424 in __kernel_vsyscall ()
#1  0xb209e84b in pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb759b9bc in __pthread_cond_wait (cond=0xb31a08d0, mutex=0xb31a08b8) at 
forward.c:149
#3  0xb309def2 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb309df3f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb209ad78 in start_thread (arg=0xad745b40) at pthread_create.c:311
#6  0xb758e01e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 4 (Thread 0xa6a5db40 (LWP 29655)):
#0  0xb75ca173 in __x86.get_pc_thunk.bx () from /lib/i386-linux-gnu/libc.so.6
#1  0xb759bbd8 in pthread_mutex_unlock (mutex=0xa6100558) at forward.c:194
#2  0xb1fc8be0 in g_mutex_unlock (mutex=mutex@entry=0xa61004e0) at 
/build/buildd/glib2.0-2.38.0/./glib/gthread-posix.c:232
#3  0xb1f85572 in g_main_context_check (context=context@entry=0xa61004e0, 
max_priority=2147483647, fds=fds@entry=0xa6102288, n_fds=n_fds@entry=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3554
#4  0xb1f85aea in g_main_context_iterate (context=context@entry=0xa61004e0, 
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3709
#5  0xb1f85c98 in g_main_context_iteration (context=0xa61004e0, may_block=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3773
#6  0xb5ff78df in QEventDispatcherGlib::processEvents (this=0xa6100468, 
flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0xb5fc69f3 in QEventLoop::processEvents (this=this@entry=0xa6a5d228, 
flags=...) at kernel/qeventloop.cpp:149
#8  0xb5fc6d19 in QEventLoop::exec (this=this@entry=0xa6a5d228, flags=...) at 
kernel/qeventloop.cpp:204
#9  0xb5eb5e3d in QThread::exec (this=this@entry=0x91732f0) at 
thread/qthread.cpp:542
#10 0xb5fa6e14 in QInotifyFileSystemWatcherEngine::run (this=0x91732f0) at 
io/qfilesystemwatcher_inotify.cpp:265
#11 0xb5eb872f in QThreadPrivate::start (arg=0x91732f0) at 
thread/qthread_unix.cpp:338
#12 0xb209ad78 in start_thread (arg=0xa6a5db40) at pthread_create.c:311
#13 0xb758e01e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 3 (Thread 0xa52ffb40 (LWP 29657)):
#0  g_mutex_get_impl (mutex=0xa5308d90) at 
/build/buildd/glib2.0-2.38.0/./glib/gthread-posix.c:123
#1  0xb1fc8b98 in g_mutex_lock (mutex=mutex@entry=0xa5308d90) at 
/build/buildd/glib2.0-2.38.0/./glib/gthread-posix.c:213
#2  0xb1f85b34 in g_main_context_poll (priority=2147483647, n_fds=1, 
fds=0xa49023a0, timeout=-1, context=0xa5308d90) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:4001
#3  g_main_context_iterate (context=0xa5308d90, block=block@entry=1, 
dispatch=dispatch@entry=1, self=<optimized out>) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3707
#4  0xb1f8603b in g_main_loop_run (loop=0xa5308d58) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3906
#5  0xa5df20ea in gdbus_shared_thread_func (user_data=0xa5308d78) at 
/build/buildd/glib2.0-2.38.0/./gio/gdbusprivate.c:278
#6  0xb1fabc3a in g_thread_proxy (data=0x92247b0) at 
/build/buildd/glib2.0-2.38.0/./glib/gthread.c:798
#7  0xb209ad78 in start_thread (arg=0xa52ffb40) at pthread_create.c:311
#8  0xb758e01e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 2 (Thread 0xa10f5b40 (LWP 29660)):
#0  0xb76e7424 in __kernel_vsyscall ()
#1  0xb75a14d2 in clock_gettime (clock_id=1, tp=0xa10f5038) at 
../sysdeps/unix/clock_gettime.c:115
#2  0xb5f133ec in do_gettime (frac=0xa10f5030, sec=0xa10f5028) at 
tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0xb5ff8c61 in QTimerInfoList::updateCurrentTime 
(this=this@entry=0xa530a35c) at kernel/qeventdispatcher_unix.cpp:354
#5  0xb5ff7b5e in timerSourceCheckHelper (src=0xa530a328) at 
kernel/qeventdispatcher_glib.cpp:150
#6  0xb1f8557f in g_main_context_check (context=context@entry=0xa530a160, 
max_priority=2147483647, fds=fds@entry=0xa530a3f0, n_fds=n_fds@entry=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3556
#7  0xb1f85aea in g_main_context_iterate (context=context@entry=0xa530a160, 
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3709
#8  0xb1f85c98 in g_main_context_iteration (context=0xa530a160, may_block=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3773
#9  0xb5ff78df in QEventDispatcherGlib::processEvents (this=0xa530a318, 
flags=...) at kernel/qeventdispatcher_glib.cpp:426
#10 0xb5fc69f3 in QEventLoop::processEvents (this=this@entry=0xa10f5248, 
flags=...) at kernel/qeventloop.cpp:149
#11 0xb5fc6d19 in QEventLoop::exec (this=this@entry=0xa10f5248, flags=...) at 
kernel/qeventloop.cpp:204
#12 0xb5eb5e3d in QThread::exec (this=0x9a54d60) at thread/qthread.cpp:542
#13 0xa28911fe in KCupsConnection::run (this=0x9a54d60) at 
../../libkcups/KCupsConnection.cpp:303
#14 0xb5eb872f in QThreadPrivate::start (arg=0x9a54d60) at 
thread/qthread_unix.cpp:338
#15 0xb209ad78 in start_thread (arg=0xa10f5b40) at pthread_create.c:311
#16 0xb758e01e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 1 (Thread 0xb1234740 (LWP 29647)):
[KCrash Handler]
#7  0xa28aa1e9 in JobModel::updateJob (this=0x8ad2448, pos=2, job=...) at 
../../libkcups/JobModel.cpp:358
#8  0xa28a9896 in JobModel::getJobFinished (this=0x8ad2448) at 
../../libkcups/JobModel.cpp:232
#9  0xa28abef1 in JobModel::qt_static_metacall (_o=0x8ad2448, 
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xa5353bc8) at ./JobModel.moc:113
#10 0xb5fd977a in QMetaCallEvent::placeMetaCall (this=0xa533c138, 
object=0x8ad2448) at kernel/qobject.cpp:524
#11 0xb5fe158b in QObject::event (this=0x8ad2448, e=0xa533c138) at 
kernel/qobject.cpp:1194
#12 0xb54d8744 in QApplicationPrivate::notify_helper (this=0x8906a68, 
receiver=0x8ad2448, e=0xa533c138) at kernel/qapplication.cpp:4567
#13 0xb54df223 in QApplication::notify (this=0x88a73b0, 
receiver=receiver@entry=0x8ad2448, e=e@entry=0xa533c138) at 
kernel/qapplication.cpp:4353
#14 0xb663c024 in KApplication::notify (this=0x88a73b0, receiver=0x8ad2448, 
event=0xa533c138) at ../../kdeui/kernel/kapplication.cpp:311
#15 0xb5fc7eda in QCoreApplication::notifyInternal (this=0x88a73b0, 
receiver=receiver@entry=0x8ad2448, event=event@entry=0xa533c138) at 
kernel/qcoreapplication.cpp:946
#16 0xb5fcb6ad in sendEvent (event=0xa533c138, receiver=0x8ad2448) at 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#17 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, 
event_type=event_type@entry=0, data=0x8872130) at 
kernel/qcoreapplication.cpp:1570
#18 0xb5fcbbbc in QCoreApplication::sendPostedEvents 
(receiver=receiver@entry=0x0, event_type=event_type@entry=0) at 
kernel/qcoreapplication.cpp:1463
#19 0xb5ff7f6e in sendPostedEvents () at 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#20 postEventSourceDispatch (s=s@entry=0x8906d98) at 
kernel/qeventdispatcher_glib.cpp:279
#21 0xb1f8582e in g_main_dispatch (context=0x8906d20, context@entry=0x88786c8) 
at /build/buildd/glib2.0-2.38.0/./glib/gmain.c:3065
#22 g_main_context_dispatch (context=context@entry=0x8906d20) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3641
#23 0xb1f85bd8 in g_main_context_iterate (context=context@entry=0x8906d20, 
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3712
#24 0xb1f85c98 in g_main_context_iteration (context=0x8906d20, may_block=1) at 
/build/buildd/glib2.0-2.38.0/./glib/gmain.c:3773
#25 0xb5ff78bf in QEventDispatcherGlib::processEvents 
(this=this@entry=0x8872ea8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#26 0xb558d32e in QGuiEventDispatcherGlib::processEvents (this=0x8872ea8, 
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0xb5fc69f3 in QEventLoop::processEvents (this=this@entry=0xbfd3b328, 
flags=...) at kernel/qeventloop.cpp:149
#28 0xb5fc6d19 in QEventLoop::exec (this=this@entry=0xbfd3b328, flags=...) at 
kernel/qeventloop.cpp:204
#29 0xb5fcc89e in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#30 0xb54d6974 in QApplication::exec () at kernel/qapplication.cpp:3828
#31 0xb76a5947 in kdemain (argc=1, argv=0xbfd3b4c4) at 
../../../../plasma/desktop/shell/main.cpp:126
#32 0x0804858b in main (argc=1, argv=0xbfd3b4c4) at plasma-desktop_dummy.cpp:3

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/2

------------------------------------------------------------------------
On 2013-10-23T00:44:20+00:00 adaptee wrote:

thanks for the new backtrace

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/3

------------------------------------------------------------------------
On 2013-11-30T02:31:08+00:00 adaptee wrote:

*** Bug 328235 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/4

------------------------------------------------------------------------
On 2013-12-18T10:30:07+00:00 adaptee wrote:

*** Bug 328950 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/5

------------------------------------------------------------------------
On 2014-04-29T02:14:46+00:00 adaptee wrote:

*** Bug 333993 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/6

------------------------------------------------------------------------
On 2014-05-23T09:50:48+00:00 Chris wrote:

I can confirm this bug. plasma-desktop crashed on every restart of KDE,
until I removed the org.kde.printmanager entry from .kde/share/config
/plasma-desktop-appletsrc. This solved the problem for me.

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/7

------------------------------------------------------------------------
On 2014-07-04T16:09:20+00:00 Florian Reinhard wrote:

Created attachment 87557
New crash information added by DrKonqi

kde-print-queue (0.3.0) on KDE Platform 4.13.1 using Qt 4.8.6

Still present in KDE 4.13.1 on kubuntu 14.04

-- Backtrace (Reduced):
#6  0x00007fe968a876f2 in JobModel::updateJob(int, KCupsJob const&) () from 
/usr/lib/libkcupslib.so
#7  0x00007fe968a8b2b9 in JobModel::getJobFinished() () from 
/usr/lib/libkcupslib.so
[...]
#9  0x00007fe967312c1e in QObject::event (this=0xe01340, e=<optimized out>) at 
kernel/qobject.cpp:1194
#10 0x00007fe967f67e2c in QApplicationPrivate::notify_helper 
(this=this@entry=0xc16480, receiver=receiver@entry=0xe01340, 
e=e@entry=0x7fe95008e260) at kernel/qapplication.cpp:4567
#11 0x00007fe967f6e4a0 in QApplication::notify (this=this@entry=0x7ffff88072a0, 
receiver=receiver@entry=0xe01340, e=e@entry=0x7fe95008e260) at 
kernel/qapplication.cpp:4353

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/8

------------------------------------------------------------------------
On 2015-09-02T17:06:01+00:00 Nande! wrote:

Confirmed. Same issue.
It was working ok until i upgraded some stuff.

The solution from Eggert worked for me
https://bugs.kde.org/show_bug.cgi?id=326289#c7

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/9

------------------------------------------------------------------------
On 2017-02-09T12:19:25+00:00 Cfeck wrote:

*** Bug 375983 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/10

------------------------------------------------------------------------
On 2017-02-09T12:19:47+00:00 Cfeck wrote:

*** Bug 361999 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/11

------------------------------------------------------------------------
On 2017-02-09T12:20:39+00:00 Cfeck wrote:

*** Bug 325932 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/12

------------------------------------------------------------------------
On 2017-04-30T09:28:19+00:00 czsergey wrote:

I had the same issue on 
Fedora 25 
kernel: 4.10.10-200.fc25.x86_64
KDE Plasma: 5.9.4
KDE Frameworks: 5.33.0
Qt: 5.7.1

Backtrace (sorry, no debug symbols):
#0  0x00007fff291c9d86 in JobModel::updateJob(int, KCupsJob const&) () at 
/lib64/libkcupslib.so
#1  0x00007fff291cc137 in JobModel::getJobFinished() () at /lib64/libkcupslib.so
#2  0x00007fff291d2335 in JobModel::qt_static_metacall(QObject*, 
QMetaObject::Call, int, void**) [clone .part.7] () at /lib64/libkcupslib.so
#3  0x00007ffff1d717e9 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#4  0x00007ffff2615ecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() at /lib64/libQt5Widgets.so.5
#5  0x00007ffff261d671 in QApplication::notify(QObject*, QEvent*) () at 
/lib64/libQt5Widgets.so.5
#6  0x00007ffff1d496fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) 
() at /lib64/libQt5Core.so.5
#7  0x00007ffff1d4bde0 in QCoreApplicationPrivate::sendPostedEvents(QObject*, 
int, QThreadData*) () at /lib64/libQt5Core.so.5
#8  0x00007ffff1d97653 in postEventSourceDispatch(_GSource*, int (*)(void*), 
void*) () at /lib64/libQt5Core.so.5
#9  0x00007fffe9ae4e52 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#10 0x00007fffe9ae51d0 in g_main_context_iterate.isra () at 
/lib64/libglib-2.0.so.0
#11 0x00007fffe9ae527c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#12 0x00007ffff1d976cf in 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () 
at /lib64/libQt5Core.so.5
#13 0x00007ffff1d4868a in 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at 
/lib64/libQt5Core.so.5
#14 0x00007ffff1d5018c in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#15 0x0000555555571192 in main ()

Workaround:
temporary remove print manager until it's fixed:
# dnf remove kde-print-manager kde-print-manager-libs

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/13

------------------------------------------------------------------------
On 2017-06-26T17:21:17+00:00 Cfeck wrote:

*** Bug 381686 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/14

------------------------------------------------------------------------
On 2017-07-11T16:13:01+00:00 Cfeck wrote:

*** Bug 382244 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/15

------------------------------------------------------------------------
On 2018-04-24T14:27:24+00:00 Andrew Travneff wrote:

Created attachment 112216
New crash information added by DrKonqi

plasmashell (5.12.4) using Qt 5.9.4

What I was doing when the application crashed: restarted cups service with one 
print job in the queue.
System experienced smth like kernel bug 12309 while that (copying data from sd 
card to ssd, everything was very slow).

-- Backtrace (Reduced):
#6  0x00007f25d75973c6 in JobModel::updateJob(int, KCupsJob const&) () at 
/lib64/libkcupslib.so
#7  0x00007f25d759bd0f in JobModel::getJobFinished() () at /lib64/libkcupslib.so
#9  0x00007f26a03c826a in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#10 0x00007f26a14d192c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() at /lib64/libQt5Widgets.so.5
#11 0x00007f26a14d9174 in QApplication::notify(QObject*, QEvent*) () at 
/lib64/libQt5Widgets.so.5

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/16

------------------------------------------------------------------------
On 2018-05-17T08:22:02+00:00 Mmar-m wrote:

I can reliably reproduce this crash on Kubuntu 18.04. I tried to debug
it using the Git version of print-manager. I’m not familiar with the
code, so I don’t think I can submit a patch, but I think I can pinpoint
the problem.

The crash occurs in line 328 in JobModel.cpp (in JobModel::updateJob()):
<https://github.com/KDE/print-manager/blob/9172f63f16a663b58de919e485579453e12d5560/libkcups/JobModel.cpp#L328>

The line is:

if (item(pos, ColStatus)->data(RoleJobState).toInt() != jobState) {

The expression item(pos, ColStatus) evaluates to NULL, hence the crash.

In my case, updateJob() is called from JobModel::getJobFinished() at line 202 
within a branch described as "found at wrong position, take it and insert on 
the right position", see
<https://github.com/KDE/print-manager/blob/9172f63f16a663b58de919e485579453e12d5560/libkcups/JobModel.cpp#L202>

Perhaps this is already enough for one of the developers to come up with
a solution. I’d be happy to help as much as I can.

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/21

------------------------------------------------------------------------
On 2018-06-06T19:14:10+00:00 Cfeck wrote:

Random idea:

If the job is not found, it first does a takeRow(), then an insertRow().
If the row to be removed is preceeding the row where to insert later,
then the insert index "i" probably needs to be updated.

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/26

------------------------------------------------------------------------
On 2018-06-06T19:43:39+00:00 Daniel Nicoletti wrote:

This is really odd, and sadly I could never reproduce it.

The code removes a row, inserts at another position and then crashes
when updating it at the new position, it feels like the insert failed
somehow...

I could add a check but that doesn't seem right :/

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/27

------------------------------------------------------------------------
On 2018-06-06T20:24:45+00:00 Daniel Nicoletti wrote:

Git commit 5d3c5f7bc4174695af57cf5032a3d4117bd7577c by Daniel Nicoletti.
Committed on 06/06/2018 at 20:22.
Pushed by dantti into branch 'master'.

Possibly fix a crash by updating a row before moving it

This optimizes row updates and will update a row
before putting it in another position in order to
try to avoid a crash.

M  +63   -55   libkcups/JobModel.cpp

https://commits.kde.org/print-
manager/5d3c5f7bc4174695af57cf5032a3d4117bd7577c

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/28

------------------------------------------------------------------------
On 2018-06-06T20:25:15+00:00 Daniel Nicoletti wrote:

I'm not sure if this fixes the issue so please try...

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/29

------------------------------------------------------------------------
On 2018-06-11T11:05:44+00:00 Mmar-m wrote:

Thanks so much for looking into this! Unfortunately, the crash is still
there.

(Sorry for the late reply, but for some reason I wasn’t notified that
this report had been updated.)

However, your changes made it a bit easier for me to continue debugging
this. As it turns out, the problem appears to be that I have two jobs
that have the same id. That is, within getJobFinished(), the 'jobs'
variable (KCupsJobs) contains four jobs, and the first two have the same
.id(). (They also have the  same .name().) I have four jobs in total.

Here is what happens inside the for loop over the KCupsJobs (the
JobModel is initially empty, i.e. rowCount() == 0 at the start)

- Iteration/job 0: jobRow() for this KCupsJob returns -1, which means
that the job isn’t in the model. The job is inserted at index 0.

- Iteration/job 1: jobRow() for this KCupsJob returns 0 because this
KCupsJob has the same id as the one that was just inserted. updateJob()
is called for row 0. Then the condition in "if (job_row != i)" is true
("found at wrong position") and the code tries to take row 0 and insert
it at index 2. This fails for some reason so that there are actually no
rows in the model anymore (rowCount() == 0). Perhaps insertRow() has
undefined behavior when the given row index is greater than rowCount()?

- Iteration/job 2: jobRow() for this KCupsJob returns -1 as it is a
different job. The code tries to insert it at index 2. insertJob() calls
updateJob() with pos = 2, which crashes at some point because rowCount()
is actually 0.

I have no idea why the duplicate jobs exist, but they are also visible
on <http://localhost:631/jobs/>, so they’re real.

I’ve attempted to fix the problem in getJobFinished() by just inserting
all jobs when the model is empty:

if (rowCount() == 0) {
    for (int i = 0; i < jobs.size(); ++i) {
        insertJob(i, jobs.at(i));
    }
} else {
    // (previous loop here)

For me, this avoids the crash during startup. (I’m not suggesting this
is a proper fix.)

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/30

------------------------------------------------------------------------
On 2018-11-09T14:01:05+00:00 Cfeck wrote:

*** Bug 399400 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/40

------------------------------------------------------------------------
On 2018-12-07T15:23:12+00:00 JeansenVaars wrote:

Hi.

Today my KDE Plasma stopped booting normally. Got this libkcups.so core
dumped error. Works fine after uninstalling cups package. Fedora 29

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/43

------------------------------------------------------------------------
On 2018-12-07T15:38:03+00:00 JeansenVaars wrote:

(In reply to saif1988 from comment #24)
> Hi.
> 
> Today my KDE Plasma stopped booting normally. Got this libkcups.so core
> dumped error. Works fine after uninstalling cups package. Fedora 29

Full stacktrace I got is here:
https://ask.fedoraproject.org/en/question/130338/kde-broken-after-fedora-upgrade/

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/44

------------------------------------------------------------------------
On 2018-12-07T17:28:46+00:00 Mmar-m wrote:

A temporary fix should be to delete all queued print jobs because the
problem occurs when there are multiple print jobs with the same id. Then
you don’t have to uninstall cups and will still be able to print.

On the commandline, you should be able to delete all jobs by running
"cancel -a". Or read <https://askubuntu.com/questions/350334/>.

I have not tested this on my machine as I want to be able to reproduce
the crash when necessary.

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/45

------------------------------------------------------------------------
On 2018-12-07T18:54:41+00:00 JeansenVaars wrote:

(In reply to Marcel Martin from comment #26)
> A temporary fix should be to delete all queued print jobs because the
> problem occurs when there are multiple print jobs with the same id. Then you
> don’t have to uninstall cups and will still be able to print.
> 
> On the commandline, you should be able to delete all jobs by running "cancel
> -a". Or read <https://askubuntu.com/questions/350334/>.
> 
> I have not tested this on my machine as I want to be able to reproduce the
> crash when necessary.

Interesting, so you're saying that my boot problem was because there
were jobs in the print queue?

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/46

------------------------------------------------------------------------
On 2018-12-07T20:04:32+00:00 Mmar-m wrote:

> Interesting, so you're saying that my boot problem was because
> there were jobs in the print queue?

To be precise: The problem occurs whenever there are at least two jobs
in your print queue with identical job ids. This should normally not
happen, but it apparently does sometimes.

When Plasma starts up, it loads various apps, including the one
responsible for the printer status icon in the system tray. When that
one is loaded, it goes through the jobs in the print queue and tries to
gather information about them. When it does so and encounters two jobs
with the same id, it crashes, taking Plasma with it. At least that is my
theory so far.

Did you try 'cancel -a'? It would be interesting to know whether that
fixes the problem.

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/47

------------------------------------------------------------------------
On 2018-12-07T20:21:13+00:00 JeansenVaars wrote:

(In reply to Marcel Martin from comment #28)
> > Interesting, so you're saying that my boot problem was because
> > there were jobs in the print queue?
> 
> To be precise: The problem occurs whenever there are at least two jobs in
> your print queue with identical job ids. This should normally not happen,
> but it apparently does sometimes. 
> 
> When Plasma starts up, it loads various apps, including the one responsible
> for the printer status icon in the system tray. When that one is loaded, it
> goes through the jobs in the print queue and tries to gather information
> about them. When it does so and encounters two jobs with the same id, it
> crashes, taking Plasma with it. At least that is my theory so far.
> 
> Did you try 'cancel -a'? It would be interesting to know whether that fixes
> the problem.

Interesting!. The consequences are super nasty though. My KDE desktop
wouldn't boot at all. No wallpaper, no menus, nothing. Obvious debugging
or first counter-measures won't work either (such as wiping out
~/.config/).

I haven't tried cancel -a now since the first thing I went through is
re-installing cups completely which fixed the problem. Not sure how to
reproduce it now.

Still, I was seconds away of installing other distro or something...
This one should get fixed. I didn't do any weird stuff just user my
printer a few times last night (and it worked fine)

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/48

------------------------------------------------------------------------
On 2019-07-08T09:05:18+00:00 Fobian wrote:

> Perhaps insertRow() has undefined behavior when the given row index is
greater than rowCount()?

The behaviour is actually well defined: It does nothing.

As the assumption that at each iteration of the loop there are at least
"i" rows is wrong, it crashes.

Maybe the best option is to just skip jobs with duplicate ids?

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/54

------------------------------------------------------------------------
On 2019-07-08T09:05:50+00:00 Fobian wrote:

*** Bug 409439 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma-
workspace/+bug/1770044/comments/55


** Changed in: print-manager
       Status: Unknown => Confirmed

** Changed in: print-manager
   Importance: Unknown => High

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to plasma-workspace in Ubuntu.
https://bugs.launchpad.net/bugs/1770044

Title:
  plasmashell crashes on login - so I can't use my desktop system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/print-manager/+bug/1770044/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to