Bug 280110 - Printer applet crashes on dbus-daemon restart
Summary: Printer applet crashes on dbus-daemon restart
Status: RESOLVED WORKSFORME
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-15 09:00 UTC by GDR!
Modified: 2018-11-05 02:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.39 KB, text/plain)
2012-03-25 14:33 UTC, Bzzz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description GDR! 2011-08-15 09:00:10 UTC
Application: python2 (1.6)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-10-generic x86_64
Distribution: Ubuntu 11.04

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

I have restarted a hanging dbus daemon. Printer applet has crashed immediately.

The crash can be reproduced every time.

-- Backtrace:
Application: Printer Applet (python2.7), signal: Segmentation fault
[KCrash Handler]
#6  QSocketNotifier::setEnabled (this=0x1d91a70, enable=true) at kernel/qsocketnotifier.cpp:293
#7  0x00007f508116c489 in ?? () from /usr/lib/pymodules/python2.7/dbus/mainloop/qt.so
#8  0x00007f508116ccd0 in ?? () from /usr/lib/pymodules/python2.7/dbus/mainloop/qt.so
#9  0x00007f508c7275f8 in QMetaObject::activate (sender=0x1d91a70, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffcc795080) at kernel/qobject.cpp:3287
#10 0x00007f508c76eb7e in QSocketNotifier::activated (this=<value optimized out>, _t1=11) at .moc/release-shared/moc_qsocketnotifier.cpp:89
#11 0x00007f508c72cf4b in QSocketNotifier::event (this=0x1d91a70, e=0x7fffcc795740) at kernel/qsocketnotifier.cpp:317
#12 0x00007f508a1619f4 in QApplicationPrivate::notify_helper (this=0x1be8350, receiver=0x1d91a70, e=0x7fffcc795740) at kernel/qapplication.cpp:4462
#13 0x00007f508a1663ba in QApplication::notify (this=<value optimized out>, receiver=0x1d91a70, e=0x7fffcc795740) at kernel/qapplication.cpp:4341
#14 0x00007f5084685866 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#15 0x00007f50850a86c6 in sipKApplication::notify(QObject*, QEvent*) () from /usr/lib/pymodules/python2.7/PyKDE4/kdeui.so
#16 0x00007f508c71249c in QCoreApplication::notifyInternal (this=0x1c7e320, receiver=0x1d91a70, event=0x7fffcc795740) at kernel/qcoreapplication.cpp:731
#17 0x00007f508c73cda9 in sendEvent (source=0x1c77160) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#18 socketNotifierSourceDispatch (source=0x1c77160) at kernel/qeventdispatcher_glib.cpp:110
#19 0x00007f508b9e1bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f508b9e23a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f508b9e2639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f508c73d3ef in QEventDispatcherGlib::processEvents (this=0x17ce6c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#23 0x00007f508a20b4de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x00007f508c711882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#25 0x00007f508c711abc in QEventLoop::exec (this=0x7fffcc795970, flags=...) at kernel/qeventloop.cpp:201
#26 0x00007f508c715ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#27 0x00007f508b0cd4ab in ?? () from /usr/lib/pymodules/python2.7/PyQt4/QtGui.so
#28 0x00000000004965f1 in call_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4013
#29 PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:2666
#30 0x000000000049d325 in PyEval_EvalCodeEx (co=0x145d630, globals=<value optimized out>, locals=<value optimized out>, args=<value optimized out>, argcount=<value optimized out>, kws=<value optimized out>, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253
#31 0x00000000004ecb02 in PyEval_EvalCode (co=<value optimized out>, globals=<value optimized out>, locals=<value optimized out>) at ../Python/ceval.c:667
#32 0x00000000004fdc74 in run_mod (mod=<value optimized out>, filename=<value optimized out>, globals={'qUncompress': <built-in function qUncompress>, 'Q_ENUMS': <built-in function Q_ENUMS>, 'text': <KLocalizedString at remote 0x1b19050>, 'QState': <PyQt4.QtCore.pyqtWrapperType at remote 0x15dfff0>, 'subprocess': <module at remote 0x1460ec0>, 'QProcessEnvironment': <PyQt4.QtCore.pyqtWrapperType at remote 0x15d4b20>, 'qRound64': <built-in function qRound64>, 'QDir': <PyQt4.QtCore.pyqtWrapperType at remote 0x15b51e0>, 'authconn': <module at remote 0x1b02440>, 'qRound': <built-in function qRound>, 'noforcesign': <built-in function noforcesign>, 'QVariantAnimation': <PyQt4.QtCore.pyqtWrapperType at remote 0x15d5330>, 'QSignalMapper': <PyQt4.QtCore.pyqtWrapperType at remote 0x15dc6e0>, 'MainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x1bde420>, 'KStatusNotifierItem': <PyQt4.QtCore.pyqtWrapperType at remote 0x1a32260>, 'QHeaderView': <PyQt4.QtCore.pyqtWrapperType at remote 0x1564980>, 'aboutData': <KAboutData at remote 0x1b190e0>, 'monitor': <module at remote 0x1b30718>, 'copyright': <KLocalizedString at remo...(truncated), locals={'qUncompress': <built-in function qUncompress>, 'Q_ENUMS': <built-in function Q_ENUMS>, 'text': <KLocalizedString at remote 0x1b19050>, 'QState': <PyQt4.QtCore.pyqtWrapperType at remote 0x15dfff0>, 'subprocess': <module at remote 0x1460ec0>, 'QProcessEnvironment': <PyQt4.QtCore.pyqtWrapperType at remote 0x15d4b20>, 'qRound64': <built-in function qRound64>, 'QDir': <PyQt4.QtCore.pyqtWrapperType at remote 0x15b51e0>, 'authconn': <module at remote 0x1b02440>, 'qRound': <built-in function qRound>, 'noforcesign': <built-in function noforcesign>, 'QVariantAnimation': <PyQt4.QtCore.pyqtWrapperType at remote 0x15d5330>, 'QSignalMapper': <PyQt4.QtCore.pyqtWrapperType at remote 0x15dc6e0>, 'MainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x1bde420>, 'KStatusNotifierItem': <PyQt4.QtCore.pyqtWrapperType at remote 0x1a32260>, 'QHeaderView': <PyQt4.QtCore.pyqtWrapperType at remote 0x1564980>, 'aboutData': <KAboutData at remote 0x1b190e0>, 'monitor': <module at remote 0x1b30718>, 'copyright': <KLocalizedString at remo...(truncated), flags=<value optimized out>, arena=<value optimized out>) at ../Python/pythonrun.c:1346
#33 0x000000000042c182 in PyRun_FileExFlags (fp=0x1498200, filename=0x7fffcc796b2d "/usr/bin/printer-applet", start=<value optimized out>, globals={'qUncompress': <built-in function qUncompress>, 'Q_ENUMS': <built-in function Q_ENUMS>, 'text': <KLocalizedString at remote 0x1b19050>, 'QState': <PyQt4.QtCore.pyqtWrapperType at remote 0x15dfff0>, 'subprocess': <module at remote 0x1460ec0>, 'QProcessEnvironment': <PyQt4.QtCore.pyqtWrapperType at remote 0x15d4b20>, 'qRound64': <built-in function qRound64>, 'QDir': <PyQt4.QtCore.pyqtWrapperType at remote 0x15b51e0>, 'authconn': <module at remote 0x1b02440>, 'qRound': <built-in function qRound>, 'noforcesign': <built-in function noforcesign>, 'QVariantAnimation': <PyQt4.QtCore.pyqtWrapperType at remote 0x15d5330>, 'QSignalMapper': <PyQt4.QtCore.pyqtWrapperType at remote 0x15dc6e0>, 'MainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x1bde420>, 'KStatusNotifierItem': <PyQt4.QtCore.pyqtWrapperType at remote 0x1a32260>, 'QHeaderView': <PyQt4.QtCore.pyqtWrapperType at remote 0x1564980>, 'aboutData': <KAboutData at remote 0x1b190e0>, 'monitor': <module at remote 0x1b30718>, 'copyright': <KLocalizedString at remo...(truncated), locals={'qUncompress': <built-in function qUncompress>, 'Q_ENUMS': <built-in function Q_ENUMS>, 'text': <KLocalizedString at remote 0x1b19050>, 'QState': <PyQt4.QtCore.pyqtWrapperType at remote 0x15dfff0>, 'subprocess': <module at remote 0x1460ec0>, 'QProcessEnvironment': <PyQt4.QtCore.pyqtWrapperType at remote 0x15d4b20>, 'qRound64': <built-in function qRound64>, 'QDir': <PyQt4.QtCore.pyqtWrapperType at remote 0x15b51e0>, 'authconn': <module at remote 0x1b02440>, 'qRound': <built-in function qRound>, 'noforcesign': <built-in function noforcesign>, 'QVariantAnimation': <PyQt4.QtCore.pyqtWrapperType at remote 0x15d5330>, 'QSignalMapper': <PyQt4.QtCore.pyqtWrapperType at remote 0x15dc6e0>, 'MainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x1bde420>, 'KStatusNotifierItem': <PyQt4.QtCore.pyqtWrapperType at remote 0x1a32260>, 'QHeaderView': <PyQt4.QtCore.pyqtWrapperType at remote 0x1564980>, 'aboutData': <KAboutData at remote 0x1b190e0>, 'monitor': <module at remote 0x1b30718>, 'copyright': <KLocalizedString at remo...(truncated), closeit=1, flags=0x7fffcc795e10) at ../Python/pythonrun.c:1332
#34 0x000000000042cb4a in PyRun_SimpleFileExFlags (fp=0x1498200, filename=<value optimized out>, closeit=1, flags=0x7fffcc795e10) at ../Python/pythonrun.c:936
#35 0x0000000000418c9e in Py_Main (argc=<value optimized out>, argv=0x7fffcc795f38) at ../Modules/main.c:599
#36 0x00007f508d2b3eff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#37 0x00000000004c62b1 in _start ()

