We have a Scrub client that frequently receives various memory exception errors when our product removes metadata from PDFs. Mostly occurs with PDFs but sometimes Word files. It can happen on small PDFs as well as larger ones. Processing stops, it locks up Outlook and our logging reports “trying to continue via Console component”. We have had the client try several builds of Scrub that included older version of Aspose and the issue continues. The current versions we have in our product, and they have tested, are:
Aspose.Pdf.dll 17.1.0.0
Aspose.Words.dll 17.2.0.0
Aspose.Cells.dll 17.2.0.0
Aspose.Slides.dll 15.5.0.0
This is the code that is causing the StackOverFlow exception.
public static void SetLicenses()
{
if(!Set)
{
Set = true;
try
{
CellsLicense.SetLicense(new MemoryStream(Properties.Resources.Aspose_Cells));
PdfLicense.SetLicense(new MemoryStream(Properties.Resources.Aspose_Pdf));
WordsLicense.SetLicense(new MemoryStream(Properties.Resources.Aspose_Words));
SlidesLicense.SetLicense(new MemoryStream(Properties.Resources.Aspose_Slides));
}
catch { Set = false; }
}
}
Any insight on what or why this might be causing the memory error?
All the license files are resources of the DLL responsible for setting the licenses for the application.
Thanks,
Kristen Theologus
Scrub Support Specialist
Hi Kristen,
Are there any builds notes for what you have changed in the 17.4 Aspose.pdf?
This is not something that is reproducible on demand and you are asking us to blindly throw another driver version at our client who has been struggling with this issue for a year.
We’d like a little more explanation of what could be causing the StackOverFlow exception error.
Thanks,
Kristen
Allow me to clarify. (1) This is NOT reproducible (2) it has only occurred at our client site; never in our test environments and (3) occurs randomly regardless of the PDF.
Therefore, I’m confused as to how I can provide what you request. Our developer reports the exception is thrown at the time we set the license info which is why that snippet of code was provided. I guess I can assume we are setting the license correctly? He had hoped that you could provide some guidance around the error in general. It appears that the process of removing metadata from the PDF does not even begin when this error appears.
Thanks.
Hi Kristen,
Hi Kristen,KTechnogal:Allow me to clarify. (1) This is NOT reproducible (2) it has only occurred at our client site; never in our test environments and (3) occurs randomly regardless of the PDF.Therefore, I’m confused as to how I can provide what you request. Our developer reports the exception is thrown at the time we set the license info which is why that snippet of code was provided. I guess I can assume we are setting the license correctly? He had hoped that you could provide some guidance around the error in general. It appears that the process of removing metadata from the PDF does not even begin when this error appears.
Thanks.