Black window normally is a case of not enough RAM when compiling.
You should also make sure your panorama images are not too large. 8000px wide or less.
Run some tests and see.
Regards, Smooth