I saw that a recent PR by @davidbrochart (https://github.com/zarr-developers/zarr_implementations/pull/23) added xtensor support to zarr_implementations. I was interested in extending the data generation and testing there to include the zarr v3 format as well.
I tried this via adding the following lines to the main.cpp file in that PR:
This compiles fine, but I get a segfault at runtime on the first attempt to assign img to one of the zr3 arrays (i.e. no crash occurs if I comment out all of the assignment lines like noalias(zr3_raw) = img;).
The error I see is as follows:
make[4]: Entering directory '/media/lee8rx/data/Dropbox/Dropbox/Quansight/public/zarr/zarr_implementations/generate_data/xtensor_zarr/build'
[ 50%] Building CXX object CMakeFiles/run_xtensor_zarr.dir/src/main.cpp.o
[100%] Linking CXX executable run_xtensor_zarr
make[4]: Leaving directory '/media/lee8rx/data/Dropbox/Dropbox/Quansight/public/zarr/zarr_implementations/generate_data/xtensor_zarr/build'
[100%] Built target run_xtensor_zarr
make[4]: Entering directory '/media/lee8rx/data/Dropbox/Dropbox/Quansight/public/zarr/zarr_implementations/generate_data/xtensor_zarr/build'
Scanning dependencies of target run
make[4]: Leaving directory '/media/lee8rx/data/Dropbox/Dropbox/Quansight/public/zarr/zarr_implementations/generate_data/xtensor_zarr/build'
make[4]: Entering directory '/media/lee8rx/data/Dropbox/Dropbox/Quansight/public/zarr/zarr_implementations/generate_data/xtensor_zarr/build'
terminate called after throwing an instance of 'std::runtime_error'
what(): write: failed to open file ../../../data/xtensor_zarr.zr3/data/root/raw/c0/0/0
If I look in the generated ../../../data/xtensor_zarr.zr3 folder, the expected metadata has been generated, but there is no data directory. Is this expected to work at this point and/or am I doing something incorrectly? Thanks for any help you can provide.
I saw that a recent PR by @davidbrochart (https://github.com/zarr-developers/zarr_implementations/pull/23) added xtensor support to zarr_implementations. I was interested in extending the data generation and testing there to include the zarr v3 format as well.
I tried this via adding the following lines to the
main.cpp
file in that PR:This compiles fine, but I get a segfault at runtime on the first attempt to assign
img
to one of the zr3 arrays (i.e. no crash occurs if I comment out all of the assignment lines likenoalias(zr3_raw) = img;
).The error I see is as follows:
If I look in the generated
../../../data/xtensor_zarr.zr3
folder, the expected metadata has been generated, but there is nodata
directory. Is this expected to work at this point and/or am I doing something incorrectly? Thanks for any help you can provide.