We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Class com.aspose.psd.coreexceptions.ImageLoadException: Image loading failed. ---> java.lang.StackOverflowError

I tried to convert AI(illustrator) file to png but there was an error. Any solution for this.

class com.aspose.psd.coreexceptions.ImageLoadException: Image loading failed. ---> java.lang.StackOverflowError
  --- End of inner exception stack trace ---
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.Image.a(Unknown Source)

I have attached the java file, error log, and used AI file with this.
Error Folder.zip (3.4 KB)

@Amila95 I’ve investigated the file you attached. The size of ai file is 0. It looks like it was damaged. Could you please send not empty file that you tried to open.

Also, please note, Aspose.PSD supports only old formats of AI, if you need to use modern versions of AI file, it’s better to use Aspose.PDF, because new AI files is just PDF