This is likely related to #1703 as it triggers the same underlying weirdness.
The following code reliably core dumps upon exit, suggesting heap corruption. Beyond #1703, I don't have any evidence that the root cause is TileDB-SOMA (vs say AnnData or some other package).
However, it only occurs when the aforementioned bug is triggered.
import tiledbsoma as soma
def main():
ctx = soma.SOMATileDBContext(
tiledb_config={
"vfs.s3.region": "us-west-2",
"soma.init_buffer_bytes": 4 * 1024**3,
}
)
with soma.open(
"s3://cellxgene-data-public/cell-census/2023-09-14/soma/", context=ctx
) as census:
mouse_experiment: soma.Experiment = census["census_data"]["mus_musculus"]
with mouse_experiment.axis_query(
measurement_name="RNA",
obs_query=soma.AxisQuery(
coords=(slice(0, 100),),
value_filter='tissue=="aorta"',
),
) as query:
ad = query.to_anndata(X_name="raw")
print(ad)
if __name__ == "__main__":
main()
This is likely related to #1703 as it triggers the same underlying weirdness.
The following code reliably core dumps upon exit, suggesting heap corruption. Beyond #1703, I don't have any evidence that the root cause is TileDB-SOMA (vs say AnnData or some other package).
However, it only occurs when the aforementioned bug is triggered.
When I run it, I see: