Slide.GetThumbnail Method in Aspose.Slides for .NET Makes Memory Leak

@Andrey_Potapov,

Here is a link to a minimal set of code that reproduces the problem: aspose-test.zip - Google Drive
edit: The powerpoint we used is in the zip file as well.

Here is the main method:
code.png (30.8 KB)

Here is the resultant memory leak:
leak.png (32.4 KB)

The computer is running Ubuntu 20.04.2 LTS.
The processor is a AMD® Ryzen 5 3400g

Thanks for your help.

@derby,
I’m sorry, I forgot to ask you. Please also specify the version of Aspose.Slides you are using.

The version is 21.1.0

@derby,
Thank you for the additional information. I have logged the issue in our tracking system with ID SLIDESNET-42490 for further investigation. I will inform you about any progress.

@derby,
Please check your memory consumption and leaks with disposing objects as below:

using (Presentation pres = new Presentation("1024.pptx"))
{
    foreach (ISlide slide in pres.Slides)
    {
        using (Bitmap bmp = slide.GetThumbnail(1f, 1f))
        { 
            // handle thumbnail
        }
    }
}

@Andrey_Potapov,

We have replaced the content of our main method with the implementation you have provided. We still experience the same very high memory usage on the affected computer.

@derby,
We will continue to investigate the issue.

@derby,
Our development team cannot reproduce the issue. VS2019 performance profiling screenshot: vs_diag.png (23.9 KB).
Could you share your profiling session dump with a snapshot (VS2019 “Performance Profiler” or DotMemory), please?

@Andrey_Potapov,
Here is our DotMemory profile: AsposeMemoryLeakTest.dmw - Google Drive

@derby,
Thank you for the additional information. Our development team will continue to investigate the issue.

Hello, just curious if you have investigated this issue and if you have anything new you can share.

Thanks

@andrewlf,
I requested information for you from our development team. I will let you know as soon as possible.

@andrewlf,
Our development team is investigating this case. The issue is environment-specific. Investigation results will be ready not earlier than the mid of 07’21.

Thank you for the update on the investigation. I hope it reveals the problem.

Thanks again,

Andrew

Have there been any updates on this? We are experiencing the same issues that Andrew and Derby mentioned on Ubuntu 20 with Aspose.Slides 21.10.0

@bwadams,
Thank you for contacting support. This issue has not been resolved yet.
I requested information from our development team. I will let you know as soon as possible.

Hi guys, any update on this issue?
I’m facing the same issue on Slides for Java with version 21.2.
It takes about 16 Gigabytes when getting thumbanails for a 120 pages slides and makes a lot of gc.

@fws1998,
Thank you for contacting support.

The issue described in the forum thread has not been resolved yet.

There were many updates after version 21.2. Please check your results using the latest version of Aspose.Slides for Java if it is possible. If the issue persists, please create a new forum thread and describe the issue you are experiencing with the following data and information:

  • presentation file (you can zip the file and upload an archive in the forum thread)
  • code example or a simple project that reproduces the problem
  • screenshot with your diagnostic results
  • OS version on which the code was executed
  • JDK version in your app
  • any additional information about your environment

Any update pertaining to this issue? It has been ages and it seems no solution is provided. Our team has encountered the similar issue even with the latest version as of this writing. Appreciate Aspose development team can look into this issue with priority. Thank you.

@chunweit,
The issue has been blocked by another issue which is unfortunately still open. Please describe the issue you encountered in a separate forum thread. We will do our best to help you.