Skip to main content
André2331200264sq
Inspiring
July 17, 2024
Answered

Message: Failed to generate PDF. Check log for more details.

  • July 17, 2024
  • 3 replies
  • 1008 views

Hi, I get this message when creating a PDF in RoboHelp Version 2022.4.179.

"Failed to generate PDF. Check log for more details."

Where can I find the log file?

Anyone having the same issue?

    Correct answer André2331200264sq

    Hi everyone,

    I solved the problem.

    There was an Environment Variable called _JAVA_OPTIONS that set the Java Heap Space (xmx) to 256 MB.

    I deleted that and now it works fine.

     

    I hope this will help other users with the same issue.

     

    Regards,
    André Bergsma

    3 replies

    Peter Grainge
    Community Expert
    Community Expert
    July 18, 2024

    It's all pointing to the wrong version of java in the office. See https://www.grainge.org/RoboHelp_Tour/rh2022/outputs/outputs_pdf.htm

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    André2331200264sq
    Inspiring
    July 18, 2024

    Thanks Peter,

    I will try to have the same working Java version installed on both pc's and hope this will solve the problem.

     

    André

    André2331200264sq
    André2331200264sqAuthorCorrect answer
    Inspiring
    July 19, 2024

    Hi everyone,

    I solved the problem.

    There was an Environment Variable called _JAVA_OPTIONS that set the Java Heap Space (xmx) to 256 MB.

    I deleted that and now it works fine.

     

    I hope this will help other users with the same issue.

     

    Regards,
    André Bergsma

    Jeff_Coatsworth
    Community Expert
    Community Expert
    July 17, 2024

    What version of JRE did you install?

    André2331200264sq
    Inspiring
    July 18, 2024

    Hi Jeff,

    This version.

     

    André2331200264sq
    Inspiring
    July 18, 2024

    Sorry Jeff,

     

    I am on another pc now. That is the JRE that is installed here. 

    I tried to create the PDF, and it worked!

     

    At home I have the 1.8.0_421. Could that be the problem?

    André2331200264sq
    Inspiring
    July 17, 2024

    Found the log. Right click on the Output preset PDF.

     

    André2331200264sq
    Inspiring
    July 17, 2024

    The log says "Error during image decoding: java.lang.OutOfMemoryError: Java heap space"

    - I already downloaded the latest Java 64 bit version, but the error still exists.

    - Then I downscaled the images in the manual to about document resolution, but no results.

    - I googled for the error message but that results in multiple solutions that go beyond my programming skills.

    Any suggestions to simply fix the problem?