This forum has been archived. All content is frozen. Please use KDE Discuss instead.

QT_PLUGIN_PATH doesn't apply to PyQt apps -> Seg fault

Tags: None
(comma "," separated)
JoKer__777
Registered Member
Posts
10
Karma
0
OS
Hi

I have the normal qt libs installed through packages and next to it self compiled qt libs. The same also for kde.
Everything works finde but when I wanna use a python application which uses PyQt (also self compiled) I always get a Segmenation Fault.
Here is a gdb output when I run a simple "Hellow World" program.

Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe90a85f8 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
(gdb) bt
#0  0x00007fffe90a85f8 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#1  0x00007fffe90ba887 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#2  0x00007fffe90d1b1c in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#3  0x00007ffff55fa661 in QStyleFactory::create (key=...) at /home/joker/kdesrc/qt/src/gui/styles/qstylefactory.cpp:193
#4  0x00007ffff52037fa in QApplication::style () at /home/joker/kdesrc/qt/src/gui/kernel/qapplication.cpp:1462
#5  0x00007ffff52a1d7e in qt_set_x11_resources (font=0x0, fg=0x0, bg=0x0, button=0x0) at /home/joker/kdesrc/qt/src/gui/kernel/qapplication_x11.cpp:1289
#6  0x00007ffff52a7c57 in qt_init (priv=0x943ec0, display=0x0, visual=0, colormap=0) at /home/joker/kdesrc/qt/src/gui/kernel/qapplication_x11.cpp:2397
#7  0x00007ffff520207e in QApplicationPrivate::construct (this=0x943ec0, dpy=0x0, visual=0, cmap=0) at /home/joker/kdesrc/qt/src/gui/kernel/qapplication.cpp:839
#8  0x00007ffff5201bfe in QApplication::QApplication (this=0x654c10, argc=@0x7ffff69ee790: 1, argv=0x8284d0, _internal=17041410) at /home/joker/kdesrc/qt/src/gui/kernel/qapplication.cpp:738
#9  0x00007ffff65583fe in ?? () from /home/joker/kde/lib/python2.7/site-packages/PyQt4/QtGui.so
#10 0x00007ffff6558605 in ?? () from /home/joker/kde/lib/python2.7/site-packages/PyQt4/QtGui.so
#11 0x00007ffff14212cf in ?? () from /home/joker/kde/lib/python2.7/site-packages/sip.so
#12 0x00007ffff7abe21c in type_call () from /usr/lib/libpython2.7.so.1.0
#13 0x00007ffff7a6b88e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#14 0x00007ffff7afab39 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#15 0x00007ffff7afeeb5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#16 0x00007ffff7afef82 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#17 0x00007ffff7b17eba in run_mod () from /usr/lib/libpython2.7.so.1.0
#18 0x00007ffff7b18cb2 in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0
#19 0x00007ffff7b196cb in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0
#20 0x00007ffff7b2a9d2 in Py_Main () from /usr/lib/libpython2.7.so.1.0
#21 0x00007ffff7483725 in __libc_start_main () from /lib/libc.so.6
#22 0x0000000000400701 in _start ()


It somehow uses the plugins path from my packages. Though the env variable QT_PLUGIN_PATH is set correctly
Code: Select all
[joker@joker ~]$ env | grep QT_PLUGIN_PATH
QT_PLUGIN_PATH=/home/joker/kde/lib/kde4/plugins


It works when I remove "/usr/lib/kde4/plugins" but it should also work without removing it. Any Ideas?

Thanks
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The loading of the Oxygen style is a known problem for non-python applications as well - even when the appropriate environment variables are set. Unfortunately I am not aware of what the solution is - although removing ~/.config/Trolltech.conf has been known to help in some circumstances.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
JoKer__777
Registered Member
Posts
10
Karma
0
OS
bcooksley wrote:The loading of the Oxygen style is a known problem for non-python applications as well - even when the appropriate environment variables are set. Unfortunately I am not aware of what the solution is - although removing ~/.config/Trolltech.conf has been known to help in some circumstances.


Hi bcooksley

Thanks for your answer. I already tried to remove the related pathes to /usr/lib/kde4/plugins/* in ~/.config/Trolltech.conf but they were recreated later again. This didn't help.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would recommend sending an email to the kde-bindings@kde.org mailing list regarding this, as PyQt should follow and respect QT_PLUGIN_PATH.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient