You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Karl Wright (JIRA)" <ji...@apache.org> on 2016/06/27 13:53:52 UTC

[jira] [Commented] (LUCENE-7357) TestGeo3DPoint.testGeo3DRelations() failure: invalid bounds for shape=GeoStandardPath

    [ https://issues.apache.org/jira/browse/LUCENE-7357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15351034#comment-15351034 ] 

Karl Wright commented on LUCENE-7357:
-------------------------------------

This path is extremely short path that is solely in latitude, length 2.18e-12:

{code}
   [lat=2.18531083006635E-12, lon=-3.141592653589793([X=-1.0011188539924791, Y=-1.226017000107956E-16, Z=2.187755873813378E-12])], 
   [lat=0.0, lon=-3.141592653589793([X=-1.0011188539924791, Y=-1.226017000107956E-16, Z=0.0])]]}}
{code}

The bounds that is violated is in X:

{code}
   xmin=-1.0011188549924792 xmax=0.4449938894797613
{code}

The point that is outside this bound but inside the shape is:

{code}
   [junit4]   1>       unquantized=[lat=-2.848117399637174E-91, lon=-1.1092122135274942([X=0.44586529864043345, Y=-0.8963498732568058, Z=-2.851304027160807E-91])]
   [junit4]   1>       quantized=[X=0.44586529870253566, Y=-0.8963498734280969, Z=-2.3309121299774915E-10]
{code}

Not clear why the x-bound computation is off here;  will have to analyze how that's being done and look for numerical instability.  It's possible that the issue occurs because of the approximations that must be made for endpoint circles for paths (which are really ellipses).

> TestGeo3DPoint.testGeo3DRelations() failure: invalid bounds for shape=GeoStandardPath
> -------------------------------------------------------------------------------------
>
>                 Key: LUCENE-7357
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7357
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>            Reporter: Steve Rowe
>            Assignee: Karl Wright
>
> From [https://builds.apache.org/job/Lucene-Solr-Tests-master/1228/]:
> {noformat}
> Checking out Revision 46c827e31a5534bb032d0803318d01309bf0195c (refs/remotes/origin/master)
> [...]
>   [junit4] Suite: org.apache.lucene.spatial3d.TestGeo3DPoint
>   [junit4]   1>     doc=1544 is contained by shape but is outside the returned XYZBounds
>   [junit4]   1>       unquantized=[lat=-2.848117399637174E-91, lon=-1.1092122135274942([X=0.44586529864043345, Y=-0.8963498732568058, Z=-2.851304027160807E-91])]
>   [junit4]   1>       quantized=[X=0.44586529870253566, Y=-0.8963498734280969, Z=-2.3309121299774915E-10]
>   [junit4]   1>   shape=GeoStandardPath: {planetmodel=PlanetModel.WGS84, width=1.117010721276371(64.0), points={[[lat=2.18531083006635E-12, lon=-3.141592653589793([X=-1.0011188539924791, Y=-1.226017000107956E-16, Z=2.187755873813378E-12])], [lat=0.0, lon=-3.141592653589793([X=-1.0011188539924791, Y=-1.226017000107956E-16, Z=0.0])]]}}
>   [junit4]   1>   bounds=XYZBounds: [xmin=-1.0011188549924792 xmax=0.4449938894797613 ymin=-1.0011188549924792 ymax=1.0011188549924792 zmin=-0.9977622930221051 zmax=0.9977622930221051]
>   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestGeo3DPoint -Dtests.method=testGeo3DRelations -Dtests.seed=1F71744AE2101863 -Dtests.multiplier=2 -Dtests.slow=true -Dtests.locale=pt-PT -Dtests.timezone=Europe/Berlin -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
>   [junit4] FAILURE 1.46s J1 | TestGeo3DPoint.testGeo3DRelations <<<
>   [junit4]    > Throwable #1: java.lang.AssertionError: invalid bounds for shape=GeoStandardPath: {planetmodel=PlanetModel.WGS84, width=1.117010721276371(64.0), points={[[lat=2.18531083006635E-12, lon=-3.141592653589793([X=-1.0011188539924791, Y=-1.226017000107956E-16, Z=2.187755873813378E-12])], [lat=0.0, lon=-3.141592653589793([X=-1.0011188539924791, Y=-1.226017000107956E-16, Z=0.0])]]}}
>   [junit4]    > 	at __randomizedtesting.SeedInfo.seed([1F71744AE2101863:AF0E09DE6D5DB6FF]:0)
>   [junit4]    > 	at org.apache.lucene.spatial3d.TestGeo3DPoint.testGeo3DRelations(TestGeo3DPoint.java:259)
>   [junit4]    > 	at java.lang.Thread.run(Thread.java:745)
>   [junit4] IGNOR/A 0.00s J1 | TestGeo3DPoint.testRandomBig
>   [junit4]    > Assumption #1: 'nightly' test group is disabled (@Nightly())
>   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene62), sim=RandomSimilarity(queryNorm=false,coord=yes): {}, locale=pt-PT, timezone=Europe/Berlin
>   [junit4]   2> NOTE: Linux 3.13.0-85-generic amd64/Oracle Corporation 1.8.0_74 (64-bit)/cpus=4,threads=1,free=256210224,total=354418688
>   [junit4]   2> NOTE: All tests run in this JVM: [TestGeo3DPoint]
>   [junit4] Completed [10/11 (1!)] on J1 in 37.22s, 14 tests, 1 failure, 1 skipped <<< FAILURES!
> {noformat}
> Reproduces for me.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org