SciTools / cartopy

Cartopy - a cartographic python library with matplotlib support
https://scitools.org.uk/cartopy/docs/latest
BSD 3-Clause "New" or "Revised" License
1.39k stars 359 forks source link

Cartopy crash with libgeos 1.17 and Shapely 1.18 #2092

Closed f2re closed 1 year ago

f2re commented 1 year ago

Description

I have crashed cartopy on Python 3.10.7 and MacOS 12.5.1

Code to reproduce

import cartopy.crs as ccrs
import numpy as np
import matplotlib.pyplot as plt

ax = plt.axes(projection=ccrs.PlateCarree())
ax.stock_img()
ax.coastlines()

plt.show()

Traceback

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Python [12328]
Path:                  /usr/local/Cellar/python@3.10/3.10.7/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               3.10.7 (3.10.7)
Code Type:             X86-64 (Native)
Parent Process:        zsh [727]
Responsible:           iTerm2 [525]
User ID:               501

Date/Time:             2022-10-06 08:19:43.6560 +0300
OS Version:            macOS 12.5.1 (21G83)
Report Version:        12
Anonymous UUID:        07E9E253-82F5-517A-AB8A-073BA39A9739

Sleep/Wake UUID:       12FF489C-DD4A-4625-B4E6-372E3ED598BF

Time Awake Since Boot: 63000 seconds
Time Since Wake:       3725 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000000000008c
Exception Codes:       0x0000000000000001, 0x000000000000008c
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [12328]

