flaviostutz / sentinelloader

Sentinel-2 satellite tiles images downloader from Copernicus. Minimizes data download and combines multiple tiles to return a single area of interest.
MIT License
44 stars 18 forks source link

segmentation fault when running python example #8

Closed chris-aeviator closed 2 years ago

chris-aeviator commented 3 years ago
❯ python loader.py
INFO:sentinelloader:Getting region history for band TCI from 2019-01-06 to 2019-01-30 at 60m
DEBUG:sentinelloader:2019-01-06 00:00:00
DEBUG:sentinelloader:Getting contents. band=TCI, resolution=60m, date=2019-01-06
DEBUG:sentinelloader:Querying API for candidate tiles
DEBUG:sentinelloader:Querying remote API
DEBUG:sentinelsat.SentinelAPI:Running query: order_by=None, limit=None, offset=0, query=beginPosition:[2019-01-01T00:00:00Z TO 2019-01-06T00:00:00Z] cloudcoverpercentage:[0 TO 80] platformname:Sentinel-2 producttype:S2MSI2A footprint:"Intersects(POLYGON ((-47.933796 -15.924801, -47.933796 -16.044801, -47.873796 -16.044801, -47.873796 -15.924801, -47.933796 -15.924801)))"
DEBUG:sentinelsat.SentinelAPI:Sub-query: offset=0, limit=None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): scihub.copernicus.eu:443
DEBUG:urllib3.connectionpool:https://scihub.copernicus.eu:443 "POST /apihub/search?format=json&rows=100&start=0 HTTP/1.1" 200 None
[1]    23643 segmentation fault (core dumped)  python loader.py

I have set my copernicus credentials, running on arch linux, python 3.8.2

core dump

Process 23643 (python) of user 1000 dumped core.

