Bug 209095

Summary: (patch) printer-applet crash booting start [PyDict_GetItem, PyQt/SIP, QApplicationPrivate::notify_helper]
Product: [Unmaintained] printer-applet Reporter: Buschert <hbuschert>
Component: generalAssignee: Jonathan Riddell <jr>
Status: RESOLVED NOT A BUG    
Severity: crash CC: adrianots, andresbajotierra, andy.reddy, bruno, cjgermany, claudio_ps06, drankinatty, e.kunig, gorgonz, janowski.m, kde, kde, linux, madlena.nicola, mecirt, mwilhelm, nicco.ts, null, ralf, regi.hops, swestrup, tim_wootton, tom
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: crash fix

Description Buschert 2009-10-01 13:58:03 UTC
Application that crashed: printer-applet
Version of the application: 1.3
KDE Version: 4.3.1 (KDE 4.3.1) "release 163"
Qt Version: 4.5.2
Operating System: Linux 2.6.27.29-0.1-pae i686
Distribution: "openSUSE 11.1 (i586)"

What I was doing when the application crashed:
Details:
Executable filei: printer-applet PID:4435 Signal: 11 (Segmentation fault)


Application that crashed: printer-applet
Version of the application: 1.3
KDE Version: 4.3.1 (KDE 4.3.1) "release 163"
Qt Version: 4.5.2
Operating System: Linux 2.6.27.29-0.1-pae i686
Distribution: "openSUSE 11.1 (i586)"

What I was doing when the application crashed:

This error occured the first time yesterday, Wednesday, 2009-09-30
after installing all updated by YAST.

Also today I installed all new updates by YAST and booted the PC afterwards, 
but the error occured again.

The crash happens always when booting.

YAST:
kde4-printer-applet 4.3.1-93.04



Files called "printer-applet:
/usr/bin                                              2009-07-29 13:12
/usr/share/kde4/apps/                                 2009-10-01 12:52

File called "printer-applet.desktop
/usr/share/autostart/                                2009-10-01 03:34

Directory:
/usr/share/kde4/apps/printer-applet                  2009.10.01 12:52

Files in this directory:
authconn.py                                          2009-01-28 00:01
authconn.pyc                                         2009-09-05 18:10
debug.py                                             2009-01-28 00:01
debug.pyc                                            2009-09-05 18:10
monitor.py                                           2009-01-28 00:01
monitor.pyc                                          2009-09-05 18:10
printer-applet.notifyrc                              2009-10-01 03:22
printer-applet-printers.ui                           2008-05-07 11:05
printer-applet.py                                    2009-07-29 13:12
printer-applet.ui                                    2009-01-28 00:01
printer-appletui.rc                                  2008-09-03 13:24
statereason.py                                       2009-01-28 00:01
statereason.pyc                                      2009-09-05 18:10

 -- Backtrace:
Application: Drucker-Miniprogramm (printer-applet), signal: Segmentation fault
[KCrash Handler]
#6  0xb7f42e87 in PyDict_GetItem () from /usr/lib/libpython2.6.so.1.0
#7  0xb7bdfd20 in ?? () from /usr/lib/python2.6/site-packages/sip.so
#8  0xb7ae940f in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#9  0xb643b7fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#10 0xb6443aee in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#11 0xb50f772d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#12 0xb56df3ee in sipKApplication::notify(QObject*, QEvent*) () from /usr/lib/python2.6/site-packages/PyKDE4/kdeui.so
#13 0xb78c016b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#14 0xb78d831e in QCoreApplication::sendEvent(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#15 0xb78cfc1a in QObjectPrivate::setParent_helper(QObject*) () from /usr/lib/libQtCore.so.4
#16 0xb78cfcf7 in QObject::setParent(QObject*) () from /usr/lib/libQtCore.so.4
#17 0xb78d42c4 in QObject::QObject(QObject*) () from /usr/lib/libQtCore.so.4
#18 0xb78db9d9 in QTimer::QTimer(QObject*) () from /usr/lib/libQtCore.so.4
#19 0xb7a25939 in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#20 0xb7a25a14 in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#21 0xb7bdf127 in ?? () from /usr/lib/python2.6/site-packages/sip.so
#22 0xb7f5e9b5 in ?? () from /usr/lib/libpython2.6.so.1.0
#23 0xb7f0dc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#24 0xb7f98d20 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#25 0xb7f9dd7f in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#26 0xb7f32a29 in ?? () from /usr/lib/libpython2.6.so.1.0
#27 0xb7f0dc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#28 0xb7f1b9fe in ?? () from /usr/lib/libpython2.6.so.1.0
#29 0xb7f0dc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#30 0xb7f60c55 in ?? () from /usr/lib/libpython2.6.so.1.0
#31 0xb7f5e9b5 in ?? () from /usr/lib/libpython2.6.so.1.0
#32 0xb7f0dc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#33 0xb7f98d20 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#34 0xb7f9dd7f in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#35 0xb7f95c73 in PyEval_EvalCode () from /usr/lib/libpython2.6.so.1.0
#36 0xb7fb7adc in ?? () from /usr/lib/libpython2.6.so.1.0
#37 0xb7fb7b9b in PyRun_FileExFlags () from /usr/lib/libpython2.6.so.1.0
#38 0xb7fb858f in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.6.so.1.0
#39 0xb7fb8818 in PyRun_AnyFileExFlags () from /usr/lib/libpython2.6.so.1.0
#40 0xb7fc4e12 in Py_Main () from /usr/lib/libpython2.6.so.1.0
#41 0x08048692 in main ()


 -- Backtrace:
Application: Drucker-Miniprogramm (printer-applet), signal: Segmentation fault
[KCrash Handler]
#6  0xb7f42e87 in PyDict_GetItem () from /usr/lib/libpython2.6.so.1.0
#7  0xb7bdfd20 in ?? () from /usr/lib/python2.6/site-packages/sip.so
#8  0xb7ae940f in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#9  0xb643b7fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#10 0xb6443aee in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#11 0xb50f772d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#12 0xb56df3ee in sipKApplication::notify(QObject*, QEvent*) () from /usr/lib/python2.6/site-packages/PyKDE4/kdeui.so
#13 0xb78c016b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#14 0xb78d831e in QCoreApplication::sendEvent(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#15 0xb78cfc1a in QObjectPrivate::setParent_helper(QObject*) () from /usr/lib/libQtCore.so.4
#16 0xb78cfcf7 in QObject::setParent(QObject*) () from /usr/lib/libQtCore.so.4
#17 0xb78d42c4 in QObject::QObject(QObject*) () from /usr/lib/libQtCore.so.4
#18 0xb78db9d9 in QTimer::QTimer(QObject*) () from /usr/lib/libQtCore.so.4
#19 0xb7a25939 in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#20 0xb7a25a14 in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#21 0xb7bdf127 in ?? () from /usr/lib/python2.6/site-packages/sip.so
#22 0xb7f5e9b5 in ?? () from /usr/lib/libpython2.6.so.1.0
#23 0xb7f0dc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#24 0xb7f98d20 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#25 0xb7f9dd7f in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#26 0xb7f32a29 in ?? () from /usr/lib/libpython2.6.so.1.0
#27 0xb7f0dc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#28 0xb7f1b9fe in ?? () from /usr/lib/libpython2.6.so.1.0
#29 0xb7f0dc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#30 0xb7f60c55 in ?? () from /usr/lib/libpython2.6.so.1.0
#31 0xb7f5e9b5 in ?? () from /usr/lib/libpython2.6.so.1.0
#32 0xb7f0dc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#33 0xb7f98d20 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#34 0xb7f9dd7f in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#35 0xb7f95c73 in PyEval_EvalCode () from /usr/lib/libpython2.6.so.1.0
#36 0xb7fb7adc in ?? () from /usr/lib/libpython2.6.so.1.0
#37 0xb7fb7b9b in PyRun_FileExFlags () from /usr/lib/libpython2.6.so.1.0
#38 0xb7fb858f in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.6.so.1.0
#39 0xb7fb8818 in PyRun_AnyFileExFlags () from /usr/lib/libpython2.6.so.1.0
#40 0xb7fc4e12 in Py_Main () from /usr/lib/libpython2.6.so.1.0
#41 0x08048692 in main ()

This bug may be a duplicate of or related to bug 209038

Reported using DrKonqi
Comment 1 Dario Andres 2009-10-01 23:37:24 UTC
*** Bug 209038 has been marked as a duplicate of this bug. ***
Comment 2 Dario Andres 2009-10-01 23:37:39 UTC
*** Bug 209137 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2009-10-01 23:39:37 UTC
Bug 209137 got more information too.
Comment 4 Dario Andres 2009-10-02 00:59:18 UTC
This could be an OpenSuse issue (4 reports for OpenSuSe)
Comment 5 Dario Andres 2009-10-02 00:59:21 UTC
*** Bug 209157 has been marked as a duplicate of this bug. ***
Comment 6 David Rankin 2009-10-02 03:02:57 UTC
(In reply to comment #3)
> Bug 209137 got more information too.

Good, Now I know how you reference duplicate bug reports that contain additional information. I always worry when I see a bug marked as a duplicate that somehow the attachments I have submitted will be lost and never looked at. Now I know "got more information too."

Hopefully the python debug files I submitted will help. If you need those as test cases from other users, then make sure they know they will need to change the permissions on /usr/share/kde4/apps/printer-applet/ to make it writable by the user unless running:

python -v -d /usr/bin/printer-applet

as root. (sudo may work)
Comment 7 Dario Andres 2009-10-03 16:16:56 UTC
*** Bug 209287 has been marked as a duplicate of this bug. ***
Comment 8 guenter 2009-10-04 10:31:42 UTC
Same here after update today (4.10.09).
printer-applet crashes reproduceable on login/KDE-session-start.

Application: Drucker-Miniprogramm (printer-applet), signal: Segmentation fault
[KCrash Handler]
#6  0xb7f91e87 in PyDict_GetItem () from /usr/lib/libpython2.6.so.1.0
#7  0xb7b16d20 in ?? () from /usr/lib/python2.6/site-packages/sip.so
#8  0xb7c5240f in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#9  0xb655f7fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#10 0xb6567aee in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#11 0xb52fa72d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#12 0xb58e23ee in sipKApplication::notify(QObject*, QEvent*) () from /usr/lib/python2.6/site-packages/PyKDE4/kdeui.so
#13 0xb7a0916b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#14 0xb7a2131e in QCoreApplication::sendEvent(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#15 0xb7a18c1a in QObjectPrivate::setParent_helper(QObject*) () from /usr/lib/libQtCore.so.4
#16 0xb7a18cf7 in QObject::setParent(QObject*) () from /usr/lib/libQtCore.so.4
#17 0xb7a1d2c4 in QObject::QObject(QObject*) () from /usr/lib/libQtCore.so.4
#18 0xb7a249d9 in QTimer::QTimer(QObject*) () from /usr/lib/libQtCore.so.4
#19 0xb7b8e939 in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#20 0xb7b8ea14 in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtCore.so
#21 0xb7b16127 in ?? () from /usr/lib/python2.6/site-packages/sip.so
#22 0xb7fad9b5 in ?? () from /usr/lib/libpython2.6.so.1.0
#23 0xb7f5cc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#24 0xb7fe7d20 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#25 0xb7fecd7f in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#26 0xb7f81a29 in ?? () from /usr/lib/libpython2.6.so.1.0
#27 0xb7f5cc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#28 0xb7f6a9fe in ?? () from /usr/lib/libpython2.6.so.1.0
#29 0xb7f5cc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#30 0xb7fafc55 in ?? () from /usr/lib/libpython2.6.so.1.0
#31 0xb7fad9b5 in ?? () from /usr/lib/libpython2.6.so.1.0
#32 0xb7f5cc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#33 0xb7fe7d20 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#34 0xb7fecd7f in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#35 0xb7fe4c73 in PyEval_EvalCode () from /usr/lib/libpython2.6.so.1.0
#36 0xb8006adc in ?? () from /usr/lib/libpython2.6.so.1.0
#37 0xb8006b9b in PyRun_FileExFlags () from /usr/lib/libpython2.6.so.1.0
#38 0xb800758f in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.6.so.1.0
#39 0xb8007818 in PyRun_AnyFileExFlags () from /usr/lib/libpython2.6.so.1.0
#40 0xb8013e12 in Py_Main () from /usr/lib/libpython2.6.so.1.0
#41 0x08048692 in main ()
Comment 9 Tomas Mecir 2009-10-05 12:14:04 UTC
Created attachment 37379 [details]
crash fix

This patch fixes the problem for me - apparently the crash is caused by QTimer(self) being called in a constructor, although I do not know why.

Ok to commit?
Comment 10 Buschert 2009-10-05 15:03:50 UTC
Tomas Mecir schrieb:
> https://bugs.kde.org/show_bug.cgi?id=209095
>
>
>
>
>
> --- Comment #9 from Tomas Mecir <mecirt gmail com>  2009-10-05 12:14:04 ---
> Created an attachment (id=37379)
>  --> (http://bugs.kde.org/attachment.cgi?id=37379)
> crash fix
>
> This patch fixes the problem for me - apparently the crash is caused by
> QTimer(self) being called in a constructor, although I do not know why.
>
> Ok to commit?
>
>   

After updating file /usr/share/kde4/apps/printer-applet/printer-applet.py
with (http://bugs.kde.org/attachment.cgi?id=37379)
PC boots without error message.

OK!

Regards
H. Buschert
Comment 11 guenter 2009-10-05 20:23:06 UTC
Same here. :-)
Patch from comment #9 did it.
THX
Comment 12 Dario Andres 2009-10-06 01:00:43 UTC
*** Bug 209567 has been marked as a duplicate of this bug. ***
Comment 13 Dario Andres 2009-10-06 01:00:45 UTC
*** Bug 209543 has been marked as a duplicate of this bug. ***
Comment 14 Dario Andres 2009-10-07 02:17:41 UTC
*** Bug 209658 has been marked as a duplicate of this bug. ***
Comment 15 Dario Andres 2009-10-10 15:08:34 UTC
*** Bug 210046 has been marked as a duplicate of this bug. ***
Comment 16 Dario Andres 2009-10-11 01:12:13 UTC
*** Bug 210130 has been marked as a duplicate of this bug. ***
Comment 17 Dario Andres 2009-10-12 14:44:28 UTC
*** Bug 210290 has been marked as a duplicate of this bug. ***
Comment 18 Bruno Friedmann 2009-10-12 15:01:01 UTC
Hi Dario, I've just try the patch.
Work here also ... related to #210299
Comment 19 Dario Andres 2009-10-12 15:02:35 UTC
Thanks, now the maintainer should look at it..
Comment 20 Dario Andres 2009-10-15 01:16:35 UTC
*** Bug 210606 has been marked as a duplicate of this bug. ***
Comment 21 Dario Andres 2009-10-18 14:17:07 UTC
*** Bug 210961 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2009-10-21 14:43:54 UTC
*** Bug 211289 has been marked as a duplicate of this bug. ***
Comment 23 Dario Andres 2009-10-21 15:32:44 UTC
From bug 210196 comment 2:
I installed a snapshot of the upcoming sip 4.9.1 and the crashes are fixed. It
fixes bug 209095 too by the way.

- Could anyone check this too ? Regards
Comment 24 Dario Andres 2009-10-21 22:07:00 UTC
*** Bug 211374 has been marked as a duplicate of this bug. ***
Comment 25 Jonathan Riddell 2009-10-22 13:08:28 UTC
I can confirm this is caused by sip, in Kubuntu we updated to  4.9.1-snapshot-20091015 which fixes it.
Comment 26 Jonathan Riddell 2009-10-22 13:09:57 UTC
*** Bug 211428 has been marked as a duplicate of this bug. ***
Comment 27 Jonathan Riddell 2009-10-22 14:42:34 UTC
I've e-mailed kde-packagers suggesting they update to sip 4.9+snapshot and pointing them at the patch in Comment No 9 as an alternative.  Thanks to Dario for handling this bug in his usual excellent way.
Comment 28 Adriano Teixeira 2009-10-27 22:56:18 UTC
after update to kde4-printer-applet-4.3.2-1.5 from opensuse 11.1 repositorie 4.2 fix this bug for me.
thanks
Comment 29 Dario Andres 2009-11-10 22:16:16 UTC
*** Bug 214027 has been marked as a duplicate of this bug. ***
Comment 30 Dario Andres 2009-11-25 13:45:13 UTC
*** Bug 216072 has been marked as a duplicate of this bug. ***
Comment 31 Dario Andres 2009-12-12 18:53:36 UTC
*** Bug 218382 has been marked as a duplicate of this bug. ***
Comment 32 Dario Andres 2009-12-24 01:57:02 UTC
*** Bug 219891 has been marked as a duplicate of this bug. ***
Comment 33 Dario Andres 2010-01-18 01:49:54 UTC
*** Bug 223021 has been marked as a duplicate of this bug. ***
Comment 34 ralfgesellensetter 2010-04-16 14:30:33 UTC
As Bug 230507 might be related to this bug, 
and could still be observed in version 4:4.3.4-2, it might be wise to re-open this bug?
Comment 35 Dario Andres 2010-04-16 14:35:57 UTC
@ ralfgesellensetter   : what is your "sip" package version ? it should work with 4.9.1+ (comment 25)
Comment 36 Jonathan Thomas 2010-04-22 19:25:18 UTC
*** Bug 235025 has been marked as a duplicate of this bug. ***
Comment 37 ralfgesellensetter 2010-04-29 12:17:32 UTC
Okay, I'll try, thanks. This is how I applied the patch from #9:

Save patch file as /tmp/patch

Become root in a shell (su -)

# cd /usr/share/kde4/apps/printer-applet/

(This path was found by "locate printer-applet.py" - you don't need sources or compilers - the applet is a plain ascii coded python script)

#  patch -p0 </tmp/patch

Done. 

Then I run printer-applet from a user shell (well, we'll see at next login, but I am quite positive that this patch works out).

When will this patch go into Debian sid?
Comment 38 ralfgesellensetter 2010-04-29 12:25:44 UTC
@Dario (#35): Ah, thanks. I don't know what sip package is needed (Debian sid), I didn't find installed packages named like this:

$ dpkg -l sip*
No packages found matching sip*.

$ dpkg -l libsip*
No packages found matching libsip*.

$ apt-cache search sip |grep sip |grep -v SIP
pidgin-sipe - Pidgin protocol plugin to connect to MS Office Communicator
python-socksipy - Python SOCKS client module
python-sip-dbg - Python/C++ bindings generator runtime library (debug extension)
python-sip-dev - Python/C++ bindings generator development files
python-sip4-dbg - Python/C++ bindings generator runtime library (debug, transitional package)
python-sip4-dev - Python/C++ bindings generator development files (transitional package)
python-sip4 - Python/C++ bindings generator runtime library (transitional package)
python-sip - Python/C++ bindings generator runtime library
sip4 - Python/C++ bindings generator (transitional package)
sipcalc - Advanced console-based ip subnet calculator

Okay:

$ dpkg -l python-sip*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name            Version         Description
+++-===============-===============-==============================================
ii  python-sip4     4.9-1           Python/C++ bindings generator runtime library
ii  python-sip4-dbg 4.9-1           Python/C++ bindings generator runtime library

So, 4.9.1 is there.