VM Region Info: 0x8c is not in any region.  Bytes before following region: 140737486860148
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      VM_ALLOCATE              7fffffe93000-7fffffe94000 [    4K] r-x/r-x SM=ALI  

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libgeos_c.1.17.0.dylib                 0x11cb2450c GEOSCoordSeq_create_r + 201
1   trace.cpython-310-darwin.so            0x11caed9b0 __pyx_f_7cartopy_5trace_15LineAccumulator_as_geom(__pyx_obj_7cartopy_5trace_LineAccumulator*, GEOSContextHandle_HS*) + 976
2   trace.cpython-310-darwin.so            0x11caf7ffb __pyx_pw_7cartopy_5trace_3project_linear(_object*, _object*, _object*) + 3851
3   Python                                 0x109a7bb33 cfunction_call + 52
4   Python                                 0x109a2e403 _PyObject_MakeTpCall + 132
5   Python                                 0x109b28813 call_function + 292
6   Python                                 0x109b20f39 _PyEval_EvalFrameDefault + 29746
7   Python                                 0x109b1884f _PyEval_Vector + 342
8   Python                                 0x109b2879b call_function + 172
9   Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
10  Python                                 0x109b1884f _PyEval_Vector + 342
11  Python                                 0x109a3189a method_vectorcall + 160
12  Python                                 0x109b2879b call_function + 172
13  Python                                 0x109b1e90a _PyEval_EvalFrameDefault + 19971
14  Python                                 0x109b1884f _PyEval_Vector + 342
15  Python                                 0x109b2879b call_function + 172
16  Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
17  Python                                 0x109b1884f _PyEval_Vector + 342
18  Python                                 0x109b2879b call_function + 172
19  Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
20  Python                                 0x109b1884f _PyEval_Vector + 342
21  Python                                 0x109b2879b call_function + 172
22  Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
23  Python                                 0x109b1884f _PyEval_Vector + 342
24  Python                                 0x109b2879b call_function + 172
25  Python                                 0x109b1e90a _PyEval_EvalFrameDefault + 19971
26  Python                                 0x109b1884f _PyEval_Vector + 342
27  Python                                 0x109b2879b call_function + 172
28  Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
29  Python                                 0x109b1884f _PyEval_Vector + 342
30  Python                                 0x109b2879b call_function + 172
31  Python                                 0x109b1e90a _PyEval_EvalFrameDefault + 19971
32  Python                                 0x109b1884f _PyEval_Vector + 342
33  Python                                 0x109a3189a method_vectorcall + 160
34  Python                                 0x109b2879b call_function + 172
35  Python                                 0x109b20f39 _PyEval_EvalFrameDefault + 29746
36  Python                                 0x109b1884f _PyEval_Vector + 342
37  Python                                 0x109b2879b call_function + 172
38  Python                                 0x109b1e90a _PyEval_EvalFrameDefault + 19971
39  Python                                 0x109b1884f _PyEval_Vector + 342
40  Python                                 0x109b2879b call_function + 172
41  Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
42  Python                                 0x109b1884f _PyEval_Vector + 342
43  Python                                 0x109b2879b call_function + 172
44  Python                                 0x109b1e90a _PyEval_EvalFrameDefault + 19971
45  Python                                 0x109b1884f _PyEval_Vector + 342
46  Python                                 0x109b2879b call_function + 172
47  Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
48  Python                                 0x109b1884f _PyEval_Vector + 342
49  Python                                 0x109b2879b call_function + 172
50  Python                                 0x109b20f39 _PyEval_EvalFrameDefault + 29746
51  Python                                 0x109b1884f _PyEval_Vector + 342
52  Python                                 0x109b2879b call_function + 172
53  Python                                 0x109b1e90a _PyEval_EvalFrameDefault + 19971
54  Python                                 0x109b1884f _PyEval_Vector + 342
55  Python                                 0x109a3189a method_vectorcall + 160
56  Python                                 0x109a2ed95 PyVectorcall_Call + 164
57  Python                                 0x109b1a789 _PyEval_EvalFrameDefault + 3202
58  Python                                 0x109b1884f _PyEval_Vector + 342
59  Python                                 0x109b2879b call_function + 172
60  Python                                 0x109b1e90a _PyEval_EvalFrameDefault + 19971
61  Python                                 0x109b1884f _PyEval_Vector + 342
62  Python                                 0x109b2879b call_function + 172
63  Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
64  Python                                 0x109b1884f _PyEval_Vector + 342
65  Python                                 0x109b2879b call_function + 172
66  Python                                 0x109b20f39 _PyEval_EvalFrameDefault + 29746
67  Python                                 0x109b1884f _PyEval_Vector + 342
68  Python                                 0x109b2879b call_function + 172
69  Python                                 0x109b1e90a _PyEval_EvalFrameDefault + 19971
70  Python                                 0x109b1884f _PyEval_Vector + 342
71  Python                                 0x109b1a789 _PyEval_EvalFrameDefault + 3202
72  Python                                 0x109b1884f _PyEval_Vector + 342
73  Python                                 0x109b2879b call_function + 172
74  Python                                 0x109b1f912 _PyEval_EvalFrameDefault + 24075
75  Python                                 0x109b1884f _PyEval_Vector + 342
76  Python                                 0x109a319db method_vectorcall + 481
77  Python                                 0x109a2f506 _PyObject_CallFunctionVa + 414
78  Python                                 0x109a2fcf0 _PyObject_CallMethod_SizeT + 196
79  _macosx.cpython-310-darwin.so          0x110e9a4a4 -[View drawRect:] + 100
80  AppKit                              0x7ff82183bc80 _NSViewDrawRect + 121
81  AppKit                              0x7ff821f57ccd -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 1828
82  AppKit                              0x7ff82183b391 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 747
83  AppKit                              0x7ff82183afd0 -[NSView(NSLayerKitGlue) drawLayer:inContext:] + 290
84  QuartzCore                          0x7ff8262afa7b CABackingStoreUpdate_ + 594
85  QuartzCore                          0x7ff8263139d9 invocation function for block in CA::Layer::display_() + 53
86  QuartzCore                          0x7ff8262aeaa1 -[CALayer _display] + 2379
87  AppKit                              0x7ff82183ae05 -[_NSBackingLayer display] + 462
88  AppKit                              0x7ff8217b03ad -[_NSViewBackingLayer display] + 554
89  QuartzCore                          0x7ff8262ada07 CA::Layer::display_if_needed(CA::Transaction*) + 873
90  QuartzCore                          0x7ff8264052aa CA::Context::commit_transaction(CA::Transaction*, double, double*) + 640
91  QuartzCore                          0x7ff82628ee6d CA::Transaction::commit() + 777
92  AppKit                              0x7ff82184c1d1 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285
93  AppKit                              0x7ff821f93f5c ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
94  CoreFoundation                      0x7ff81ed70725 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
95  CoreFoundation                      0x7ff81ed705ba __CFRunLoopDoObservers + 543
96  CoreFoundation                      0x7ff81ed6fa3c __CFRunLoopRun + 840
97  CoreFoundation                      0x7ff81ed6f034 CFRunLoopRunSpecific + 562
98  HIToolbox                           0x7ff827e8b5e6 RunCurrentEventLoopInMode + 292
99  HIToolbox                           0x7ff827e8b213 ReceiveNextEventCommon + 283
100 HIToolbox                           0x7ff827e8b0e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
101 AppKit                              0x7ff8216dffad _DPSNextEvent + 927
102 AppKit                              0x7ff8216de66a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
103 AppKit                              0x7ff8216d0d19 -[NSApplication run] + 586
104 _macosx.cpython-310-darwin.so          0x110e9bd62 show + 162
105 Python                                 0x109a7c57a cfunction_vectorcall_NOARGS + 101
106 Python                                 0x109b2879b call_function + 172
107 Python                                 0x109b20f39 _PyEval_EvalFrameDefault + 29746
108 Python                                 0x109b1884f _PyEval_Vector + 342
109 Python                                 0x109b2879b call_function + 172
110 Python                                 0x109b20f39 _PyEval_EvalFrameDefault + 29746
111 Python                                 0x109b1884f _PyEval_Vector + 342
112 Python                                 0x109a319db method_vectorcall + 481
113 Python                                 0x109b1a789 _PyEval_EvalFrameDefault + 3202
114 Python                                 0x109b1884f _PyEval_Vector + 342
115 Python                                 0x109b2879b call_function + 172
116 Python                                 0x109b20f39 _PyEval_EvalFrameDefault + 29746
117 Python                                 0x109b1884f _PyEval_Vector + 342
118 Python                                 0x109b186e3 PyEval_EvalCode + 114
119 Python                                 0x109b778ae run_eval_code_obj + 72
120 Python                                 0x109b7783e run_mod + 96
121 Python                                 0x109b77528 pyrun_file + 133
122 Python                                 0x109b76f48 _PyRun_SimpleFileObject + 275
123 Python                                 0x109b765c3 _PyRun_AnyFileObject + 155
124 Python                                 0x109b984b8 pymain_run_file_obj + 234
125 Python                                 0x109b97c77 pymain_run_file + 85
126 Python                                 0x109b9762d Py_RunMain + 987
127 Python                                 0x109b988dc Py_BytesMain + 42
128 dyld                                   0x11181d52e start + 462

