I encountered double free memory or corruption when converting multiple Excel files to image (JPEG) on Linux concurrently. It happened randomly so it’s quite hard to reproduce. I also attached the backtrace on error for more information.
It is hard to evaluate your issue based on your given details and artifacts. Also, your issue occurred randomly as you pointed out. We need a simulation project with template file(s) to reproduce the issue on our end. So, please share with us a simulation project with sample files to reproduce the issue. We will check your issue soon.
Hi @dunghnguyen
I can run your project, and test dozens of times, but the problem didn’t happen.
My test Environment is Ubuntu20.04, net6, memory 2GB.
I noticed that the 4 test files you provided had previously solved a problem caused by a special character, but the next version will take effect.
Can you remove the special characters in 4 files, so that all the pictures generate normally, try test in your environment, whether there is any “coredump” exception found?
Hi @leoluo.
I try with another set of samples and can reproduce the problem. Below is more details about my test environment and samples, and core dump attached.
To install additional .NET runtimes or SDKs: .NET Downloads (Linux, macOS, and Windows)
[asposecells@aspose ~]$ yum list installed | grep gdi
Repository packages-microsoft-com-prod is listed more than once in the configuration
libgdiplus.x86_64 2.10-10.el7 @epel
Hi @dunghnguyen
I noticed that in the error message you used libgdiplus, which I think you used aspose.Cells which should be dependent on the graphics library “System.Drawing.common”.
Because Microsoft claims “system.drawing.common” is no longer supported on Linux:
Since the graphics library is no longer supported, it may have some sorts of unpredictable, random problems under Linux.
Based on this statement, we developed a new aspose.Cells version, depending on the graphics library skiasharp. (At the time you encountered this problem, this version had not yet been released. Now, it’s stable for use.)
Please refer to the documentation below to use SKIASHARP as a graphics library in Linux to solve this problem.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.