IIS Hangs with high CPU usage when converting slides to jpg

Hello,


I have some code that is converting slides to jpg files which works fine when running locally in visual studio. However when it is run on the server under IIS it hangs on slide #9 and the one file causes 25% CPU usage of the server. The only way to release the cpu usage is to kill the worker process. When we were first trying to isolate the issue we had processed several instances of the powerpoint and the IIS worker process was at 100% and was issuing http 503 errors. Most files work fine, but this one PowerPoint file constantly causes this behavior, so there may be something in the content that is not being processed correctly. The Powerpoint file belongs to a customer so it is not something that should be shared publicly. Is there an email address I can send the file to or else an option to hide the attachment from the general public?

Here is the code that reproduces the behavior:

Aspose.Slides.License license = new Aspose.Slides.License();
license.SetLicense(“Aspose.Total.lic”);

string pptFile = @“C:\temp\1 Daily Operations 1.3 final.pptx”;
string testDir = @“C:\temp”;

Aspose.Slides.Presentation pres = new Aspose.Slides.Presentation(pptFile);
int slideCount = pres.Slides.Count;

System.Drawing.Image img = null;
for (int i = 0; i < slideCount; i++)
{
Aspose.Slides.ISlide slide = pres.Slides[i];

if (slide == null)
{
continue;
}

img = slide.GetThumbnail(1, 1);
string randomImageFileName = String.Format("{0}.jpg", Guid.NewGuid());
string fullPath = System.IO.Path.Combine(testDir, randomImageFileName);
img.Save(fullPath, System.Drawing.Imaging.ImageFormat.Jpeg);
}

Hi Josh,


Thank you for considering Aspose.Slides.

I have observed your comments and like to request you to please try using Aspose.Slides for Java 15.6.0 on your end and if you still face the problem then share with us the presentation file by following the instructions written over this link so that we may investigate it further to help you out.

Please let us know if the issue persists. We will be happy to assist you further.

Best Regards,

Hi Josh,


I have observed the issue shared by you and suggest you to please first try using Aspose.Slides for .NET 15.6.0 in your environment. If the issue still persist then please share the working sample project along source presentation with us privately by following these guidelines. Please share the requested information along with operating system details as well and notify us here once you have shared the sample project and presentation privately.

Many Thanks,

Hello Mudassir,


We are using .NET 15.6.0 with this issue. We recently upgraded in hopes that the newer version may have fixes for this issue but it does not. I have sent you the Powerpoint file for examination.

Thanks, Josh

Hi Josh,


I have received the presentation file shared by you. As requested earlier, please share the sample project reproducing the issue on your end along with IIS and Windows version information on your end. Please share the requested information so that I may help you further in this regard.

Many Thanks,

Hi Mudassir,


I have sent the sample project. The server is Windows Server 2008 R2 Standard with IIS7.5.

Thanks,
Josh

Hi Josh,

Thank you for sharing the information with us. I have created an issue with ID SLIDESNET-36664 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

Hello, any updates on when the fix for SLIDESNET-36664 will be available in a release?

Hi,


I have verified the issue status from our issue tracking system and regret to share that at the moment the issue is still unresolved. I have requested our product team to share the feedback in this regard. I will share the updated status with you ASAP in this regard.

Many Thanks,

Hello,


We have the same issue reported by clients and would appreciate updates on the status of this fix.

Thank you


Hi,

I have verified the issue status from our issue
tracking system and regret to share that it has not yet been resolved.
Our product team has schedule the issue for investigation during Week
41/2015. We will be able to provide further feedback to you in this
regard once it will be shared by our product team after their
investigation.

Many Thanks,

Hi,

Our product team has investigated the issue on their end and we have not been able to reproduce the issue with shared presentation. In our environment it works fine without any hanging in Windows Server 2008 R2
Standard x64 with IIS 7.5, .NET Framework 4.5, Aspose Slides for .NET 15.8.0. Can you please share another file which reproduce this issue? We also need additional
information about environment, installed software on server and IIS configurations.

Many Thanks,

The issues you have found earlier (filed as SLIDESNET-36664) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.