Thread 1:
0   libsystem_kernel.dylib              0x7ff81ec713ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff81ecaba6f _pthread_cond_wait + 1249
2   libopenblas.0.dylib                    0x111c08a9f blas_thread_server + 207
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 2:
0   libsystem_kernel.dylib              0x7ff81ec713ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff81ecaba6f _pthread_cond_wait + 1249
2   libopenblas.0.dylib                    0x111c08a9f blas_thread_server + 207
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 3:
0   libsystem_kernel.dylib              0x7ff81ec713ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff81ecaba6f _pthread_cond_wait + 1249
2   libopenblas.0.dylib                    0x111c08a9f blas_thread_server + 207
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 4:
0   libsystem_kernel.dylib              0x7ff81ec6e9b6 semaphore_wait_trap + 10
1   duckdb.cpython-310-darwin.so           0x11f50c366 duckdb::TaskScheduler::ExecuteForever(std::__1::atomic<bool>*) + 246
2   duckdb.cpython-310-darwin.so           0x11f510e60 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(duckdb::TaskScheduler*, std::__1::atomic<bool>*), duckdb::TaskScheduler*, std::__1::atomic<bool>*> >(void*) + 48
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 5:
0   libsystem_kernel.dylib              0x7ff81ec6e9b6 semaphore_wait_trap + 10
1   duckdb.cpython-310-darwin.so           0x11f50c366 duckdb::TaskScheduler::ExecuteForever(std::__1::atomic<bool>*) + 246
2   duckdb.cpython-310-darwin.so           0x11f510e60 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(duckdb::TaskScheduler*, std::__1::atomic<bool>*), duckdb::TaskScheduler*, std::__1::atomic<bool>*> >(void*) + 48
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 6:
0   libsystem_kernel.dylib              0x7ff81ec6e9b6 semaphore_wait_trap + 10
1   duckdb.cpython-310-darwin.so           0x11f50c366 duckdb::TaskScheduler::ExecuteForever(std::__1::atomic<bool>*) + 246
2   duckdb.cpython-310-darwin.so           0x11f510e60 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(duckdb::TaskScheduler*, std::__1::atomic<bool>*), duckdb::TaskScheduler*, std::__1::atomic<bool>*> >(void*) + 48
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 7:
0   libsystem_kernel.dylib              0x7ff81ec6e9b6 semaphore_wait_trap + 10
1   duckdb.cpython-310-darwin.so           0x11f50c366 duckdb::TaskScheduler::ExecuteForever(std::__1::atomic<bool>*) + 246
2   duckdb.cpython-310-darwin.so           0x11f510e60 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(duckdb::TaskScheduler*, std::__1::atomic<bool>*), duckdb::TaskScheduler*, std::__1::atomic<bool>*> >(void*) + 48
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 8:
0   libsystem_kernel.dylib              0x7ff81ec6e9b6 semaphore_wait_trap + 10
1   duckdb.cpython-310-darwin.so           0x11f50c366 duckdb::TaskScheduler::ExecuteForever(std::__1::atomic<bool>*) + 246
2   duckdb.cpython-310-darwin.so           0x11f510e60 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(duckdb::TaskScheduler*, std::__1::atomic<bool>*), duckdb::TaskScheduler*, std::__1::atomic<bool>*> >(void*) + 48
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 9:
0   libsystem_kernel.dylib              0x7ff81ec6e9b6 semaphore_wait_trap + 10
1   duckdb.cpython-310-darwin.so           0x11f50c366 duckdb::TaskScheduler::ExecuteForever(std::__1::atomic<bool>*) + 246
2   duckdb.cpython-310-darwin.so           0x11f510e60 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(duckdb::TaskScheduler*, std::__1::atomic<bool>*), duckdb::TaskScheduler*, std::__1::atomic<bool>*> >(void*) + 48
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 10:
0   libsystem_kernel.dylib              0x7ff81ec6e9b6 semaphore_wait_trap + 10
1   duckdb.cpython-310-darwin.so           0x11f50c366 duckdb::TaskScheduler::ExecuteForever(std::__1::atomic<bool>*) + 246
2   duckdb.cpython-310-darwin.so           0x11f510e60 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(duckdb::TaskScheduler*, std::__1::atomic<bool>*), duckdb::TaskScheduler*, std::__1::atomic<bool>*> >(void*) + 48
3   libsystem_pthread.dylib             0x7ff81ecab4e1 _pthread_start + 125
4   libsystem_pthread.dylib             0x7ff81eca6f6b thread_start + 15

