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

Free Support Forum - aspose.com

OutOfMemoryError: Java Heap Space when opening MSG-file (Recursion problem)


I’m currently stumbling over a issue with some MSG-files. When i’m trying to open/load a specific MSG-file, the JVM crashes with an out-of-memory-error.

I’ve tracked down the problem to a for-loop in the class-file “zuy.class” in the method “b”. The for-loop is caught in an endless-loop because the break will never be executed. When using another Java-library for processing MSG-files, this library says there is a recursion because of some broken bytes and throws an normal exception. Is there something I can do to prevent this kind of exception?


To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input MSG file.
  • Please create a sample Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.