Opened 9 years ago
Closed 8 years ago
#2594 closed defect (fixed)
MapGuide 3.0: apache child abort on evaluating distance between MgPoints
Reported by: | gabrimonfa | Owned by: | jng |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | General | Version: | 3.0.0 |
Severity: | minor | Keywords: | |
Cc: | External ID: |
Description
Mapguide 3.0 on Centos 6 (32bit)
In our code we need to evaluate the distance between two (valid) MgPoints. We use MgPoint::Distance function. Our code does not complete, apache child aborts.
apache log shows
httpd: GeometryComponentFilter.cpp:34: virtual void geos::geom::GeometryComponentFilter::filter_ro(const geos::geom::Geometry*): Assertion `0' failed.
We probably hit this bug: https://trac.osgeo.org/geos/ticket/535
Change History (7)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Sample code that causes abort
$wkt1 = 'POINT (3 3)'; $wkt2 = 'POINT (4 4)'; $wktReaderWriter = new MgWktReaderWriter(); $point1 = $wktReaderWriter->Read($wkt1); $point2 = $wktReaderWriter->Read($wkt2); $distance = $point1->Distance($point2, null); error_log('This will not be logged...');
From apache error_log:
httpd: GeometryComponentFilter.cpp:34: virtual void geos::geom::GeometryComponentFilter::filter_ro(const geos::geom::Geometry*): Assertion `0' failed. [Tue May 31 12:11:09.460919 2016] [core:notice] [pid 16477:tid 139967641470720] AH00052: child pid 14160 exit signal Aborted (6)
comment:6 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Reopening.
While this fixes geos in isolation, it broke the build system (probably because I changed the oem build order as well)
comment:7 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fix the build system and confirmed the above PHP code sample works in the beta 2 binaries
Note:
See TracTickets
for help on using tickets.
Do you have sample code with example points where the MgPoint::Distance call causes the child abort?