Re: Gtk2::SimpleList crashes
- From: muppet <scott asofyet org>
- To: "gtk-perl-list gnome org List" <gtk-perl-list gnome org>
- Subject: Re: Gtk2::SimpleList crashes
- Date: Sat, 15 Aug 2009 23:50:49 -0400
On Aug 15, 2009, at 3:24 PM, Peter Daum wrote:
Originally, I tried to find a way to delete all values matching
certain criteria
from a Gtk2::SimpleList (which always crashed). Eventually, I found,
that I don't
have to get fancy to cause that crash - the following will do it:
my @data= {$slist->{data}};
@{$slist->{data}}= data;
Gtk-CRITICAL **: gtk_list_store_get_value: assertion `VALID_ITER
(iter, list_store)' failed at /usr/lib/perl5/Gtk2/SimpleList.pm line
248, <F> line 35.
GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table !=
NULL' failed at /usr/lib/perl5/Gtk2/SimpleList.pm line 248, <F> line
35.
Segmentation fault
Can anybody tell me what's wrong with that code snippet?
Is there any workaround?
Can you post a script and your software versions? I can't reproduce
on my (rather ancient) system with this:
#!/usr/bin/perl -w
use strict;
use Gtk2 -init;
use Gtk2::SimpleList;
my $slist = Gtk2::SimpleList->new ('Stuff' => 'text');
@{ $slist->{data} } = qw(one two three four five six seven);
my @data = @{ $slist->{data} };
@{ $slist->{data} } = @data;
print "Gtk2::VERSION $Gtk2::VERSION\n";
print "Gtk2::SimpleList::VERSION $Gtk2::SimpleList::VERSION\n";
print "Gtk2->GET_VERSION_INFO ".join(".",Gtk2-
>GET_VERSION_INFO)."\n";
print "Gtk2->get_version_info ".join(".",Gtk2-
>get_version_info)."\n";
----------------------------------
Gtk2::VERSION 1.080
Gtk2::SimpleList::VERSION 0.15
Gtk2->GET_VERSION_INFO 2.4.0
Gtk2->get_version_info 2.4.14
--
Y: That's funny!
Z: (silent)
Y: That's not funny.
Z: (silent)
Y: Is that funny?
Z: (nods)
Y: Then why didn't you laugh?
Z: Sometimes, whenever it's funny, I don't laugh. But sometimes, I do.
Y: When is it funny?
Z: Whenever you say "poop" and "fart" and "pee" and "butt," I laugh.
Y: Oh, okay.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]