After viewing multiple times the same file in pdf viewer, the program stuck and runtime error shows like this 