seg faults in listview
Brought to you by:
awinters,
germaingarand
if items get added to the listview too fast it segfaults.
some times it seg faults after trying to remove items
from the list.
Qt::Object::connect(ListView_UserList, SIGNAL
"selectionChanged()", this, SLOT "selchanged()");
sub selchanged {
my $curitem = ListView_UserList->currentItem();
my $text = $curitem->text(0);
LineEdit_1->setText("$text");
}
This code will set LineEdit_1 to a hash value ... but I do
have another program which it works fine.
Logged In: YES
user_id=145773
Hi,
would you have a complete testcase for this bug?
This would greatly help.
Germain
Logged In: YES
user_id=472709
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1873)]
0x4058ccf6 in QListViewItem::sortChildItems(int, bool) ()
from /usr/qt/3/lib/libqt-mt.so.3
sorry normally I give these kind of things .. must not have
been thinking that day ;)
Logged In: YES
user_id=145773
Hi,
Thanks for the extra details.
However, I'm not sure I can infere much from this bt...
By "complete testcase" I rather intended a standalone
PerlQt program exhibiting the behaviour you describe.
I can (and will) reconstruct a program around your code
snippet but the problem might very well lie in another part
of the code.
Greetings,
Germain
Logged In: YES
user_id=472709
I'll see if I can write a small script that will create the same error... a
loop to add items to a ListView should do it tho .. that seems to be how
its crashing .. don't see how anything else would affect it any.
TextEdit boxs are another thing ... I get a :
QPixmap::operator=: Cannot assign to pixmap during painting
when the text reaches the bottom and a scroll bar is needed ..
Xlib: unexpected async reply (sequence 0x631d)!
is another one that I don't know where its comming from but I'll try
getting more backtraces for you. do you have an address I can send
you my script .. rather not just post it for everyone. told ppl that I
wouldn't post it for the world.
Logged In: YES
user_id=145773
Hi,
I've not been able to reproduce the segfaults,
so if you've still got the code around, I'd appreciate if you
could send it to me (germain at ebooksfrance dot org)
I hereby promise to throw it away as soon as it's fixed
and not show it to anyone :)
G.