You are not logged in.

#1 2009-10-11 18:31:47

crobe
Member
Registered: 2009-10-11
Posts: 6

PyQt 4.6, QFileDialog crashes with segfault

Hi,

after the latest Archlinux upgrade ( to KDE 4.3.2 ) I have problems with PyQt.

A simple QFileDialog, invoked like in this:

fd = QFileDialog()
fd.__init__(self)
self.filename = fd.getOpenFileName()

crashes really hard, strace gives me this:

...
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=33, ...}) = 0
stat64("/home/rob", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
lstat64("/home/rob", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
stat64("/home/rob/prog", {st_mode=S_IFDIR|0755, st_size=94, ...}) = 0
lstat64("/home/rob/prog", {st_mode=S_IFDIR|0755, st_size=94, ...}) = 0
stat64("/home/rob/prog/fi", {st_mode=S_IFDIR|0755, st_size=148, ...}) = 0
lstat64("/home/rob/prog/fi", {st_mode=S_IFDIR|0755, st_size=148, ...}) = 0
stat64("/home/rob/prog/fi/sim", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/rob/prog/fi/sim", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/rob/prog/fi/sim/data", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/rob/prog/fi/sim/data", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {44462, 929257064}) = 0
poll([{fd=8, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=8, revents=POLLOUT}])
writev(8, [{"\22\0\17\0\223\2 \4#\0\0\0#\0\0\0 \2<\1\t\0\0\0C\0\0\0\1\0\0\0\1"..., 328}, {NULL, 0}, {""..., 0}], 3) = 328
read(8, 0x8cf0f88, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=8, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=8, revents=POLLIN|POLLOUT}])
read(8, "\34M\375\25\223\2 \4#\0\0\0Qs\246\2\0\1\0\0\300\t\373\277\2\0\0\0`\337\275\n\34"..., 4096) = 160
writev(8, [{"&\0\2\0<\1\0\0"..., 8}, {NULL, 0}, {""..., 0}], 3) = 8
poll([{fd=8, events=POLLIN}], 1, -1)    = 1 ([{fd=8, revents=POLLIN}])
read(8, "\26\0\2\26\223\2 \4\223\2 \4\221\2 \4\0\0\0\0\201\2\246\1\0\0\0\0|\n\373\277\1"..., 4096) = 64
futex(0xb7e1f380, FUTEX_WAIT_PRIVATE, 2, NULL) = 0
futex(0xb7e1f380, FUTEX_WAKE_PRIVATE, 1) = 0
read(8, 0x8cf0f88, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
futex(0xb7e1f380, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0xb7e1f380, FUTEX_WAKE_PRIVATE, 1) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Its not important where I invoke the FileDialog. It works about every Fifth time I run it, most times the second time I try it works. This is quite Annoying.
Versions are:

pyqt 4.6.0-1
sip 4.9.0-1
qt 4.5.3-3

Downgrading pyqt and sip works better, but then pyuic4 stops working with some undefined error.
This Version of Qt sucks anyway, as it also has the bug Opera triggers...

Anyone else experiencing this?

-rob

Last edited by crobe (2009-10-11 18:32:56)

Offline

#2 2009-10-14 14:35:20

crobe
Member
Registered: 2009-10-11
Posts: 6

Re: PyQt 4.6, QFileDialog crashes with segfault

Interesting, nobody has this bug?

I downgraded pyqt, sip, kdebindings-python, I hope it works now.

Offline

Board footer

Powered by FluxBB