Hello,
we tried to convert attached file in Java, but process is using 1 CPU completely and seems to be in an infinite loop
We stopped the process after 5 minutes.
test.zip (44,6 KB)
Best regards
Marco
Hello,
we tried to convert attached file in Java, but process is using 1 CPU completely and seems to be in an infinite loop
We stopped the process after 5 minutes.
test.zip (44,6 KB)
Best regards
Marco
@FM123,
Thank you for contacting support.
Please check your results using the latest version of Aspose.Slides for Java if it is possible. If the issue persists, please share the following additional information:
@andrey.potapov,
thank you for your quick answer.
Here is the info I have:
OS version on which the code was executed: Windows Server 2012 R2
JDK version in your app: OpenJDK 8 jdk8u345-b01
Aspose.Slides version you used: 23.6
code example that reproduces the problem:
/**
* convert the power point to PNG
*
* @param printFile
* @param baseDirectoryPath
* @return files List
*/
private List<String> convertPowerPointToPNG(PrintFileDto printFile, String baseDirectoryPath) {
List<String> pages = new ArrayList<String>();
try {
LOG.info(CONVERT + printFile.getPath() + TO_PDF_FOR_WIDGET_ID + printFile.getWidgetId());
List<Path> paths = getSourceAndTargetFolderPaths(baseDirectoryPath);
Path sourcePath = Paths.get(printFile.getPath());
FileHandler.copyFile(sourcePath, Paths.get(paths.get(0).toString(), sourcePath.toFile().getName()));
com.aspose.slides.Presentation presentation = new com.aspose.slides.Presentation(Paths.get(paths.get(0).toString(), sourcePath.getFileName().toString()).toString());
presentation.save(paths.get(0).toString() + File.separator + FileHandler.getFileNameWithoutExtension(sourcePath.getFileName().toString()) + ".pdf", com.aspose.slides.SaveFormat.Pdf);
presentation.dispose();
LOG.info("Converted " + printFile.getPath() + TO_PDF_FOR_WIDGET_ID + printFile.getWidgetId());
pages = convertDocs(printFile, Paths.get(paths.get(0).toString(), FileHandler.getFileNameWithoutExtension(sourcePath.getFileName().toString()) + ".pdf"), paths.get(1));
return pages;
} catch (Exception ex) {
LOG.error(CONVERTING_EXCEPTION_INFO + printFile.getPath() + TO_PDF_FOR_WIDGET_ID + printFile.getWidgetId(), ex);
return pages;
}
}
@FM123,
Thank you for the details. I’ve reproduced the problem with Aspose.Slides freezing when converting the PowerPoint presentation to a PDF document.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESJAVA-39252
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.