Opened 11 months ago

Last modified 6 weeks ago

#5630 new defect

CG_Visibility crash

Reported by: robe Owned by: lbartoletti
Priority: blocker Milestone: PostGIS SFCGAL
Component: sfcgal Version: master
Keywords: Cc:

Description

Testing with SFCGAL 1.5.0

POSTGIS="3.5.0dev 3.4.0rc1-818-g6c2e935b6" [EXTENSION] PGSQL="160" GEOS="3.12.1-CAPI-1.18.1" (compiled against GEOS 3.13.0) SFCGAL="SFCGAL 1.5.0, CGAL 5.6, BOOST 1.78.0" PROJ="8.2.1 NETWORK_ENABLED=OFF URL_ENDPOINT=https://cdn.proj.org USER_WRITABLE_DIRECTORY=C:\Users\lr\AppData\Local/proj DATABASE_PATH=C:\ming64gcc81\projects\proj\rel-proj-8.2.1w64gcc81/share/proj/proj.db" LIBXML="2.9.14" LIBJSON="0.12" LIBPROTOBUF="1.2.1" WAGYU="0.5.0 (Internal)"	PostgreSQL 16.0 on x86_64-w64-mingw32, compiled by gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0, 64-bit
SELECT CG_Visibility('POLYGON((24.2222222 40,24.183792760806462 39.609819355967744,24.069981265022573 39.23463313526982,23.88516142460509 38.8888595339608,23.636435762373097 38.58578643762691,23.333362666039207 38.33706077539491,22.98758906473018 38.15224093497743,
22.612402844032257 38.038429439193536,22.2222222 38,21.832041555967745 38.038429439193536,21.45685533526982 38.15224093497743,21.1110817339608 38.33706077539491,20.808008637626905 38.58578643762691,20.55928297539491 38.8888595339608,20.37446313497743 39.23463313526982,
20.26065163919354 39.609819355967744,20.2222222 40,20.26065163919354 40.390180644032256,20.37446313497743 40.76536686473018,20.55928297539491 41.1111404660392,20.808008637626905 41.41421356237309,21.111081733960795 41.66293922460509,21.45685533526982 41.84775906502257,21.832041555967745 41.96157056080646,22.2222222 42,
22.612402844032257 41.961570560806464,
22.98758906473018 41.84775906502257,
23.333362666039204 41.66293922460509,23.636435762373097 41.41421356237309
,23.88516142460509 41.1111404660392
,24.069981265022573 40.76536686473018
,24.183792760806462 40.390180644032256,24.2222222 40))'::geometry
,	'POINT Z (-10 60 1)'::geometry)

Change History (2)

comment:1 by lbartoletti, 11 months ago

Here, indeed, the case is not handled properly, and CGAL will exit, dragging everyone along (depending on its compilation parameter - https://gitlab.com/sfcgal/SFCGAL/-/issues/246#note_759865079). I have added the various cases in a merge request. In this instance, it will return the standard error message along with the WKT and the information 'Cannot find corresponding face.'"

comment:2 by robe, 6 weeks ago

Milestone: PostGIS 3.5.0PostGIS SFCGAL
Note: See TracTickets for help on using tickets.