From dev-return-323825-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed May 30 02:20:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 930AC180648 for ; Wed, 30 May 2018 02:20:04 +0200 (CEST) Received: (qmail 13276 invoked by uid 500); 30 May 2018 00:20:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 13211 invoked by uid 99); 30 May 2018 00:20:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2018 00:20:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DDD7018061F for ; Wed, 30 May 2018 00:20:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 7KKdXl-vmS7F for ; Wed, 30 May 2018 00:20:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C79715F2F0 for ; Wed, 30 May 2018 00:20:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 478C7E0016 for ; Wed, 30 May 2018 00:20:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0D39020EAB for ; Wed, 30 May 2018 00:20:00 +0000 (UTC) Date: Wed, 30 May 2018 00:20:00 +0000 (UTC) From: "Karl Wright (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-8337) Reproducing Geo3D test failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-8337?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164= 94519#comment-16494519 ]=20 Karl Wright commented on LUCENE-8337: ------------------------------------- I think I understand the problem -- it has to do with picking a bad path on= ce again. Here's debugging output for the edge where a crossing should be = detected (I think): {code} [junit4] 1> Edge [[lat=3D1.4379241972924144E-5, lon=3D-3.141520309370= 815([X=3D-1.0011188512685139, Y=3D-7.24251615257059E-5, Z=3D1.4395330244708= 275E-5])] --> [lat=3D-1.858900171939205E-5, lon=3D-3.1415059739464217([X=3D= -1.001118850057461, Y=3D-8.677662511280753E-5, Z=3D-1.860980009708855E-5])]= ] potentially crosses travel plane [A=3D1.0, B=3D0.0; C=3D0.0; D=3D1.001118= 8509002849] [junit4] 1> Finding intersections between edge plane and travel plan= e... [junit4] 1> There were intersection points! [junit4] 1> Getting above crossings... [junit4] 1> Envelope intersection point =3D [X=3D-1.001118850901285= 2, Y=3D-7.86721312086303E-5, Z=3D2.870854372572661E-8] [junit4] 1> Adjoining points not found. Are planes parallel? ed= ge =3D [A=3D7.207753470315688E-5, B=3D-0.9170557581136873; C=3D0.3987589890= 088486; D=3D0.0]; envelope =3D [A=3D1.0, B=3D0.0; C=3D0.0; D=3D1.0011188509= 012852]; perpendicular =3D [X=3D3.130986100560408E-5, Y=3D-0.39875898777965= 174, Z=3D-0.9170557609462142] [junit4] 1> No adjoining points [junit4] 1> Edge crosses envelope 1 times [junit4] 1> Getting below crossings... [junit4] 1> Above crossings =3D 1; below crossings =3D 0 {code} Note that the "above" envelope intersection point is way out at the negativ= e X pole, and the "above" envelope plane equation is: A=3D1.0, B=3D0.0; C= =3D0.0; D=3D1.0011188509012852 . This is so far out that the adjoining poi= nts algorithm can't locate any adjoining points even though the edge plane = and the envelope plane are not parallel, not even close. The algorithm sti= ll detects it as a crossing, which is OK, but not for the "below" envelope = plane, which apparently doesn't intersect the edge plane at all, possibly b= ecause it doesn't even intersect the world. So it appears that the problem here is once again a poor choice of path. > Reproducing Geo3D test failure > ------------------------------ > > Key: LUCENE-8337 > URL: https://issues.apache.org/jira/browse/LUCENE-8337 > Project: Lucene - Core > Issue Type: Bug > Components: modules/spatial3d > Reporter: Karl Wright > Assignee: Karl Wright > Priority: Major > > {code} > [junit4] Suite: org.apache.lucene.spatial3d.geom.RandomGeoPolygonTest > [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=3DRandomGeoPo= lygonTest -Dtests.method=3DtestCompareSmallPolygons -Dtests.seed=3D6369EE05= 5A678918 -Dtests.slow=3Dtrue -Dtests.locale=3Des-BO -Dtests.timezone=3DEuro= pe/Jersey -Dtests.asserts=3Dtrue -Dtests.file.encoding=3DUTF-8 > [junit4] FAILURE 0.03s J0 | RandomGeoPolygonTest.testCompareSmallPolyg= ons {seed=3D[6369EE055A678918:B5D2F4B1CA30632A]} <<< > [junit4] > Throwable #1: java.lang.AssertionError:=20 > [junit4] > Standard polygon: GeoCompositePolygon: {[GeoConvexPolygo= n: {planetmodel=3DPlanetModel.WGS84, points=3D[[lat=3D1.4379241972924144E-5= , lon=3D-3.141520309370815([X=3D-1.0011188512685139, Y=3D-7.24251615257059E= -5, Z=3D1.4395330244708275E-5])], [lat=3D-1.858900171939205E-5, lon=3D-3.14= 15059739464217([X=3D-1.001118850057461, Y=3D-8.677662511280753E-5, Z=3D-1.8= 60980009708855E-5])], [lat=3D2.7071641284581073E-5, lon=3D-3.14146917709256= 2([X=3D-1.001118845991408, Y=3D-1.2361464904363391E-4, Z=3D2.71019304951379= 82E-5])], [lat=3D8.285235549000288E-5, lon=3D-3.1414967545451287([X=3D-1.00= 11188459297669, Y=3D-9.600634121467467E-5, Z=3D8.29450550819143E-5])]], int= ernalEdges=3D{3}}, GeoConvexPolygon: {planetmodel=3DPlanetModel.WGS84, poin= ts=3D[[lat=3D1.4379241972924144E-5, lon=3D-3.141520309370815([X=3D-1.001118= 8512685139, Y=3D-7.24251615257059E-5, Z=3D1.4395330244708275E-5])], [lat=3D= 8.285235549000288E-5, lon=3D-3.1414967545451287([X=3D-1.0011188459297669, Y= =3D-9.600634121467467E-5, Z=3D8.29450550819143E-5])], [lat=3D-8.95659684634= 9593E-303, lon=3D-3.1415926535897922([X=3D-1.0011188539924791, Y=3D-1.01177= 38616818362E-15, Z=3D-8.966617970490158E-303])]], internalEdges=3D{0}}]} > [junit4] > Large polygon: GeoComplexPolygon: {planetmodel=3DPlanetM= odel.WGS84, number of shapes=3D1, address=3Dc865f21d, testPoint=3D[lat=3D2.= 114284741800425E-5, lon=3D-3.141516973708951([X=3D-1.0011188509002849, Y=3D= -7.57645554894811E-5, Z=3D2.1166503175641402E-5])], testPointInSet=3Dtrue, = shapes=3D{ {[lat=3D1.4379241972924144E-5, lon=3D-3.141520309370815([X=3D-1.= 0011188512685139, Y=3D-7.24251615257059E-5, Z=3D1.4395330244708275E-5])], [= lat=3D-1.858900171939205E-5, lon=3D-3.1415059739464217([X=3D-1.001118850057= 461, Y=3D-8.677662511280753E-5, Z=3D-1.860980009708855E-5])], [lat=3D2.7071= 641284581073E-5, lon=3D-3.141469177092562([X=3D-1.001118845991408, Y=3D-1.2= 361464904363391E-4, Z=3D2.7101930495137982E-5])], [lat=3D8.285235549000288E= -5, lon=3D-3.1414967545451287([X=3D-1.0011188459297669, Y=3D-9.600634121467= 467E-5, Z=3D8.29450550819143E-5])], [lat=3D-8.956596846349593E-303, lon=3D-= 3.1415926535897922([X=3D-1.0011188539924791, Y=3D-1.0117738616818362E-15, Z= =3D-8.966617970490158E-303])]}} > [junit4] > Point: [lat=3D-6.499661194605612E-10, lon=3D-2.028646054= 4410216([X=3D-0.4425148814082194, Y=3D-0.8980086522698344, Z=3D-6.506933366= 482957E-10])] > [junit4] > WKT: POLYGON((-179.9950336222651 -0.001065071343882595,-= 179.9929253178396 0.001551090790098614,-179.9945053894814 0.004747090292294= 721,-179.99999999999994 -5.131751980960148E-301,-179.99585498158038 8.23869= 8776459206E-4,-179.9950336222651 -0.001065071343882595)) > [junit4] > WKT: POINT(-116.23285704533717 -3.7240315471586036E-8) > [junit4] > normal polygon: false > [junit4] > large polygon: true > [junit4] > at __randomizedtesting.SeedInfo.seed([6369EE055A6= 78918:B5D2F4B1CA30632A]:0) > [junit4] > at org.apache.lucene.spatial3d.geom.RandomGeoPoly= gonTest.checkPoint(RandomGeoPolygonTest.java:227) > [junit4] > at org.apache.lucene.spatial3d.geom.RandomGeoPoly= gonTest.testComparePolygons(RandomGeoPolygonTest.java:202) > [junit4] > at org.apache.lucene.spatial3d.geom.RandomGeoPoly= gonTest.testCompareSmallPolygons(RandomGeoPolygonTest.java:109) > [junit4] > at java.lang.Thread.run(Thread.java:748) > [junit4] 2> NOTE: test params are: codec=3DLucene70, sim=3DAsserting= (org.apache.lucene.search.similarities.AssertingSimilarity@735f0010), local= e=3Des-BO, timezone=3DEurope/Jersey > [junit4] 2> NOTE: SunOS 5.11 amd64/Oracle Corporation 1.8.0_172 (64-= bit)/cpus=3D3,threads=3D1,free=3D256153464,total=3D524288000 > [junit4] 2> NOTE: All tests run in this JVM: [TestGeo3DDocValues, Ge= oCircleTest, GeoExactCircleTest, GeoPolygonTest, RandomBinaryCodecTest, Ran= domGeoPolygonTest] > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org