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

Free Support Forum - aspose.com

Aspose words cause jvm crash

hs_err_pid33270.zip (35.9 KB)
first we have issue like this one:


We have add both parameters to CLI command. For now it works, but now we have the same issue for aspose words. Is there chance that Aspose.Words.Disable=SunFontManager will help us?

@mco_keepit

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

  • Your input Word document.
  • Please share the code example (source code without compilation errors).
  • Please share the steps that help us to reproduce your problem on our end.

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.

import com.aspose.words.Document;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;

public class test {

public static void main(String[] args) {

try {
  Document doc = new Document("foo.docx");
  BufferedImage bImage = new BufferedImage(1024, 768, BufferedImage.TYPE_INT_RGB);
  Graphics2D g2d = bImage.createGraphics();
  g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
  g2d.setColor(Color.white);
  g2d.fillRect(0, 0, 1024, 768);
  doc.renderToSize(0, g2d, 0, 0, 1024, 768);
} catch (Exception ex) {
}

}
}

test.zip (8.6 KB)

Please pay attention to java error log attached above. It contains efficient info about our environment. Which I believe the key to reproduce the problem

@mco_keepit

Thanks for sharing the detail. We have used the shared code example with Aspose.Words for Java 18.8 and have not faced the shared exception. Please use Aspose.Words for Java 18.8.