Thread 11:
0   libsystem_pthread.dylib             0x7ff81eca6f48 start_wqthread + 0

Thread 12:
0   libsystem_pthread.dylib             0x7ff81eca6f48 start_wqthread + 0

Thread 13:
0   libsystem_pthread.dylib             0x7ff81eca6f48 start_wqthread + 0

Thread 14:
0   libsystem_pthread.dylib             0x7ff81eca6f48 start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x000000000000008c  rbx: 0x00007ff6d6a6d200  rcx: 0x0000000000000002  rdx: 0x000000000000025e
  rdi: 0x00007ff6d6a6d200  rsi: 0x000000000000025e  rbp: 0x00007ff7b69a7040  rsp: 0x00007ff7b69a7020
   r8: 0x0000000000000e01   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x000060000041a418
  r12: 0x000000011d33f9d8  r13: 0x0000600002280c60  r14: 0x0000000000000002  r15: 0x000000011d33f9c0
  rip: 0x000000011cb2450c  rfl: 0x0000000000010202  cr2: 0x000000000000008c

Logical CPU:     6
Error Code:      0x00000004 (no mapping for user data read)
Trap Number:     14

Thread 0 instruction stream:
  89 41 20 e9 b4 00 00 00-bf 40 00 00 00 e8 34 c2  .A ......@....4.
  00 00 48 89 c1 48 8b 05-50 12 01 00 48 83 c0 10  ..H..H..P...H...
  48 89 01 48 8d 41 08 48-89 ca 48 83 c2 38 0f 57  H..H.A.H..H..8.W
  c0 48 be 00 00 00 00 00-00 f8 7f 0f 11 00 48 89  .H............H.
  70 10 48 83 c0 18 48 39-d0 75 f0 44 89 f0 48 89  p.H...H9.u.D..H.
  41 38 eb 68 48 8b 03 48-8b 40 28 89 f2 44 89 f1  A8.hH..H.@(..D..
 [4c]8b 00 48 8d 7d e8 48-89 c6 41 ff 50 18 48 8b  L..H.}.H..A.P.H. <==
  4d e8 eb 48 49 89 d6 48-89 c7 e8 d9 c1 00 00 41  M..HI..H.......A
  83 fe 02 75 1f 48 8b 08-48 89 c7 ff 51 10 48 8d  ...u.H..H...Q.H.
  35 bd f9 00 00 48 89 df-48 89 c2 31 c0 e8 dc f0  5....H..H..1....
  ff ff eb 11 48 8d 35 c4-f9 00 00 48 89 df 31 c0  ....H.5....H..1.
  e8 c9 f0 ff ff e8 a4 c1-00 00 31 c9 48 89 c8 48  ..........1.H..H