Possible duplicates by query: bug 276214.

Reported using DrKonqi
Comment 1 Christoph Feck 2011-08-20 10:34:26 UTC
> I have restarted a hanging dbus daemon.

We should find out why it is hanging. Killing it is not supported, the dbus-daemon is a required process for KDE applications (similar to X11 server; if you kill it, you cannot expect KDE applications to reconnect to the new X11 server).
Comment 2 GDR! 2011-08-20 14:20:27 UTC
It's running out of file descriptors after 2 or 3 days of running. This has been pointed a few times in different related tickets on bugs.kde.org.
Comment 3 Christoph Feck 2011-08-20 16:15:09 UTC
Are you speaking of bug 261180? Should be fixed in KDE 4.7.
Comment 4 GDR! 2011-08-21 08:03:34 UTC
Yes, this is the one I'm speaking of.

Nevertheless, I think that if all other KDE applications survive the restart of dbus, maybe surviving dbus restart is doable unlike surviving X restart?
Comment 5 GDR! 2011-09-15 16:44:04 UTC
FYI, I'm now running KDE 4.7 and that problem persists.
Comment 6 Bzzz 2012-03-25 14:33:08 UTC
Created attachment 69885 [details]
New crash information added by DrKonqi

python2 (1.8) on KDE Platform 4.8.1 (4.8.1) using Qt 4.8.0

