Free Support Forum - aspose.com

Issue with crashes when saving to pdf format

Hi,

I’m having issues with Aspose.Cells being unstable when saving Excel sheets
in PDF format. Even tiny things such as setting a font might cause the crash to
occur. I’ve experienced crashes when using figures, wordArt, and SmartArt.

I have produced a small example which is able to trigger the crash. The attached
example xlsx file doesn’t cover all objects that can cause the issue, since the issue
can be produced with such a large magnitude of objects.

All that is needed to reproduce the crash is to load a file which contains the offending
objects and/or fonts and save the file in PDF format.

I’m using Aspose.Cells 19.11 for C++. I am as of yet unable to upgrade to 20.7
due to license issues.

aspose_pdf_crash.zip (14.4KB)

@patjep,

Please notice, I am able to reproduce the issue as you mentioned by converting your template file to PDF file format. I tested using Aspose.Cells for C++ v20.7 and found application crashes when saving the Excel file (having word art, drawing shapes, etc.) to PDF format. I have logged a ticket with an id “CELLSCPP-270” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@Amjad_Sahi

Okay, thank you!

@patjep,

We are working over your issue and hopefully we can provide you the fixed version before the end of next week or so.

Keep in touch.

@patjep,

Please try our latest version/fix: Aspose.Cells for C++ v20.7.1.

Your issue (logged earlier as “CELLSCPP-270”) should be fixed in it.

Let us know your feedback.

Hi @Amjad_Sahi,

I tried your fix and it still crashes for me, both when saving to a memory stream and
to a file. The example file I gave you earlier can be used to reproduce the issue.

@patjep,

You are right, the issue is not resolved using the latest fix/version as I tested. I have reopened your issue again. We will look into it soon.

Once we have any new information, we will let you know.