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

Free Support Forum - aspose.com

Java crash when converting DOC to PDF

Hello,

JVM crashes when trying to convert attached .doc document to PDF (aspose-words-17.7-jdk16.jar).

Attached crashing_issue.zip (8.8 KB) zip file contains:

  • crashing_issue.doc
  • hs_err_pid3584.log

using following code to replicate the issue:

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;

import com.aspose.words.Document;

public class SimpleTest {
  public static void main(String[] args) throws Exception {
    Document doc = new Document(new FileInputStream(new File("crashing_issue.doc")));
    FileOutputStream fileOutputStream = new FileOutputStream(new File("crashing_issue.pdf"));
    doc.save(fileOutputStream, com.aspose.words.SaveFormat.PDF);
    fileOutputStream.close();
  }
}

crash error:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x74e3c54f, pid=3584, tid=5960
#
# JRE version: 6.0_32-b05
# Java VM: Java HotSpot(TM) Client VM (20.7-b02 mixed mode windows-x86 )
# Problematic frame:
# C  [KERNELBASE.dll+0xc54f]
#
# An error report file with more information is saved as:
# D:\work\it\client\trunk\aspose-conversion-server\hs_err_pid3584.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Thank you,
Denis

@denis.boghiu

Thanks for your inquiry. It seems your source document is corrupt. We are unable to open it with MS Word 2016 either. Please double check it at your end as well.

Hi, we managed to open and repair the document in MS Word. When trying to convert it PDF it still causes JVM crash. Please try to check with new document attached crashing_issue_1.zip (8.3 KB)

Denis

@denis.boghiu

Thanks for sharing the updated document. We have tested the scenario and noticed the reported issue. We have logged a ticket WORDSJAVA-1633 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience.

Hi, I’ve noticed that status for ticket was updated as closed. How it’s possible to get the results of the investigation

Denis

WORDSJAVA-1633 ---- Status : Closed

@denis.boghiu

Thanks for your inquiry. Your issue has been resolved and closed. Its fix will be available in September 2017 release of Aspose.Words for Java i.e.17.9. However, we will notify you as soon it is published and gets available for download.

Thanks for your patience and cooperation.

@denis.boghiu,

The issues you have found earlier (filed as WORDSJAVA-1633) have been fixed in this Aspose.Words for .NET 17.9 update and this Aspose.Words for Java 17.9 update.