[PostGIS] #5949: SFCGAL 2.2.0 crashing on visibility test

PostGIS trac at osgeo.org
Sat Jul 19 22:36:22 PDT 2025


#5949: SFCGAL 2.2.0 crashing on visibility test
----------------------+-----------------------------
  Reporter:  robe     |      Owner:  Loïc Bartoletti
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 3.6.0
 Component:  sfcgal   |    Version:  3.5.x
Resolution:           |   Keywords:
----------------------+-----------------------------

Old description:

> {{{
> Died at ./regress/run_test.pl line 979.
>  sfcgal/regress/visibility .. failed (psql exited with an error:
> /tmp/pgis_reg/test_174_out)
> -----------------------------------------------------------------------------
> Visibility point in polygon|POLYGON((3 2,1 2,0 4,0 0,3 2))
> Visibility point in polygon with hole|POLYGON((0 1.67,0.2 1.8,0.9
> 1.8,1.93 1.29,3 2,1 2,0 4,0 1.67))
> Visibility segment in polygon|POLYGON((4 0,4 4,1 2,0 1.33,0 0,3 2,4 0))
> Visibility segment in polygon with hole|POLYGON((19 -2,12 6,14 14,10.43
> 7.57,11 7,11 6,10 6,9.56 6,9 5,1 2,4.67 2.33,8 4,10 3,9.87 2.81,12 3,19
> -2))
> psql:visibility.sql:5: NOTICE:  During visibility(A, B) :
> psql:visibility.sql:5: NOTICE:    with A: POLYGON EMPTY
> psql:visibility.sql:5: NOTICE:    and B: POINT (1/1 2/1)
> psql:visibility.sql:5: ERROR:  Can not find corresponding face.
> Visibility point empty point|POLYGON((0 10,0 0,10 0,10 10,0 10))
> psql:visibility.sql:7: server closed the connection unexpectedly
>         This probably means the server terminated abnormally
>         before or while processing the request.
> psql:visibility.sql:7: error: connection to server was lost
> }}}

New description:

 {{{
 Died at ./regress/run_test.pl line 979.
  sfcgal/regress/visibility .. failed (psql exited with an error:
 /tmp/pgis_reg/test_174_out)
 -----------------------------------------------------------------------------
 Visibility point in polygon|POLYGON((3 2,1 2,0 4,0 0,3 2))
 Visibility point in polygon with hole|POLYGON((0 1.67,0.2 1.8,0.9 1.8,1.93
 1.29,3 2,1 2,0 4,0 1.67))
 Visibility segment in polygon|POLYGON((4 0,4 4,1 2,0 1.33,0 0,3 2,4 0))
 Visibility segment in polygon with hole|POLYGON((19 -2,12 6,14 14,10.43
 7.57,11 7,11 6,10 6,9.56 6,9 5,1 2,4.67 2.33,8 4,10 3,9.87 2.81,12 3,19
 -2))
 psql:visibility.sql:5: NOTICE:  During visibility(A, B) :
 psql:visibility.sql:5: NOTICE:    with A: POLYGON EMPTY
 psql:visibility.sql:5: NOTICE:    and B: POINT (1/1 2/1)
 psql:visibility.sql:5: ERROR:  Can not find corresponding face.
 Visibility point empty point|POLYGON((0 10,0 0,10 0,10 10,0 10))
 psql:visibility.sql:7: server closed the connection unexpectedly
         This probably means the server terminated abnormally
         before or while processing the request.
 psql:visibility.sql:7: error: connection to server was lost
 }}}

--
Comment (by robe):

 I'm going to rebuild the docker image to see if addition of validatity
 fixes this.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5949#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list