This document causes an endless loop when loaded:
test2.7z (3.1 MB)
public static void main(String[] args) throws IOException {
String fname = test2.ai";
File file = new File(fname);
try (InputStream istream = new FileInputStream(file)) {
AiImage image = (AiImage)com.aspose.psd.Image.load(istream);
System.out.println("image=" + image);
}
}
Since a static variable of ImageLoadersRegistry is kept locked in the loop, all other threads that call the load function are blocked.
aspose-psd-23.7-jdk16.jar