Stack trace of thread 23643:
#0  0x00007fe27642a310 __libc_free (libc.so.6 + 0x8c310)
#1  0x00007fe2714d541f inflateReset2 (libcfitsio.so.8 + 0x12241f)
#2  0x00007fe26e170ef4 inflateInit2_ (libz.so.1 + 0xbef4)
#3  0x00007fe275e3da4f zlib_decompressobj_impl.isra.4 (zlib.cpython-38-x86_64-linux-gnu.so + 0x5a4f)
#4  0x0000558fa0189c34 cfunction_vectorcall_FASTCALL_KEYWORDS (python3.8 + 0x14ac34)
#5  0x0000558fa0229fb1 _PyObject_Vectorcall (python3.8 + 0x1eafb1)
#6  0x0000558fa01d227e function_code_fastcall (python3.8 + 0x19327e)
#7  0x0000558fa01d25c3 _PyObject_Call_Prepend (python3.8 + 0x1935c3)
#8  0x0000558fa01d277a slot_tp_init (python3.8 + 0x19377a)
#9  0x0000558fa01860dc type_call (python3.8 + 0x1470dc)
#10 0x0000558fa0229eea _PyObject_Vectorcall (python3.8 + 0x1eaeea)
#11 0x0000558fa01d1c7b function_code_fastcall (python3.8 + 0x192c7b)
#12 0x0000558fa02256c6 _PyObject_Vectorcall (python3.8 + 0x1e66c6)
#13 0x0000558fa01d1421 _PyEval_EvalCodeWithName (python3.8 + 0x192421)
#14 0x0000558fa01d1d9e _PyFunction_Vectorcall (python3.8 + 0x192d9e)
#15 0x0000558fa0225889 _PyObject_Vectorcall (python3.8 + 0x1e6889)
#16 0x0000558fa026f029 gen_send_ex (python3.8 + 0x230029)
#17 0x0000558fa0225ca9 _PyEval_EvalFrameDefault (python3.8 + 0x1e6ca9)
#18 0x0000558fa026f029 gen_send_ex (python3.8 + 0x230029)
#19 0x0000558fa0225ca9 _PyEval_EvalFrameDefault (python3.8 + 0x1e6ca9)
#20 0x0000558fa026f029 gen_send_ex (python3.8 + 0x230029)
#21 0x0000558fa01c5b64 list_extend (python3.8 + 0x186b64)
#22 0x0000558fa01c5de2 PySequence_List (python3.8 + 0x186de2)
#23 0x0000558fa01c5e54 PySequence_Fast (python3.8 + 0x186e54)
#24 0x0000558fa01c5ebd stringlib_bytes_join (python3.8 + 0x186ebd)
#25 0x0000558fa01b82fb method_vectorcall_O (python3.8 + 0x1792fb)
#26 0x0000558fa0225889 _PyObject_Vectorcall (python3.8 + 0x1e6889)
#27 0x0000558fa01d1f88 function_code_fastcall (python3.8 + 0x192f88)
#28 0x0000558fa0187c65 _PyObject_GenericGetAttrWithDict (python3.8 + 0x148c65)
#29 0x0000558fa0225b2a _PyEval_EvalFrameDefault (python3.8 + 0x1e6b2a)
#30 0x0000558fa01d0cac _PyEval_EvalCodeWithName (python3.8 + 0x191cac)
#31 0x0000558fa01d1de8 _PyFunction_Vectorcall (python3.8 + 0x192de8)
#32 0x0000558fa01ae0d2 _PyObject_Vectorcall (python3.8 + 0x16f0d2)
#33 0x0000558fa0185a2f PyVectorcall_Call (python3.8 + 0x146a2f)
#34 0x0000558fa02271e7 do_call_core (python3.8 + 0x1e81e7)
#35 0x0000558fa01d0cac _PyEval_EvalCodeWithName (python3.8 + 0x191cac)
#36 0x0000558fa01d1de8 _PyFunction_Vectorcall (python3.8 + 0x192de8)
#37 0x0000558fa01ae0d2 _PyObject_Vectorcall (python3.8 + 0x16f0d2)
#38 0x0000558fa0185a2f PyVectorcall_Call (python3.8 + 0x146a2f)
#39 0x0000558fa02271e7 do_call_core (python3.8 + 0x1e81e7)
#40 0x0000558fa01d0cac _PyEval_EvalCodeWithName (python3.8 + 0x191cac)
#41 0x0000558fa01d1de8 _PyFunction_Vectorcall (python3.8 + 0x192de8)
#42 0x0000558fa01adf45 _PyObject_Vectorcall (python3.8 + 0x16ef45)
#43 0x0000558fa0226727 _PyObject_Vectorcall (python3.8 + 0x1e7727)
#44 0x0000558fa01d0cac _PyEval_EvalCodeWithName (python3.8 + 0x191cac)
#45 0x0000558fa01d1d45 _PyFunction_Vectorcall (python3.8 + 0x192d45)
#46 0x0000558fa0225889 _PyObject_Vectorcall (python3.8 + 0x1e6889)
#47 0x0000558fa01d0cac _PyEval_EvalCodeWithName (python3.8 + 0x191cac)
#48 0x0000558fa01d1d45 _PyFunction_Vectorcall (python3.8 + 0x192d45)
#49 0x0000558fa0225889 _PyObject_Vectorcall (python3.8 + 0x1e6889)
#50 0x0000558fa01d0cac _PyEval_EvalCodeWithName (python3.8 + 0x191cac)
#51 0x0000558fa01d1de8 _PyFunction_Vectorcall (python3.8 + 0x192de8)
#52 0x0000558fa01adf45 _PyObject_Vectorcall (python3.8 + 0x16ef45)
#53 0x0000558fa0226727 _PyObject_Vectorcall (python3.8 + 0x1e7727)
#54 0x0000558fa01d1c7b function_code_fastcall (python3.8 + 0x192c7b)
#55 0x0000558fa0225889 _PyObject_Vectorcall (python3.8 + 0x1e6889)
#56 0x0000558fa01d1c7b function_code_fastcall (python3.8 + 0x192c7b)
#57 0x0000558fa0225889 _PyObject_Vectorcall (python3.8 + 0x1e6889)
#58 0x0000558fa01d0cac _PyEval_EvalCodeWithName (python3.8 + 0x191cac)
#59 0x0000558fa01d1de8 _PyFunction_Vectorcall (python3.8 + 0x192de8)
#60 0x0000558fa01adf45 _PyObject_Vectorcall (python3.8 + 0x16ef45)
#61 0x0000558fa0226727 _PyObject_Vectorcall (python3.8 + 0x1e7727)
#62 0x0000558fa01d0cac _PyEval_EvalCodeWithName (python3.8 + 0x191cac)
#63 0x0000558fa01d1b44 PyEval_EvalCodeEx (python3.8 + 0x192b44)
chris-aeviator commented 3 years ago

Any feedback, is this fixed ?

flaviostutz commented 3 years ago

Have you tried to run using Docker container?

flaviostutz commented 2 years ago

@chris-aeviator It seems like a bug related to the tooling versiono in your machine. Have you tried the Docker container? I couldn't reproduce it here.