[
https://issues.apache.org/jira/browse/LUCENE-8054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16261012#comment-16261012
]
Karl Wright commented on LUCENE-8054:
-------------------------------------
Here's the output of my instrumentation.
{code}
[junit4] Suite: org.apache.lucene.spatial3d.geom.GeoCircleTest
[junit4] 1> Edgepoint = [lat=-1.0023843124849925,
lon=0.7490618837385661([X=0.39370800817512397, Y=0.3660877017755803,
Z=-0.8416877339642606])]
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.4167995457372498, lon=0.7490618837385679([X=0.11208839933663924,
Y=0.10422491708779671, Z=-0.9860323400481892])] bearing 1 = 3.141592653589793
end point 2 = [lat=-1.0023843124849925,
lon=0.7490618837385661([X=0.39370800817512397, Y=0.3660877017755803,
Z=-0.8416877339642606])] bearing 2 = 6.283185307179586 middle point =
[lat=-1.1568143342909227, lon=0.2126931363898965([X=0.3925264276620478,
Y=0.08476983187716604, Z=-0.9139727708426665])] middle bearing =
4.71238898038469}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.1568143342909227, lon=0.2126931363898965([X=0.3925264276620478,
Y=0.08476983187716604, Z=-0.9139727708426665])] bearing 1 = 4.71238898038469
end point 2 = [lat=-1.0023843124849925,
lon=0.7490618837385661([X=0.39370800817512397, Y=0.3660877017755803,
Z=-0.8416877339642606])] bearing 2 = 6.283185307179586 middle point =
[lat=-1.043326466955262, lon=0.4560258695181112([X=0.4512829845443862,
Y=0.22135828041929292, Z=-0.8628818835741965])] middle bearing =
5.497787143782138}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.043326466955262, lon=0.4560258695181112([X=0.4512829845443862,
Y=0.22135828041929292, Z=-0.8628818835741965])] bearing 1 = 5.497787143782138
end point 2 = [lat=-1.0023843124849925,
lon=0.7490618837385661([X=0.39370800817512397, Y=0.3660877017755803,
Z=-0.8416877339642606])] bearing 2 = 6.283185307179586 middle point =
[lat=-1.0127673148582417, lon=0.599891511707467([X=0.43649204805694897,
Y=0.2985507636602103, Z=-0.847197651618412])] middle bearing =
5.890486225480862}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0127673148582417, lon=0.599891511707467([X=0.43649204805694897,
Y=0.2985507636602103, Z=-0.847197651618412])] bearing 1 = 5.890486225480862 end
point 2 = [lat=-1.0023843124849925,
lon=0.7490618837385661([X=0.39370800817512397, Y=0.3660877017755803,
Z=-0.8416877339642606])] bearing 2 = 6.283185307179586 middle point =
[lat=-1.0049893310453464, lon=0.6741556908984467([X=0.4182829096148721,
Y=0.33422504249975515, Z=-0.8430786899864591])] middle bearing =
6.086835766330224}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0049893310453464, lon=0.6741556908984467([X=0.4182829096148721,
Y=0.33422504249975515, Z=-0.8430786899864591])] bearing 1 = 6.086835766330224
end point 2 = [lat=-1.0023843124849925,
lon=0.7490618837385661([X=0.39370800817512397, Y=0.3660877017755803,
Z=-0.8416877339642606])] bearing 2 = 6.283185307179586 middle point =
[lat=-1.0030361472745981, lon=0.7115689671538252([X=0.4067373993405717,
Y=0.3507135750733039, Z=-0.8420363194530506])] middle bearing =
6.1850105367549055}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0127673148582417, lon=0.599891511707467([X=0.43649204805694897,
Y=0.2985507636602103, Z=-0.847197651618412])] bearing 1 = 5.890486225480862 end
point 2 = [lat=-1.0049893310453464,
lon=0.6741556908984467([X=0.4182829096148721, Y=0.33422504249975515,
Z=-0.8430786899864591])] bearing 2 = 6.086835766330224 middle point =
[lat=-1.0082369093007926, lon=0.6369025037172893([X=0.4282331206621356,
Y=0.31678129946746897, Z=-0.8448047213712183])] middle bearing =
5.988660995905542}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.043326466955262, lon=0.4560258695181112([X=0.4512829845443862,
Y=0.22135828041929292, Z=-0.8628818835741965])] bearing 1 = 5.497787143782138
end point 2 = [lat=-1.0127673148582417,
lon=0.599891511707467([X=0.43649204805694897, Y=0.2985507636602103,
Z=-0.847197651618412])] bearing 2 = 5.890486225480862 middle point =
[lat=-1.025607482497055, lon=0.5269385452500206([X=0.4476347061399733,
Y=0.260439205600348, Z=-0.8538850334536305])] middle bearing = 5.6941366846315}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.025607482497055, lon=0.5269385452500206([X=0.4476347061399733,
Y=0.260439205600348, Z=-0.8538850334536305])] bearing 1 = 5.6941366846315 end
point 2 = [lat=-1.0127673148582417,
lon=0.599891511707467([X=0.43649204805694897, Y=0.2985507636602103,
Z=-0.847197651618412])] bearing 2 = 5.890486225480862 middle point =
[lat=-1.0185644009167876, lon=0.563207410226136([X=0.442980071667477,
Y=0.27970943891565886, Z=-0.8502342472141794])] middle bearing =
5.792311455056181}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0185644009167876, lon=0.563207410226136([X=0.442980071667477,
Y=0.27970943891565886, Z=-0.8502342472141794])] bearing 1 = 5.792311455056181
end point 2 = [lat=-1.0127673148582417,
lon=0.599891511707467([X=0.43649204805694897, Y=0.2985507636602103,
Z=-0.847197651618412])] bearing 2 = 5.890486225480862 middle point =
[lat=-1.0155087097955897, lon=0.5815031771328663([X=0.4399617376666015,
Y=0.2891951996493323, Z=-0.8486371902663153])] middle bearing =
5.841398840268521}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.025607482497055, lon=0.5269385452500206([X=0.4476347061399733,
Y=0.260439205600348, Z=-0.8538850334536305])] bearing 1 = 5.6941366846315 end
point 2 = [lat=-1.0185644009167876, lon=0.563207410226136([X=0.442980071667477,
Y=0.27970943891565886, Z=-0.8502342472141794])] bearing 2 = 5.792311455056181
middle point = [lat=-1.0219316611214369,
lon=0.5450153764449563([X=0.4455397808921162, Y=0.2701163867399722,
Z=-0.8519849448939619])] middle bearing = 5.743224069843841}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.043326466955262, lon=0.4560258695181112([X=0.4512829845443862,
Y=0.22135828041929292, Z=-0.8628818835741965])] bearing 1 = 5.497787143782138
end point 2 = [lat=-1.025607482497055,
lon=0.5269385452500206([X=0.4476347061399733, Y=0.260439205600348,
Z=-0.8538850334536305])] bearing 2 = 5.6941366846315 middle point =
[lat=-1.0338713812498035, lon=0.4911781571651215([X=0.450411203875051,
Y=0.24092605432472933, Z=-0.8581145864236084])] middle bearing =
5.5959619142068195}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0338713812498035, lon=0.4911781571651215([X=0.450411203875051,
Y=0.24092605432472933, Z=-0.8581145864236084])] bearing 1 = 5.5959619142068195
end point 2 = [lat=-1.025607482497055,
lon=0.5269385452500206([X=0.4476347061399733, Y=0.260439205600348,
Z=-0.8538850334536305])] bearing 2 = 5.6941366846315 middle point =
[lat=-1.0295885777036984, lon=0.5089887341623012([X=0.44925981299228634,
Y=0.2507012589175004, Z=-0.8559299012820636])] middle bearing =
5.64504929941916}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.043326466955262, lon=0.4560258695181112([X=0.4512829845443862,
Y=0.22135828041929292, Z=-0.8628818835741965])] bearing 1 = 5.497787143782138
end point 2 = [lat=-1.0338713812498035,
lon=0.4911781571651215([X=0.450411203875051, Y=0.24092605432472933,
Z=-0.8581145864236084])] bearing 2 = 5.5959619142068195 middle point =
[lat=-1.0384520505885564, lon=0.47351947806770944([X=0.4510861273404907,
Y=0.2311371866025881, Z=-0.8604337888523875])] middle bearing =
5.546874528994479}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.1568143342909227, lon=0.2126931363898965([X=0.3925264276620478,
Y=0.08476983187716604, Z=-0.9139727708426665])] bearing 1 = 4.71238898038469
end point 2 = [lat=-1.043326466955262,
lon=0.4560258695181112([X=0.4512829845443862, Y=0.22135828041929292,
Z=-0.8628818835741965])] bearing 2 = 5.497787143782138 middle point =
[lat=-1.0923111627376951, lon=0.3238275822738945([X=0.4358362409593494,
Y=0.14628527198555277, Z=-0.8863361982505379])] middle bearing =
5.105088062083414}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0923111627376951, lon=0.3238275822738945([X=0.4358362409593494,
Y=0.14628527198555277, Z=-0.8863361982505379])] bearing 1 = 5.105088062083414
end point 2 = [lat=-1.043326466955262,
lon=0.4560258695181112([X=0.4512829845443862, Y=0.22135828041929292,
Z=-0.8628818835741965])] bearing 2 = 5.497787143782138 middle point =
[lat=-1.0656695736815376, lon=0.387987279470531([X=0.44729824062436324,
Y=0.18281260463940696, Z=-0.8738401106334024])] middle bearing =
5.301437602932776}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0656695736815376, lon=0.387987279470531([X=0.44729824062436324,
Y=0.18281260463940696, Z=-0.8738401106334024])] bearing 1 = 5.301437602932776
end point 2 = [lat=-1.043326466955262,
lon=0.4560258695181112([X=0.4512829845443862, Y=0.22135828041929292,
Z=-0.8628818835741965])] bearing 2 = 5.497787143782138 middle point =
[lat=-1.0539386871095477, lon=0.42158949873810236([X=0.4502418869262747,
Y=0.20192465699546755, Z=-0.8681407092065628])] middle bearing =
5.399612373357456}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0539386871095477, lon=0.42158949873810236([X=0.4502418869262747,
Y=0.20192465699546755, Z=-0.8681407092065628])] bearing 1 = 5.399612373357456
end point 2 = [lat=-1.043326466955262,
lon=0.4560258695181112([X=0.4512829845443862, Y=0.22135828041929292,
Z=-0.8628818835741965])] bearing 2 = 5.497787143782138 middle point =
[lat=-1.0484902358563435, lon=0.4387110784366026([X=0.45100133290372535,
Y=0.2116129330184044, Z=-0.8654529345216984])] middle bearing =
5.448699758569797}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0656695736815376, lon=0.387987279470531([X=0.44729824062436324,
Y=0.18281260463940696, Z=-0.8738401106334024])] bearing 1 = 5.301437602932776
end point 2 = [lat=-1.0539386871095477,
lon=0.42158949873810236([X=0.4502418869262747, Y=0.20192465699546755,
Z=-0.8681407092065628])] bearing 2 = 5.399612373357456 middle point =
[lat=-1.0596668743223947, lon=0.4046762523257783([X=0.44900651621085697,
Y=0.19231682330510033, Z=-0.8709386940902636])] middle bearing =
5.350524988145116}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0923111627376951, lon=0.3238275822738945([X=0.4358362409593494,
Y=0.14628527198555277, Z=-0.8863361982505379])] bearing 1 = 5.105088062083414
end point 2 = [lat=-1.0656695736815376,
lon=0.387987279470531([X=0.44729824062436324, Y=0.18281260463940696,
Z=-0.8738401106334024])] bearing 2 = 5.301437602932776 middle point =
[lat=-1.0784762132231422, lon=0.35535062566504827([X=0.4424807570584049,
Y=0.16420637582563455, Z=-0.8799249002454598])] middle bearing =
5.203262832508095}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0784762132231422, lon=0.35535062566504827([X=0.4424807570584049,
Y=0.16420637582563455, Z=-0.8799249002454598])] bearing 1 = 5.203262832508095
end point 2 = [lat=-1.0656695736815376,
lon=0.387987279470531([X=0.44729824062436324, Y=0.18281260463940696,
Z=-0.8738401106334024])] bearing 2 = 5.301437602932776 middle point =
[lat=-1.0719412819091438, lon=0.3715394398455434([X=0.44512122266873966,
Y=0.17343491931763158, Z=-0.8768379319817334])] middle bearing =
5.252350217720435}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.0923111627376951, lon=0.3238275822738945([X=0.4358362409593494,
Y=0.14628527198555277, Z=-0.8863361982505379])] bearing 1 = 5.105088062083414
end point 2 = [lat=-1.0784762132231422,
lon=0.35535062566504827([X=0.4424807570584049, Y=0.16420637582563455,
Z=-0.8799249002454598])] bearing 2 = 5.203262832508095 middle point =
[lat=-1.0852682951156827, lon=0.3394398885858507([X=0.4393832575357344,
Y=0.1551492181420051, Z=-0.8830935443269301])] middle bearing =
5.154175447295755}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.1568143342909227, lon=0.2126931363898965([X=0.3925264276620478,
Y=0.08476983187716604, Z=-0.9139727708426665])] bearing 1 = 4.71238898038469
end point 2 = [lat=-1.0923111627376951,
lon=0.3238275822738945([X=0.4358362409593494, Y=0.14628527198555277,
Z=-0.8863361982505379])] bearing 2 = 5.105088062083414 middle point =
[lat=-1.122852499107146, lon=0.2648248855113078([X=0.41734083553900236,
Y=0.11318056090656385, Z=-0.8998878350556344])] middle bearing =
4.908738521234052}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.122852499107146, lon=0.2648248855113078([X=0.41734083553900236,
Y=0.11318056090656385, Z=-0.8998878350556344])] bearing 1 = 4.908738521234052
end point 2 = [lat=-1.0923111627376951,
lon=0.3238275822738945([X=0.4358362409593494, Y=0.14628527198555277,
Z=-0.8863361982505379])] bearing 2 = 5.105088062083414 middle point =
[lat=-1.1071222886341148, lon=0.2935871695283705([X=0.42742912544156425,
Y=0.12922191082011056, Z=-0.8930120104467717])] middle bearing =
5.0069132916587336}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.1568143342909227, lon=0.2126931363898965([X=0.3925264276620478,
Y=0.08476983187716604, Z=-0.9139727708426665])] bearing 1 = 4.71238898038469
end point 2 = [lat=-1.122852499107146,
lon=0.2648248855113078([X=0.41734083553900236, Y=0.11318056090656385,
Z=-0.8998878350556344])] bearing 2 = 4.908738521234052 middle point =
[lat=-1.1394393304963417, lon=0.23776971863158813([X=0.40566898685499503,
Y=0.09831555991985201, Z=-0.9068972923770559])] middle bearing =
4.81056375080937}
[junit4] 1> Processing next slice... {end point 1 =
[lat=-1.4167995457372498, lon=0.7490618837385679([X=0.11208839933663924,
Y=0.10422491708779671, Z=-0.9860323400481892])] bearing 1 = 3.141592653589793
end point 2 = [lat=-1.1568143342909227,
lon=0.2126931363898965([X=0.3925264276620478, Y=0.08476983187716604,
Z=-0.9139727708426665])] bearing 2 = 4.71238898038469 middle point =
[lat=-1.312804505159855, lon=0.143141791092118([X=0.2520197932856809,
Y=0.03632298494493567, Z=-0.9649509184003219])] middle bearing =
3.9269908169872414}
[junit4] 2> NOTE: reproduce with: ant test -Dtestcase=GeoCircleTest
-Dtests.method=testExactCircleLUCENE8054 -Dtests.seed=F45832943772FF42
-Dtests.slow=true -Dtests.locale=ar-KW -Dtests.timezone=Europe/Nicosia
-Dtests.asserts=true -Dtests.file.encoding=US-ASCII
[junit4] ERROR 0.12s | GeoCircleTest.testExactCircleLUCENE8054 <<<
[junit4] > Throwable #1: java.lang.IllegalStateException: Shouldn't
happen: bad plane: [A=0.25717827157608514, B=0.2393088633040463,
C=-0.9362641745646698, D=-0.9769554021906537, side=1.0]
[junit4] > at
__randomizedtesting.SeedInfo.seed([F45832943772FF42:AE462B18E31EBD9F]:0)
[junit4] > at
org.apache.lucene.spatial3d.geom.GeoExactCircle.<init>(GeoExactCircle.java:115)
[junit4] > at
org.apache.lucene.spatial3d.geom.GeoCircleTest.testExactCircleLUCENE8054(GeoCircleTest.java:32)
[junit4] > at java.lang.Thread.run(Thread.java:745)
{code}
> Test failure, Geo3dRptTest
> --------------------------
>
> Key: LUCENE-8054
> URL: https://issues.apache.org/jira/browse/LUCENE-8054
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/spatial3d
> Reporter: David Smiley
> Assignee: Karl Wright
> Attachments: LUCENE-8054.patch, LUCENE_8054_randomTest.patch
>
>
> Geo3dRptTest.testOperations fails with seed 39BCAE475BCFB043
> {noformat}
> NOTE: reproduce with: ant test -Dtestcase=Geo3dRptTest
> -Dtests.method=testOperations -Dtests.seed=39BCAE475BCFB043
> -Dtests.locale=it-IT -Dtests.timezone=America/Boise -Dtests.asserts=true
> -Dtests.file.encoding=UTF-8
> java.lang.AssertionError: [Intersects] qIdx:3 Shouldn't match
> I#5:Geo3D:GeoExactCircle: {planetmodel=PlanetModel.WGS84,
> center=[lat=-1.0394053553992673,
> lon=-1.9037325881389144([X=-0.16538181742539926, Y=-0.4782462267840722,
> Z=-0.8609141805702146])], radius=1.1546166170607672(66.15465911325472),
> accuracy=4.231100485201301E-4} Q:Geo3D:GeoExactCircle:
> {planetmodel=PlanetModel.WGS84, center=[lat=-1.3165961602008989,
> lon=-1.887137823746273([X=-0.07807211790901268, Y=-0.23850901911945152,
> Z=-0.9659034153262631])], radius=1.432516663588956(82.07715890580914),
> accuracy=3.172052880854355E-11}
> at
> __randomizedtesting.SeedInfo.seed([39BCAE475BCFB043:40C6F2143E9FE395]:0)
> at org.junit.Assert.fail(Assert.java:93)
> at
> org.apache.lucene.spatial.prefix.RandomSpatialOpStrategyTestCase.fail(RandomSpatialOpStrategyTestCase.java:126)
> at
> org.apache.lucene.spatial.prefix.RandomSpatialOpStrategyTestCase.testOperation(RandomSpatialOpStrategyTestCase.java:115)
> at
> org.apache.lucene.spatial.prefix.RandomSpatialOpStrategyTestCase.testOperationRandomShapes(RandomSpatialOpStrategyTestCase.java:55)
> at
> org.apache.lucene.spatial.spatial4j.Geo3dRptTest.testOperations(Geo3dRptTest.java:117)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1737)
> at
> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:934)
> at
> com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:970)
> at
> com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:984)
> {noformat}
> CC [[email protected]] [~ivera]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]