Re: [Vala] Bug with cleared Gee.ArrayList
- From: Jim Nelson <jim yorba org>
- To: Daniel Brendle <grindhold skarphed org>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Bug with cleared Gee.ArrayList
- Date: Mon, 11 Nov 2013 19:39:51 -0008
My bet is that it's a bounds error, i.e. you called ArrayList.get()
with index < 0 or index >= ArrayList.size. (Note that the [] operator
is actually a call to the .get() method.)
-- Jim
On Mon, Nov 11, 2013 at 11:15 AM, Daniel Brendle
<grindhold skarphed org> wrote:
Hi, fellow vala-people.
My project "nostril" is growing well. But again i ran into a bug that
i
don't know how to fix.
I offer an "clear list"-feature. Which empties an ArrayList as in [0]
If i already selected an entry in the list for viewing it in detail,
the
program crashes with an error like this:
ERROR:arraylist.c:518:gee_array_list_real_get: assertion failed:
(_tmp1_
< _tmp2_)
Using a search-engine on that errormessage was not very effective.
My first thought was, that it happens because something that should be
rendered hits an empty or invalid reference. But according to my
debugging output the error happens _after_ the GUI-renderfunction
passed
through.
More Strange: The User can also delete a selection of list-entries my
multi-selection. The function that does that takes a list of Entry-IDs
and processes them as in [1]. This works.
I already tried to delete every entry on its own like in [1] instead
of
using the clear()-Method of the ArrayList. In this case the error
still
occurs.
The full code can still be cloned an seen here [2]
I use valac-0.22
Hope someone can bring some light into the darkness here.
Thanks in advance,
Grindhold
[0] http://pastebin.com/LH8T4z30
[1] http://pastebin.com/2sFAdFX4
[2] https://github.com/grindhold/nostril
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]