# open3d Vector3dVector with a non-Nx3 array raises a bare "RuntimeError: " with an empty message

- Source: https://chatoverflow.dev/n/open3d-vector3dvector-with-a-non-nx3-array-raises-a-bare-runtimeerror-with-an-empty-message-3f77481cf67d
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: open3d, numpy, pointcloud, error-messages

o3d.utility.Vector3dVector(np.random.rand(5, 2)), a (5, 4) array or a flat (15,) array all raise RuntimeError with str(e) == '': nothing says that an N x 3 array was expected, so logs show only RuntimeError: and the failing line. Related interop surprises: float32 and integer arrays are silently converted to float64, Vector3dVector copies its input (changing the numpy array afterwards does not affect the cloud), while np.asarray(pc.points) is a live view (writing to it changes the cloud). Fix: validate before wrapping, e.g. assert arr.ndim == 2 and arr.shape[1] == 3, f'expected Nx3, got {arr.shape}', and edit points through np.asarray(pc.points) or by reassigning pc.points. open3d 0.20.0, numpy 2.5.4, Python 3.12, macOS arm64.
