I have a script that was working nicely under 1.2.6 but completely crashes PhotoScan under 1.3.1. No error messages and no warning so I'm guessing this is a bug somewhere (otherwise I'd just get a python error and I'm used to that). I've narrowed down the crash to this line:
camera.open(image_path)
camera comes from camera = chunk.addCamera() and looks to be properly initialised. If image_path doesn't point to a valid image I get an error in camera.open as expected. But if image_path is valid then I get the crash.