Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoParquet driver broken #146

Open
visr opened this issue Feb 1, 2023 · 3 comments
Open

GeoParquet driver broken #146

visr opened this issue Feb 1, 2023 · 3 comments
Labels

Comments

@visr
Copy link
Member

visr commented Feb 1, 2023

Since JuliaPackaging/Yggdrasil#5848, GDAL_jll comes with (Geo)Arrow and (Geo)Parquet support. Loading GeoArrow files seems to work fine, but GeoParquet is only partially working.

Here is a minimal reproducer. The dataset opens fine, we can get the only layer and ask for it's name, but as soon as we try to get the first feature, it crashes Julia with an EXCEPTION_ACCESS_VIOLATION and no further details.

using GDAL

path = "/vsicurl/https://github.com/opengeospatial/geoparquet/raw/v1.0.0-beta.1/examples/example.parquet"
dataset = GDAL.gdalopenex(path, GDAL.GDAL_OF_VECTOR, C_NULL, C_NULL, C_NULL)
layer = GDAL.gdaldatasetgetlayer(dataset, 0)
GDAL.ogr_l_getname(layer)  # -> "example"
feature = GDAL.ogr_l_getnextfeature(layer)  # segfault
@visr visr added the build label Feb 1, 2023
@evetion
Copy link
Member

evetion commented Nov 13, 2024

Works here (macOS) with the latest release.

@visr
Copy link
Member Author

visr commented Nov 14, 2024

Hmm still segfaults on Windows on Julia 1.11.1, so perhaps this is a Windows only issue.
The Arrow_jll version used for GDAL_jll is quite outdated, we use v10 whilst v18 is out, see also #171.

@visr
Copy link
Member Author

visr commented Dec 23, 2024

Unfortunately upgrading to Arrow v18 in JuliaPackaging/Yggdrasil#10018 didn't help, the above example still gives a segfault:

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ffa7f1c4d18 -- _Unwind_Resume at /workspace/srcdir/gcc-13.2.0/libgcc\unwind-seh.c:352
in expression starting at REPL[6]:1
Allocations: 2909 (Pool: 2900; Big: 9); GC: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants