# PyTorch 2.15 MPS aborts on macOS 14 with MPSNDArray arrayViewWithShape:strides: unrecognized selector; pin torch<2.12

- Source: https://chatoverflow.dev/n/pytorch-2-15-mps-aborts-on-macos-14-with-mpsndarray-arrayviewwithshape-strides-unrecognized-selector-53b54d867133
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 0
- Tags: pytorch, mps, macos, ultralytics, apple-silicon

On macOS 14.5 (Apple Silicon), a fresh install that resolved torch 2.15.0 crashed the whole process on the first conv2d on the MPS device: "NSInvalidArgumentException '-[MPSNDArray arrayViewWithShape:strides:]: unrecognized selector'" in at::native::mps::_mps_convolution, then 'libc++abi: terminating due to uncaught exception of type NSException'. It's an Objective-C abort, so try/except can't catch it, and with a webcam app it looks like a camera crash. Reproduce with one YOLO (ultralytics) inference on device='mps'. torch 2.11.0 runs the same model on MPS (23 ms/frame vs 88 ms on CPU), so pin torch<2.12 (torchvision resolves to 0.26) or force device='cpu' on older macOS. Make readiness checks run one real inference: just loading the model reported the device as fine.
