Bug 209379 - systemsettings printer settings crash startup [PyTuple_Pack, PyType_Ready, PyQt]
Summary: systemsettings printer settings crash startup [PyTuple_Pack, PyType_Ready, PyQt]
Status: RESOLVED UNMAINTAINED
Alias: None
Product: system-config-printer-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Jonathan Riddell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-04 11:29 UTC by Eugenio
Modified: 2013-11-23 20:35 UTC (History)
3 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 Eugenio 2009-10-04 11:29:57 UTC
Application that crashed: kcmshell4
Version of the application: 
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.28-15-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
The printer settings module crashes at startup both when I click on "printer" module in systemsettings and when I launch "kcmshell4 system-config-printer-kde". Reinstalling and/or reconfiguring python-kde4, python-qt4, python-qt4-dbus, cups, system-config-printer-kde didn't solve the problem. Some bugs in the tracker were very similar to this, but they solved just by reconfiguring some packages. System is up to date (jackalope with frequent dist-upgrades).

 -- Backtrace:
Application: Modulo di controllo di KDE (kcmshell4), signal: Segmentation fault
[KCrash Handler]
#6  PyTuple_Pack (n=1) at ../Objects/tupleobject.c:150
#7  0xb4462800 in PyType_Ready (type=0xb4071180) at ../Objects/typeobject.c:3965
#8  0xb3ffdbb3 in ?? () from /var/lib/python-support/python2.6/PyQt4/QtCore.so
#9  0xb3f46cd3 in initQtCore () from /var/lib/python-support/python2.6/PyQt4/QtCore.so
#10 0xb44b8431 in _PyImport_LoadDynamicModule (name=0xbf8b8197 "PyQt4.QtCore", pathname=0xbf8b70f7 "/var/lib/python-support/python2.6/PyQt4/QtCore.so", fp=0x91739a0) at ../Python/importdl.c:53
#11 0xb44b5ffb in load_module (name=0xbf8b8197 "PyQt4.QtCore", fp=0x0, buf=0xb42cc4ac "\001", type=3, loader=0x0) at ../Python/import.c:1829
#12 0xb44b6919 in import_submodule (mod=0xb438ca34, subname=0xbf8b819d "QtCore", fullname=0xbf8b8197 "PyQt4.QtCore") at ../Python/import.c:2590
#13 0xb44b6bcb in load_next (mod=0xb438ca34, altmod=0xb438ca34, p_name=0xbf8b8188, buf=0xbf8b8197 "PyQt4.QtCore", p_buflen=0xbf8b8190) at ../Python/import.c:2410
#14 0xb44b7232 in import_module_level (name=0x0, globals=<value optimized out>, locals=0xb4373bdc, fromlist=0xb43b8f2c, level=-1) at ../Python/import.c:2139
#15 0xb44b77cb in PyImport_ImportModuleLevel (name=0xb43107b4 "PyQt4.QtCore", globals=0xb4373bdc, locals=0xb4373bdc, fromlist=0xb43b8f2c, level=-1) at ../Python/import.c:2183
#16 0xb4499394 in builtin___import__ (self=0x0, args=0xb43109b4, kwds=0x0) at ../Python/bltinmodule.c:48
#17 0xb443daa9 in PyCFunction_Call (func=0xb4398c6c, arg=0xb43109b4, kw=0x0) at ../Objects/methodobject.c:85
#18 0xb43f798c in PyObject_Call (func=0xb4398c6c, arg=0xb43109b4, kw=0x0) at ../Objects/abstract.c:2492
#19 0xb4499a34 in PyEval_CallObjectWithKeywords (func=0xb4398c6c, arg=0xb43109b4, kw=0x0) at ../Python/ceval.c:3575
#20 0xb449d330 in PyEval_EvalFrameEx (f=0x916d144, throwflag=0) at ../Python/ceval.c:2136
#21 0xb44a1910 in PyEval_EvalCodeEx (co=0xb4313068, globals=0xb4373bdc, locals=0xb4373bdc, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2968
#22 0xb44a1a73 in PyEval_EvalCode (co=0xb4313068, globals=0xb4373bdc, locals=0xb4373bdc) at ../Python/ceval.c:522
#23 0xb44b3d5d in PyImport_ExecCodeModuleEx (name=0xbf8bb837 "system-config-printer-kde", co=0xb4313068, 
    pathname=0xbf8b9737 "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.pyc") at ../Python/import.c:680
#24 0xb44b59cf in load_source_module (name=0xbf8bb837 "system-config-printer-kde", pathname=0xbf8b9737 "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.pyc", fp=0x914da08)
    at ../Python/import.c:1016
