[gt-users] range assertion failed
Gordon Gremme
gremme at gmail.com
Thu Jan 14 10:52:24 CET 2010
> [...]
>>> Assertion failed: (range->start <= range->end), function
>>> gt_range_length, file src/core/range.c, line 186.
> [...]
>> i figured this out. it was underflow, not overflow. i was calling
>> get_features_in_range()
>> with a start less than zero. and since it was a u_long, it didn't fail
>> until the assertion in C, where it
>> found start < stop.
>
> Ah, okay. So I guesss it couldn't hurt to check for negative positions
> in ranges too. I will look into how I could modify the code in a way
> that an exception is thrown when a Range contains a negative position.
Great!
> P.S.: Strange that the sending to the mailing list seemed to delay my
> last mail... it was posted well before your reply.
That seems strange. We will switch to a new server shortly, maybe this helps.
Gordon
More information about the gt-users
mailing list