Opened 13 years ago

Closed 13 years ago

#34248 closed defect (fixed)

py27-matplotlib-basemap: fails with new geos-3.3.2_0 upgrade

Reported by: petrus.hyvonen@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: geos, py27-matplotlib-basemap

Description (last modified by ryandesign (Ryan Carsten Schmidt))

py27-matplotlib-basemap fails after the geos-3.3.2_0 upgrade.

m = Basemap(projection='mill',lon_0=0)

Crash

"Assertion failed: (0), function query, file AbstractSTRtree.cpp, line 286."

Not sure if the dump if of help:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff93cbbce2 __pthread_kill + 10
1   libsystem_c.dylib             	0x00007fff95a257d2 pthread_kill + 95
2   libsystem_c.dylib             	0x00007fff95a16a7a abort + 143
3   libsystem_c.dylib             	0x00007fff95a495de __assert_rtn + 146
4   libgeos-3.3.2.dylib           	0x000000010e7eff26 geos::index::strtree::AbstractSTRtree::query(void const*, geos::index::strtree::AbstractNode const*, std::vector<void*, std::allocator<void*> >*) + 102
5   libgeos-3.3.2.dylib           	0x000000010e801f4b geos::noding::MCIndexNoder::intersectChains() + 219
6   libgeos-3.3.2.dylib           	0x000000010e80ba16 geos::operation::buffer::BufferBuilder::computeNodedEdges(std::vector<geos::noding::SegmentString*, std::allocator<geos::noding::SegmentString*> >&, geos::geom::PrecisionModel const*) + 54
7   libgeos-3.3.2.dylib           	0x000000010e80b4b8 geos::operation::buffer::BufferBuilder::buffer(geos::geom::Geometry const*, double) + 200
8   libgeos-3.3.2.dylib           	0x000000010e80d71d geos::operation::buffer::BufferOp::bufferOriginalPrecision() + 221
9   libgeos-3.3.2.dylib           	0x000000010e80d470 geos::operation::buffer::BufferOp::bufferOp(geos::geom::Geometry const*, double, int, int) + 112
10  libgeos-3.3.2.dylib           	0x000000010e836713 geos::simplify::DPTransformer::transformPolygon(geos::geom::Polygon const*, geos::geom::Geometry const*) + 131
11  libgeos-3.3.2.dylib           	0x000000010e7d3119 geos::geom::util::GeometryTransformer::transform(geos::geom::Geometry const*) + 505
12  libgeos-3.3.2.dylib           	0x000000010e836818 geos::simplify::DouglasPeuckerSimplifier::simplify(geos::geom::Geometry const*, double) + 88
13  libgeos_c.1.dylib             	0x000000010e51cbc6 GEOSSimplify_r + 38
14  _geoslib.so                   	0x000000010e508709 __pyx_pf_8_geoslib_12BaseGeometry_3simplify + 105
15  org.python.python             	0x000000010a004181 PyEval_EvalFrameEx + 9185
16  org.python.python             	0x000000010a009132 fast_function + 178
17  org.python.python             	0x000000010a0043fb PyEval_EvalFrameEx + 9819
18  org.python.python             	0x000000010a001d4f PyEval_EvalCodeEx + 2079
19  org.python.python             	0x0000000109f9430b function_call + 347
20  org.python.python             	0x0000000109f6f921 PyObject_Call + 97
21  org.python.python             	0x0000000109f7b876 instancemethod_call + 518
22  org.python.python             	0x0000000109f6f921 PyObject_Call + 97
23  org.python.python             	0x0000000109fcb1eb slot_tp_init + 187
24  org.python.python             	0x0000000109fc2764 type_call + 372
25  org.python.python             	0x0000000109f6f921 PyObject_Call + 97
26  org.python.python             	0x000000010a00462a PyEval_EvalFrameEx + 10378
27  org.python.python             	0x000000010a001d4f PyEval_EvalCodeEx + 2079
28  org.python.python             	0x000000010a001526 PyEval_EvalCode + 54
29  org.python.python             	0x000000010a028d4e PyRun_InteractiveOneFlags + 558
30  org.python.python             	0x000000010a02879e PyRun_InteractiveLoopFlags + 206
31  org.python.python             	0x000000010a028622 PyRun_AnyFileExFlags + 114
32  org.python.python             	0x000000010a03ca82 Py_Main + 2914
33  org.python.python             	0x0000000109f5bf24 0x109f5b000 + 3876

Attachments (1)

basemap_fail.py (445 bytes) - added by petrus.hyvonen@… 13 years ago.
Simple example that fails

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to ram@…
Summary: basemap fails with new geos-3.3.2_0 upgradepy27-matplotlib-basemap: fails with new geos-3.3.2_0 upgrade

comment:2 Changed 13 years ago by skymoo (Adam Mercer)

Status: newassigned

Can you attach an example script that fails with this as none of the scripts I have fail. I'm running Lion and have the following versions of geos and py27-matplotlib-basemap installed:

$ port installed py27-matplotlib-basemap geos
The following ports are currently installed:
  geos @3.3.2_0 (active)
  py27-matplotlib-basemap @1.0.2_1 (active)
$

comment:3 Changed 13 years ago by petrus.hyvonen@…

My versions: port installed py27-matplotlib-basemap geos

The following ports are currently installed:

geos @3.3.1_0 (active) geos @3.3.2_0 py27-matplotlib-basemap @1.0.2_1 (active)

To reproduce:

The following ports are currently installed:

geos @3.3.1_0 geos @3.3.2_0 (active)

Python 2.7.3 (default, Apr 18 2012, 23:34:59) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.45)] on darwin Type "help", "copyright", "credits" or "license" for more information.

from mpl_toolkits.basemap import Basemap m = Basemap()

Assertion failed: (0), function query, file AbstractSTRtree.cpp, line 286. Abort trap: 6

Changed 13 years ago by petrus.hyvonen@…

Attachment: basemap_fail.py added

Simple example that fails

comment:4 Changed 13 years ago by skymoo (Adam Mercer)

Works for me:

$ python
Python 2.7.3 (default, Apr 19 2012, 22:23:11) 
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from mpl_toolkits.basemap import Basemap
>>> m = Basemap()
>>>

Can you try reinstalling py27-matplotlib-basemap and see if that helps?

comment:5 Changed 13 years ago by petrus.hyvonen@…

Works.

Uninstalled py27-matplotlib-basemap geos and installed again. works fine now. thanks.

comment:6 Changed 13 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: assignedclosed

Great, now I understand why I didn't see the problem but you did. I'm running a beta of the next base release which has support for checking if a rebuild is needed due to changes in ABI/API for upgraded ports.

I've bumped the revision of py*-matplotlib-basemap in r92490, to force a rebuild against the new geos

Note: See TracTickets for help on using tickets.