Binary Images:
       0x11cb19000 -        0x11cb34fff libgeos_c.1.17.0.dylib (*) <ab226bc0-ab07-3181-98b6-1229afac5a88> /usr/local/Cellar/geos/3.11.0/lib/libgeos_c.1.17.0.dylib
       0x11cae5000 -        0x11cafcfff trace.cpython-310-darwin.so (*) <b8a2482c-8c5b-349d-92cb-b96720a971e3> /usr/local/lib/python3.10/site-packages/cartopy/trace.cpython-310-darwin.so
       0x1099c3000 -        0x109c96fff org.python.python (3.10.7, (c) 2001-2021 Python Software Foundation.) <471ff96c-3837-3879-90b4-73e40425cf7e> /usr/local/Cellar/python@3.10/3.10.7/Frameworks/Python.framework/Versions/3.10/Python
       0x110e95000 -        0x110ea0fff _macosx.cpython-310-darwin.so (*) <5fb4e2f8-65e8-39e7-9147-ff0e9566099c> /usr/local/lib/python3.10/site-packages/matplotlib/backends/_macosx.cpython-310-darwin.so
    0x7ff8216a1000 -     0x7ff822530fff com.apple.AppKit (6.9) <bcb46e9b-acd5-3b26-878f-a3988bc5df7e> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7ff82628c000 -     0x7ff82659efff com.apple.QuartzCore (1.11) <e3b63002-28fd-32aa-adf5-ce5691c3a954> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7ff81ecf2000 -     0x7ff81f1f2fff com.apple.CoreFoundation (6.9) <32d2d187-4e52-376e-bc07-245a48c37e2b> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff827e5d000 -     0x7ff828150fff com.apple.HIToolbox (2.1.1) <95eab511-8fc1-353a-ac8a-26aa19032e2e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x111818000 -        0x111883fff dyld (*) <f71fb3ca-5fcc-3577-9457-b047888a46d1> /usr/lib/dyld
    0x7ff81ec6d000 -     0x7ff81eca4fff libsystem_kernel.dylib (*) <792406fe-2224-3c14-ba9f-f076fd7839d2> /usr/lib/system/libsystem_kernel.dylib
    0x7ff81eca5000 -     0x7ff81ecb0fff libsystem_pthread.dylib (*) <f32b6d06-b156-3da0-b086-a31cf011362b> /usr/lib/system/libsystem_pthread.dylib
       0x1118d0000 -        0x115483fff libopenblas.0.dylib (*) <9112000d-375c-34f0-9a66-9d68f91a12cd> /usr/local/lib/python3.10/site-packages/numpy/.dylibs/libopenblas.0.dylib
       0x11e11f000 -        0x120c0afff duckdb.cpython-310-darwin.so (*) <09772ccf-6ef0-3ae9-bbc9-34e1910fbe88> /usr/local/lib/python3.10/site-packages/duckdb.cpython-310-darwin.so
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%)
Writable regions: Total=853.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=853.5M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
CG image                            40K        6 
ColorSync                          208K       24 
CoreAnimation                     1320K        3 
CoreUI image data                   60K        1 
Foundation                          16K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           262.8M       78 
MALLOC guard page                   32K        8 
MALLOC_LARGE (reserved)            384K        1         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                         60K       15 
Stack                             23.1M       15 
VM_ALLOCATE                      149.0M       63 
VM_ALLOCATE (reserved)            32.0M        1         reserved VM address space (unallocated)
__CTF                               756        1 
__DATA                            23.3M      464 
__DATA_CONST                      13.5M      227 
__DATA_DIRTY                       534K       99 
__FONT_DATA                          4K        1 
__LINKEDIT                       675.7M      157 
__OBJC_RO                         82.8M        1 
__OBJC_RW                         3200K        2 
__TEXT                           370.3M      462 
__UNICODE                          592K        1 
dyld private memory               1056K        3 
mapped file                       63.0M       13 
shared memory                      760K       14 
===========                     =======  ======= 
TOTAL                              2.0G     1664 
TOTAL, minus reserved VM space     1.6G     1664 
Full environment definition ### Operating system MacOS 12.5.1 ### Cartopy version Cartopy 0.21.1.dev32+g1198715 ### pip list ``` Package Version ------------------------ --------------------- alembic 1.6.5 anyio 3.6.1 APScheduler 3.6.3 Authlib 0.15.4 bcrypt 4.0.0 beautifulsoup4 4.11.1 blinker 1.4 boto3 1.24.17 botocore 1.27.17 bs4 0.0.1 cachetools 4.2.2 Cartopy 0.21.1.dev32+g1198715 certifi 2021.5.30 cffi 1.14.6 chardet 4.0.0 click 8.0.1 clickhouse-driver 0.2.4 colorama 0.4.4 cryptography 3.4.7 cycler 0.11.0 Cython 0.29.32 duckdb 0.5.0 Flask 2.0.1 Flask-Admin 1.5.8 Flask-Mail 0.9.1 Flask-Migrate 3.0.1 flask-msearch 0.2.9.2 Flask-SQLAlchemy 2.5.1 Flask-WTF 0.15.1 fonttools 4.28.2 google-api-core 1.31.0 google-auth 1.32.1 google-cloud-core 1.7.1 google-cloud-storage 1.40.0 google-crc32c 1.1.2 google-resumable-media 1.3.1 googleapis-common-protos 1.53.0 greenlet 1.1.0 gunicorn 20.1.0 h11 0.12.0 httpcore 0.15.0 httpx 0.23.0 idna 2.10 itsdangerous 2.0.1 Jinja2 3.0.1 jmespath 1.0.1 kiwisolver 1.3.2 loginpass 0.5 Mako 1.1.4 MarkupSafe 2.0.1 matplotlib 3.5.0 numpy 1.21.4 ordered-set 4.0.2 packaging 21.0 pandas 1.3.4 paramiko 2.11.0 Pillow 8.3.1 pip 22.2.2 protobuf 3.17.3 psycopg2 2.9.1 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycparser 2.20 PyLaTeX 1.4.1 pymongo 4.2.0 PyNaCl 1.5.0 pyparsing 2.4.7 pyproj 3.4.0 pyshp 2.3.1 pyTelegramBotAPI 4.7.0 python-dateutil 2.8.1 python-dotenv 0.21.0 python-editor 1.0.4 python-telegram-bot 13.14 pytube 12.1.0 pytz 2021.1 pytz-deprecation-shim 0.1.0.post0 PyYAML 6.0 requests 2.25.1 rfc3986 1.5.0 rsa 4.7.2 s3transfer 0.6.0 scp 0.14.4 setuptools 65.3.0 setuptools-scm 6.3.2 Shapely 1.8.4 six 1.16.0 sniffio 1.3.0 soupsieve 2.3.2.post1 SQLAlchemy 1.4.20 tomli 1.2.2 tornado 6.1 tzdata 2022.2 tzlocal 4.2 urllib3 1.26.6 Werkzeug 2.0.1 wheel 0.37.1 Whoosh 2.7.4 WTForms 2.3.3 ```
dopplershift commented 1 year ago

Make sure shapely is installed from source since we can't guarantee compatibility with your system's copy of GEOS and the copy that the Shapely wheels are built with:

pip3 install "shapely<2" --no-binary shapely --force-reinstall
greglucas commented 1 year ago

We have just released v0.22 which should help with the compatibility between packages and installation much easier. Please open a new issue if you are still having problems.