Mailing List Archive

Tessellator failure for a certain polygon
Hello,

This bug was discovered while using ElasticSearch (checked with versions
7.6.2 and 7.9.2).
But I've created an isolated test case just for Lucene:
https://github.com/apache/lucene-solr/pull/2006/files

The unit test fails with "java.lang.IllegalArgumentException: Unable to
Tessellate shape".

The polygon contains two holes that share the same vertex and one more
standalone hole.
Removing any of them makes the unit test pass.

Changing the least significant digit in any coordinate of the "common
vertex" in any of two first holes, so that these vertices become different
in each hole - also makes unit test pass.

This looks like a bug to me, so should I create an issue for this in JIRA?

Regards,
Yuri.
Re: Tessellator failure for a certain polygon [ In reply to ]
hello,

Yes, indeed that looks like a bug, please create JIRA issue so we can track
it.

Thank you!

On Mon, Oct 19, 2020 at 9:07 PM Yuri Vishnevsky <yurivishnevsky@compstak.com>
wrote:

> Hello,
>
> This bug was discovered while using ElasticSearch (checked with versions
> 7.6.2 and 7.9.2).
> But I've created an isolated test case just for Lucene:
> https://github.com/apache/lucene-solr/pull/2006/files
>
> The unit test fails with "java.lang.IllegalArgumentException: Unable to
> Tessellate shape".
>
> The polygon contains two holes that share the same vertex and one more
> standalone hole.
> Removing any of them makes the unit test pass.
>
> Changing the least significant digit in any coordinate of the "common
> vertex" in any of two first holes, so that these vertices become different
> in each hole - also makes unit test pass.
>
> This looks like a bug to me, so should I create an issue for this in JIRA?
>
> Regards,
> Yuri.
>
Re: Tessellator failure for a certain polygon [ In reply to ]
Here it is: https://issues.apache.org/jira/browse/LUCENE-9580

On Tue, Oct 20, 2020 at 12:25 PM Ignacio Vera <iverase@gmail.com> wrote:

> hello,
>
> Yes, indeed that looks like a bug, please create JIRA issue so we can track
> it.
>
> Thank you!
>
> On Mon, Oct 19, 2020 at 9:07 PM Yuri Vishnevsky <
> yurivishnevsky@compstak.com>
> wrote:
>
> > Hello,
> >
> > This bug was discovered while using ElasticSearch (checked with versions
> > 7.6.2 and 7.9.2).
> > But I've created an isolated test case just for Lucene:
> > https://github.com/apache/lucene-solr/pull/2006/files
> >
> > The unit test fails with "java.lang.IllegalArgumentException: Unable to
> > Tessellate shape".
> >
> > The polygon contains two holes that share the same vertex and one more
> > standalone hole.
> > Removing any of them makes the unit test pass.
> >
> > Changing the least significant digit in any coordinate of the "common
> > vertex" in any of two first holes, so that these vertices become
> different
> > in each hole - also makes unit test pass.
> >
> > This looks like a bug to me, so should I create an issue for this in
> JIRA?
> >
> > Regards,
> > Yuri.
> >
>