Bug 279595 - systemsettings -> printer config doesn#t work
Summary: systemsettings -> printer config doesn#t work
Status: RESOLVED NOT A BUG
Alias: None
Product: system-config-printer-kde
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Riddell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-07 16:10 UTC by Toralf Förster
Modified: 2012-06-07 10:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
valgrind output (151.54 KB, text/plain)
2011-08-07 16:10 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster 2011-08-07 16:10:37 UTC
Created attachment 62641 [details]
valgrind output

Version:           unspecified (using KDE 4.6.5) 
OS:                Linux

Unter an almoast stable Gentoo I get a core dump (w/o usefule back trace, but nevertheless attached here too), with gdb I get :

tfoerste@n22 ~ $ gdb /usr/bin/systemsettings
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/systemsettings...Reading symbols from /usr/lib/debug/usr/bin/systemsettings.debug...done.
done.
(gdb) r
Starting program: /usr/bin/systemsettings 
[Thread debugging using libthread_db enabled]

Program exited normally.
(gdb) thread apply all
Please specify a command following the thread ID list
(gdb) systemsettings(17020)/python (plugin): Failed to import module 
Traceback (most recent call last):
  File "/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py", line 45, in <module>
    from PyKDE4.kdecore import *
RuntimeError: the PyQt4.QtCore module is version 1 but the PyKDE4.kdecore module requires version -1
systemsettings(17020)/python (plugin): Failed to import module 
systemsettings(17020)/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 
systemsettings(17020)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
KCrash: Application 'systemsettings' crashing...
Fatal Error: Accessed global static 'KGlobalPrivate *globalData()' after destruction. Defined at /var/tmp/portage/kde-base/kdelibs-4.6.5-r1/work/kdelibs-4.6.5/kdecore/kernel/kglobal.cpp:127
Unable to start Dr. Konqi


The core dump file itself gives :
#0  0xb7718843 in qt_plugin_instance () from /usr/lib/kde4/kpythonpluginfactory.so
(gdb) thread apply all bt

Thread 1 (Thread 17047):
#0  0xb7718843 in qt_plugin_instance () from /usr/lib/kde4/kpythonpluginfactory.so
#1  0xb7718849 in qt_plugin_instance () from /usr/lib/kde4/kpythonpluginfactory.so
#2  0xb7718849 in qt_plugin_instance () from /usr/lib/kde4/kpythonpluginfactory.so
#3  0xb7718849 in qt_plugin_instance () from /usr/lib/kde4/kpythonpluginfactory.so
....
(lines repeated)




Reproducible: Didn't try

Steps to Reproduce:
bla

Actual Results:  
bla

Expected Results:  
bla

OS: Linux (i686) release 2.6.39.4
Compiler: i686-pc-linux-gnu-gcc
Comment 1 Christoph Feck 2011-08-08 00:00:44 UTC
> RuntimeError: the PyQt4.QtCore module is version 1 but the PyKDE4.kdecore module requires version -1

Looks like a version mismatch between Python bindings for Qt4 and KDE4. Could you check if other Python KDE applications work?
Comment 2 Toralf Förster 2011-08-08 07:50:00 UTC
Thes 2 packages depend here under Gentoo :

tfoerste@n22 ~/devel/wireshark $ equery d kde-base/pykde4
 * These packages depend on kde-base/pykde4:
kde-base/plasma-workspace-4.6.5 (python ? >=kde-base/pykde4-4.6.5:4[aqua=])
kde-base/system-config-printer-kde-4.6.5 (>=kde-base/pykde4-4.6.5:4[aqua=])

and - yes - the plasma workspace works (although it crashes sometimes, usually during logout).
Comment 3 Toralf Förster 2011-08-08 08:00:18 UTC
Argh - wrong package name, but same results :-) :

tfoerste@n22 ~/devel/linux $ equery d dev-python/PyQt4
 * These packages depend on dev-python/PyQt4:
kde-base/plasma-workspace-4.6.5 (python ? >=dev-python/PyQt4-4.4.0[X])
kde-base/pykde4-4.6.5-r1 (aqua ? >=dev-python/PyQt4-4.8.2[dbus,declarative,sql,svg,webkit,aqua])
                         (!aqua ? >=dev-python/PyQt4-4.8.2[dbus,declarative,sql,svg,webkit,X])
Comment 4 Franz Trischberger 2012-06-07 07:41:34 UTC
This most likely is just a Gentoo issue.
https://bugs.gentoo.org/show_bug.cgi?id=409975
kpythonpluginfactory here is a simple wrapper, which loads the actual factory.
As the gentoo bug is marked with "Track Upstream", and in my opinion it is NOT a problem inside pykde4, I ask you to apply the patch posted in the gentoo bug (kpythonpluginwrapper.c is located in $PORTDIR/kde-base/pykde4/files), and to report back when the patch fixes the issues for you.
Comment 5 Toralf Förster 2012-06-07 10:04:35 UTC
(In reply to comment #4)
> This most likely is just a Gentoo issue.
> https://bugs.gentoo.org/show_bug.cgi?id=409975
> kpythonpluginfactory here is a simple wrapper, which loads the actual
> factory.
> As the gentoo bug is marked with "Track Upstream", and in my opinion it is
> NOT a problem inside pykde4, I ask you to apply the patch posted in the
> gentoo bug (kpythonpluginwrapper.c is located in
> $PORTDIR/kde-base/pykde4/files), and to report back when the patch fixes the
> issues for you.
yes- fixed for me - closed this bug