- What I was doing when the application crashed:
sudo service dbus restart
dbus stop/waiting
dbus start/running, process 26948
<crash>

- Unusual behavior I noticed:
as described in bug 964542 - including other applications to be laggy, like startup and right-click-events in dolphin

-- Backtrace (Reduced):
#6  setEnabled (enable=true, this=0x1538960) at kernel/qsocketnotifier.cpp:293
#7  QSocketNotifier::setEnabled (this=0x1538960, enable=true) at kernel/qsocketnotifier.cpp:284
[...]
#10 0x00007f95ef5a97ae in QSocketNotifier::activated (this=<optimized out>, _t1=11) at .moc/release-shared/moc_qsocketnotifier.cpp:103
#11 0x00007f95ef565c7b in QSocketNotifier::event (this=0x1538960, e=0x7fffe5a2ba80) at kernel/qsocketnotifier.cpp:317
#12 0x00007f95ed3896b4 in notify_helper (e=0x7fffe5a2ba80, receiver=0x1538960, this=0x11d05d0) at kernel/qapplication.cpp:4555
Comment 7 Andrew Crouthamel 2018-10-29 22:37:58 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 8 Bzzz 2018-11-03 19:56:59 UTC
Can't speak for the OP, but I haven't seen the issue in quite some time. I'm on Kubuntu 18.04 now, running KDE 5.12.7 / Frameworks 5.47.0, as well as Qt 5.9.5, but what do you expect like seven years after initial bug reporting ;)
Comment 9 Andrew Crouthamel 2018-11-05 02:41:30 UTC
Thanks for the update!