SolvePnP keep crashing for unknown reasons

model and image points have to be the same amount.

and afaik they also have to pair up so you can’t just give image points in a random order.