uxarray icon indicating copy to clipboard operation
uxarray copied to clipboard

Segmentation fault in get_spatial_hash with delaunay grid from points

Open fluidnumerics-joe opened this issue 7 months ago • 7 comments
trafficstars

Version

v2025.3.1.dev11+g4257f71

How did you install UXarray?

Pip

What happened?

I received a segmentation fault error when creating the spatial hash

uxarray version : 2025.3.1.dev11+g4257f71
Segmentation fault (core dumped)

What did you expect to happen?

No segmentation fault

Can you provide a MCVE to repoduce the bug?

#!/usr/bin/env python

import numpy as np
import uxarray as ux

print(f"uxarray version : {ux.__version__}")

lon, lat = np.meshgrid(np.linspace(0, 1, 10, dtype=np.float32),
                        np.linspace(0, 1, 10, dtype=np.float32))
points = (lon.flatten(), lat.flatten())

# Create the grid
uxgrid = ux.Grid.from_points(points, method="regional_delaunay")
uxgrid.get_spatial_hash()

fluidnumerics-joe avatar Apr 16 '25 18:04 fluidnumerics-joe