Bug 214789 - Plasma crashes on startup after a faulty python-qt update (Debian Testing)
Summary: Plasma crashes on startup after a faulty python-qt update (Debian Testing)
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasma4
Classification: Plasma
Component: scriptengines (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 212876 214776 215163 215680 215988 216713 217327 217780 218524 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-16 11:25 UTC by Raúl
Modified: 2009-12-13 23:35 UTC (History)
11 users (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 Raúl 2009-11-16 11:25:48 UTC
Application that crashed: plasma-desktop
Version of the application: 0.3
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.3
Operating System: Linux 2.6.30-2-amd64 x86_64
Distribution: Debian GNU/Linux testing (squeeze)

What I was doing when the application crashed:
Plasma crashes after I log in, I get a black screen and the mouse pointer. I can start apps with alt+f2 and change between them with alt+tab, but I can't see the panel, taskbar, systray, wallpaper, plasmoids, or anything else.

 -- Backtrace:
Application: Ãrea de trabajo de Plasma (kdeinit4), signal: Segmentation fault
The current source language is "auto; currently c".
[KCrash Handler]
#5  strlen () at ../sysdeps/x86_64/strlen.S:31
#6  0x00007f193a2b73c6 in PyString_FromFormatV (format=0x7f1939a6eab0 "the sip module implements API v%d.0 but the %s module requires API v%d.%d", vargs=0x7fff4dfb5a70)
    at ../Objects/stringobject.c:211
#7  0x00007f193a304cd0 in PyErr_Format (exception=0x7f193a572540, format=0xfffffff0 <Address 0xfffffff0 out of bounds>) at ../Python/errors.c:522
#8  0x00007f1939a6b5d5 in ?? () from /usr/lib/pymodules/python2.5/sip.so
#9  0x00007f1938db49d5 in initplasma () from /usr/lib/pymodules/python2.5/PyKDE4/plasma.so
#10 0x00007f193a30eeec in _PyImport_LoadDynamicModule (name=0x7fff4dfb6d00 "PyKDE4.plasma", pathname=0x7fff4dfb5c30 "/usr/lib/pymodules/python2.5/PyKDE4/plasma.so", fp=<value optimized out>)
    at ../Python/importdl.c:53
#11 0x00007f193a30d433 in import_submodule (mod=0x233b7c0, subname=0x7fff4dfb6d07 "plasma", fullname=0x7fff4dfb6d00 "PyKDE4.plasma") at ../Python/import.c:2400
#12 0x00007f193a30d6c2 in load_next (mod=0x233b7c0, altmod=0x233b7c0, p_name=<value optimized out>, buf=0x7fff4dfb6d00 "PyKDE4.plasma", p_buflen=0x7fff4dfb7d08) at ../Python/import.c:2220
#13 0x00007f193a30dd26 in import_module_level (name=0x0, globals=<value optimized out>, locals=<value optimized out>, fromlist=0x21eddd0, level=<value optimized out>) at ../Python/import.c:2008
#14 0x00007f193a30e0af in PyImport_ImportModuleLevel (name=0x21f5bec "PyKDE4.plasma", globals=0x2138390, locals=0x2138390, fromlist=0x21eddd0, level=-1) at ../Python/import.c:2072
#15 0x00007f193a2f091d in builtin___import__ (self=<value optimized out>, args=<value optimized out>, kwds=<value optimized out>) at ../Python/bltinmodule.c:47
#16 0x00007f193a26e103 in PyObject_Call (func=0xfffffff0, arg=0xffffffff, kw=0x18) at ../Objects/abstract.c:1861
#17 0x00007f193a2f0eee in PyEval_CallObjectWithKeywords (func=0x21895f0, arg=0x21e9af8, kw=0x0) at ../Python/ceval.c:3481
#18 0x00007f193a2f4502 in PyEval_EvalFrameEx (f=0x21458c0, throwflag=<value optimized out>) at ../Python/ceval.c:2093
#19 0x00007f193a2f7bc5 in PyEval_EvalCodeEx (co=0x21f05d0, globals=<value optimized out>, locals=<value optimized out>, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at ../Python/ceval.c:2875
#20 0x00007f193a2f7db2 in PyEval_EvalCode (co=0xfffffff0, globals=0xffffffff, locals=0x18) at ../Python/ceval.c:514
#21 0x00007f193a30a40e in PyImport_ExecCodeModuleEx (name=0x7fff4dfba280 "pyappletscript", co=0x21f05d0, pathname=0x7fff4dfb8140 "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.pyc")
    at ../Python/import.c:675
#22 0x00007f193a30a690 in load_source_module (name=0x7fff4dfba280 "pyappletscript", pathname=0x7fff4dfb8140 "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.pyc", 
    fp=<value optimized out>) at ../Python/import.c:959
#23 0x00007f193a30d433 in import_submodule (mod=0x7f193a57c230, subname=0x7fff4dfba280 "pyappletscript", fullname=0x7fff4dfba280 "pyappletscript") at ../Python/import.c:2400
#24 0x00007f193a30d6c2 in load_next (mod=0x7f193a57c230, altmod=0x7f193a57c230, p_name=<value optimized out>, buf=0x7fff4dfba280 "pyappletscript", p_buflen=0x7fff4dfbb288) at ../Python/import.c:2220
#25 0x00007f193a30dce2 in import_module_level (name=0x0, globals=0x2131f90, locals=<value optimized out>, fromlist=0x2192680, level=34807696) at ../Python/import.c:2001
#26 0x00007f193a30e0af in PyImport_ImportModuleLevel (name=0x21f516c "pyappletscript", globals=0x2131f90, locals=0x2131f90, fromlist=0x2192680, level=-1) at ../Python/import.c:2072
#27 0x00007f193a2f091d in builtin___import__ (self=<value optimized out>, args=<value optimized out>, kwds=<value optimized out>) at ../Python/bltinmodule.c:47
#28 0x00007f193a26e103 in PyObject_Call (func=0xfffffff0, arg=0xffffffff, kw=0x18) at ../Objects/abstract.c:1861
#29 0x00007f193a27223e in PyObject_CallFunctionObjArgs (callable=0x21895f0) at ../Objects/abstract.c:2091
#30 0x00007f193a30e275 in PyImport_Import (module_name=0x21f5148) at ../Python/import.c:2576
#31 0x00007f193a30e445 in PyImport_ImportModule (name=<value optimized out>) at ../Python/import.c:1972
#32 0x00007f193a5a8e16 in ?? () from /usr/lib/kde4/kpythonpluginfactory.so
#33 0x00007f193a5ab13c in ?? () from /usr/lib/kde4/kpythonpluginfactory.so
#34 0x00007f194dabd987 in KPluginFactory::create<Plasma::AppletScript> (language=..., type=Plasma::AppletComponent, parent=0x2120db0) at ../../kdecore/util/kpluginfactory.h:515
#35 KService::createInstance<Plasma::AppletScript> (language=..., type=Plasma::AppletComponent, parent=0x2120db0) at ../../kdecore/services/kservice.h:517
#36 KService::createInstance<Plasma::AppletScript> (language=..., type=Plasma::AppletComponent, parent=0x2120db0) at ../../kdecore/services/kservice.h:494
#37 Plasma::loadEngine (language=..., type=Plasma::AppletComponent, parent=0x2120db0) at ../../plasma/scripting/scriptengine.cpp:163
#38 0x00007f194dabdefe in Plasma::loadScriptEngine (language=..., applet=0x2120db0) at ../../plasma/scripting/scriptengine.cpp:190
#39 0x00007f194da53535 in Plasma::AppletPrivate::init (this=0x2033260, packagePath=<value optimized out>) at ../../plasma/applet.cpp:2283
#40 0x00007f194da542d9 in Applet (this=0x2120db0, parentObject=0x0, args=...) at ../../plasma/applet.cpp:156
#41 0x00007f194da54e25 in Plasma::Applet::load (appletName=..., appletId=80, args=<value optimized out>) at ../../plasma/applet.cpp:1942
#42 0x00007f194da63a60 in Plasma::ContainmentPrivate::addApplet (this=0x2179750, name=..., args=..., appletGeometry=..., id=80, delayInit=true) at ../../plasma/containment.cpp:1844
#43 0x00007f194da66989 in Plasma::Containment::restoreContents (this=0x1dc84a0, group=<value optimized out>) at ../../plasma/containment.cpp:412
#44 0x00007f194da68f13 in Plasma::Containment::restore (this=0x1dc84a0, group=...) at ../../plasma/containment.cpp:321
#45 0x00007f194da6c182 in Plasma::Corona::loadLayout (this=0x1df9a60, configName=<value optimized out>) at ../../plasma/corona.cpp:369
#46 0x00007f194da6dd32 in Plasma::Corona::initializeLayout (this=0x1df9a60, configName=...) at ../../plasma/corona.cpp:324
#47 0x00007f194b06072c in PlasmaApp::corona (this=0x1d20dc0) at ../../../../plasma/shells/desktop/plasmaapp.cpp:574
#48 0x00007f194b0608b8 in PlasmaApp::setupDesktop (this=0x1d20dc0) at ../../../../plasma/shells/desktop/plasmaapp.cpp:252
#49 0x00007f194b0649ed in PlasmaApp::qt_metacall (this=0x1d20dc0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4dfbcd30) at ./plasmaapp.moc:115
#50 0x00007f1955f92df2 in QMetaObject::activate (sender=0x1da7b40, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffff) at kernel/qobject.cpp:3112
#51 0x00007f1955f97f5f in QSingleShotTimer::timerEvent (this=0x1da7b40) at kernel/qtimer.cpp:298
#52 0x00007f1955f8d353 in QObject::event (this=0x1da7b40, e=0xffffffff) at kernel/qobject.cpp:1074
#53 0x00007f1953f0701d in QApplicationPrivate::notify_helper (this=0x1d2a060, receiver=0x1da7b40, e=0x7fff4dfbd3f0) at kernel/qapplication.cpp:4065
#54 0x00007f1953f0f07a in QApplication::notify (this=0x1d20dc0, receiver=0x1da7b40, e=0x7fff4dfbd3f0) at kernel/qapplication.cpp:4030
#55 0x00007f1954b600db in KApplication::notify (this=0x1d20dc0, receiver=0x1da7b40, event=0x7fff4dfbd3f0) at ../../kdeui/kernel/kapplication.cpp:302
#56 0x00007f1955f7dc9c in QCoreApplication::notifyInternal (this=0x1d20dc0, receiver=0x1da7b40, event=0x7fff4dfbd3f0) at kernel/qcoreapplication.cpp:610
#57 0x00007f1955faa2c6 in QCoreApplication::sendEvent (this=0x1d2d500) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#58 QTimerInfoList::activateTimers (this=0x1d2d500) at kernel/qeventdispatcher_unix.cpp:580
#59 0x00007f1955fa6634 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#60 0x00007f1952e1f12a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#61 0x00007f1952e22988 in ?? () from /lib/libglib-2.0.so.0
#62 0x00007f1952e22b3c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#63 0x00007f1955fa639c in QEventDispatcherGlib::processEvents (this=0x1cc8850, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#64 0x00007f1953f9df1f in QGuiEventDispatcherGlib::processEvents (this=0xfffffff0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#65 0x00007f1955f7c562 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#66 0x00007f1955f7c934 in QEventLoop::exec (this=0x7fff4dfbd6a0, flags=...) at kernel/qeventloop.cpp:201
#67 0x00007f1955f7eba4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#68 0x00007f194b04b26b in kdemain (argc=1, argv=0x1d027a0) at ../../../../plasma/shells/desktop/main.cpp:50
#69 0x0000000000407264 in launch (argc=1, _name=0x1d02d78 "/usr/bin/plasma-desktop", args=<value optimized out>, cwd=0x0, envc=0, envs=0x1d02d98 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x40a0ff "0") at ../../kinit/kinit.cpp:677
#70 0x0000000000407a28 in handle_launcher_request (sock=7, who=<value optimized out>) at ../../kinit/kinit.cpp:1169
#71 0x0000000000407fae in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1362
#72 0x000000000040863b in main (argc=2, argv=0x7fff4dfbe528, envp=0x7fff4dfbe540) at ../../kinit/kinit.cpp:1793

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

Reported using DrKonqi
Comment 1 Dario Andres 2009-11-16 13:23:42 UTC
Bug 214776 looks indeed related, so I would do the same question:

- Are your python-qt , python-kde (kdebindings) packages updated ?
The crash seems to be caused by a version mismatch between Python/Python-Qt/Qt
as you probably have some python widget in your desktop.

Thanks
Comment 2 Raúl 2009-11-16 13:40:34 UTC
(In reply to comment #1)
> Bug 214776 looks indeed related, so I would do the same question:
> 
> - Are your python-qt , python-kde (kdebindings) packages updated ?
> The crash seems to be caused by a version mismatch between Python/Python-Qt/Qt
> as you probably have some python widget in your desktop.
> 
> Thanks

Doing an "aptitude update && aptitude full-upgrade" shows all packages to be up to date, with the usual "no packages will be updated, installed or removed".

The versions of those packages installed on my system are as follows:

python-qt4: 4.6-1                                                                                      python-kde4: 4:4.2.2-3

As far as I can tell, those are the latest available for Debian Testing (so I guess upgrading to the versions from the unstable repos or deleting my plasma config file could do the trick, but I won't do either yet just in case a better solution is found). If you need any more info, I'll be happy to do what I can to provide it. 

Thanks.
Comment 3 Dario Andres 2009-11-16 13:43:29 UTC
You have "python-kde4: 4:4.2.2-3" while your KDE is 4.3.2. In the debian page I see "python-kde4 4:4.3.2-1" in Sid.
So I guess this could be a Debian problem, or may be they simply need to recompile their python-kde4 package or something...
Comment 4 Raúl 2009-11-16 13:56:37 UTC
(In reply to comment #3)
> You have "python-kde4: 4:4.2.2-3" while your KDE is 4.3.2. In the debian page I
> see "python-kde4 4:4.3.2-1" in Sid.
> So I guess this could be a Debian problem, or may be they simply need to
> recompile their python-kde4 package or something...

I don't have the Sid repos enabled, and python-kde4 4:4.2.2-3 is the latest available in the Testing repos. But there was an upgrade for some python packages that I applied yesterday (I think python-qt4 was one of them), which may be the cause for this crash. If deleting my plasma config doesn't work I'll try upgrading those packages to the versions in Sid, and I'll report back either way.
Comment 5 Dario Andres 2009-11-16 14:03:19 UTC
I think the problem is that python-kde4 (even the old "4.2.2" version) should be recompiled against this new python-qt version. Otherwise it will fail like this.
Comment 6 Dario Andres 2009-11-16 14:03:56 UTC
*** Bug 214776 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2009-11-16 14:13:39 UTC
I just asked to the Debian-KDE packagers and they told me it is a Python-qt problem, which is fixed in Unstable and it should arrive into Testing soon.
In the meanwhile try not using Python widgets in your desktop. (you may need to move out your Plasma config files to start with a clean config, sorry)

Regards
Comment 8 belion 2009-11-16 14:26:09 UTC
Ok, I just installed the python-kde4 package from the unstable repositories (version 4.3.2-1); restarted plasma and now it is working again.

Thank you so much, Dario!
Comment 9 Dario Andres 2009-11-16 14:27:56 UTC
Thanks for confirming that the update fixes the problem. 
You are welcome
Comment 10 Raúl 2009-11-16 15:00:24 UTC
Upgrading python-kde4 to the version in the unstable repos fixed it for me too.

Thanks for your help.
Comment 11 Dario Andres 2009-11-18 20:17:00 UTC
*** Bug 215163 has been marked as a duplicate of this bug. ***
Comment 12 Kelvalok 2009-11-18 20:43:55 UTC
I have deleted my widgtes (all of them from google) from ~/.kde/share/apps/plasma, and now kde starts fine...
Comment 13 javier 2009-11-22 14:29:53 UTC
removing python plasmoid, or upgrading to the unstable package also fixes the problem for me (using debian testing)
Comment 14 Dario Andres 2009-11-23 13:38:05 UTC
*** Bug 215680 has been marked as a duplicate of this bug. ***
Comment 15 Dario Andres 2009-11-25 01:48:28 UTC
*** Bug 215988 has been marked as a duplicate of this bug. ***
Comment 16 Dario Andres 2009-12-04 13:15:08 UTC
*** Bug 216713 has been marked as a duplicate of this bug. ***
Comment 17 Dario Andres 2009-12-04 13:15:19 UTC
*** Bug 217327 has been marked as a duplicate of this bug. ***
Comment 18 Dario Andres 2009-12-10 14:21:45 UTC
*** Bug 217780 has been marked as a duplicate of this bug. ***
Comment 19 Dario Andres 2009-12-10 14:22:09 UTC
*** Bug 212876 has been marked as a duplicate of this bug. ***
Comment 20 Dario Andres 2009-12-13 23:35:16 UTC
*** Bug 218524 has been marked as a duplicate of this bug. ***