This simple code is running fine with no errors; however, no image is produced and nothing is displayed, and I\'m forced to manually stop the code and interrupt it to exit,