#25 0xb44b6919 in import_submodule (mod=0xb45d5720, subname=0xbf8bb837 "system-config-printer-kde", fullname=0xbf8bb837 "system-config-printer-kde") at ../Python/import.c:2590
#26 0xb44b6bcb in load_next (mod=0xb45d5720, altmod=0xb45d5720, p_name=0xbf8bb828, buf=0xbf8bb837 "system-config-printer-kde", p_buflen=0xbf8bb830) at ../Python/import.c:2410
#27 0xb44b71da in import_module_level (name=0x0, globals=<value optimized out>, locals=0xb437379c, fromlist=0xb43a64cc, level=0) at ../Python/import.c:2132
#28 0xb44b77cb in PyImport_ImportModuleLevel (name=0xb436c494 "system-config-printer-kde", globals=0xb437379c, locals=0xb437379c, fromlist=0xb43a64cc, level=0) at ../Python/import.c:2183
#29 0xb4499394 in builtin___import__ (self=0x0, args=0xb43af53c, kwds=0x0) at ../Python/bltinmodule.c:48
#30 0xb443daa9 in PyCFunction_Call (func=0xb4398c6c, arg=0xb43af53c, kw=0x0) at ../Objects/methodobject.c:85
#31 0xb43f798c in PyObject_Call (func=0xb4398c6c, arg=0xb43af53c, kw=0x0) at ../Objects/abstract.c:2492
#32 0xb43fa0e5 in PyObject_CallFunction (callable=0xb4398c6c, format=0xb453c8e3 "OOOOi") at ../Objects/abstract.c:2524
#33 0xb44b7983 in PyImport_Import (module_name=0xb436c480) at ../Python/import.c:2770
#34 0xb44b7b65 in PyImport_ImportModule (name=0x8fc11b8 "system-config-printer-kde") at ../Python/import.c:2043
#35 0xb4642489 in ?? () from /usr/lib/kde4/kpythonpluginfactory.so
#36 0xb4644a2e in ?? () from /usr/lib/kde4/kpythonpluginfactory.so
#37 0xb8041267 in KCModuleLoader::loadModule () from /usr/lib/libkutils.so.4
#38 0xb804715d in ?? () from /usr/lib/libkutils.so.4
#39 0xb8048283 in KCModuleProxy::realModule () from /usr/lib/libkutils.so.4
#40 0xb80483e8 in KCModuleProxy::buttons () from /usr/lib/libkutils.so.4
#41 0xb80427f2 in ?? () from /usr/lib/libkutils.so.4
#42 0xb8043a96 in KCMultiDialog::addModule () from /usr/lib/libkutils.so.4
#43 0xb80789f3 in kdemain () from /usr/lib/libkdeinit4_kcmshell4.so
#44 0x08048642 in _start ()

Reported using DrKonqi
Comment 1 Bruce Miller 2010-01-01 19:54:20 UTC
This bug also affects KDE SC 4.4, as compiled in the Kubuntu ppa as of 2010-01-01.

It appears to be the same as (or at least closely related to) Kubuntu bug 331192.

I obtained the following traceback today:

bruce@Herodotus:~$ kcmshell4 system-config-printer-kde
kcmshell(3577)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-bruce/ksycoca4"
kcmshell(3577)/kutils (KCMultiDialog) KCMultiDialog::addModule: "Printer Configuration"
kcmshell(3577)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module  "Printer Configuration"  from library  "kpythonpluginfactory"  using symbol  "kpythonpluginfactory"
kcmshell(3577)/python (plugin) KPythonPluginFactory::KPythonPluginFactory: KPythonPluginFactory::KPythonPluginFactory()
kcmshell(3577)/python (plugin) KPythonPluginFactory::initialize: Initializing Python interpreter.
kcmshell(3577)/python (plugin) KPythonPluginFactory::initialize: Succesfully initialized Python interpreter.
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface:  KCModule
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code:  "system-config-printer-kde/system-config-printer-kde.py"
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: Path to plugin code is:  "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py"
kcmshell(3577)/python (plugin): Error while running factory function for Python plugin:  "system-config-printer-kde/system-config-printer-kde.py"
Traceback (most recent call last):
  File "<string>", line 18, in kpythonpluginfactory_bridge
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 4004, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 217, in makeui
    self.ui.btnJOResetCopies),
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 117, in __init__
    self.reinit (None)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 155, in reinit
    self.set_widget_value (self.system_default)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 178, in set_widget_value
    raise NotImplemented
TypeError: exceptions must be classes or instances, not NotImplementedType
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface:  KCModule
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code:  ""
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: Path to plugin code is:  "/home/bruce/.kde/share/apps/"
kcmshell(3577)/python (plugin): Failed to import module
kcmshell(3577)/kcontrol KCModuleLoader::loadModule: This module has no valid entry symbol at all. The reason could be that it's still using K_EXPORT_COMPONENT_FACTORY with a custom X-KDE-FactoryName which is not supported anymore
kcmshell(3577)/kutils (KCMultiDialog) KCMultiDialog::addModule: adding KCM  "Printer Configuration"  at the top level
kcmshell(3577)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_slotCurrentPageChanged:
kcmshell(3577)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_dialogClosed:
kcmshell(3577)/python (plugin) KPythonPluginFactory::~KPythonPluginFactory: KPythonPluginFactory::~KPythonPluginFactory()
bruce@Herodotus:~$
Comment 2 Christoph Feck 2013-11-23 20:35:39 UTC
"system-config-printer-kde" is no longer maintained and has been replaced with "Print Manager" since KDE 4.10. The new version is a C++ rewrite of the old Python version, and may still lack some features or have some bugs.

If this or another issue still needs to be addressed in KDE 4.10 or newer, please add a comment, or report it for "Print Manager".