OOM Crash Occurs on Small Presentation File Using Aspose.Slides for Android

Hello, we encountered an OOM crash while using Aspose.Slides for Android, but the PPT file we were using is very small. Here is the link to the PPT file:

java.lang.OutOfMemoryError: Failed to allocate a 74649616 byte allocation with 18199096 free bytes and 17MB until OOM, target footprint 536870912, growth limit 536870912
at com.aspose.slides.internal.i9.tr.tr(Unknown Source:8)
at com.aspose.slides.internal.fr.sp.tr(Unknown Source:33)
at com.aspose.slides.internal.p7.tr.tr(Unknown Source:3)
at com.aspose.slides.internal.p7.tr.tr(Unknown Source:2)

env:
lib version: aspose-slides-23.2-android.via.java.jar
jdk version config in gradle is 1.8

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

the crash happened on Android 10,11 and 12

6.1小文件oom.pptx.zip (865.7 KB)

@wuqian,
Thank you for contacting support.

Could you please share a code example that reproduces the error you are encountering?

Convert PPT to PDF using the following code:

var pres: Presentation? = Presentation(sourcePdfFilePath)
val targetPdfFilePath = sourcePdfFilePath.substringBeforeLast(".") + ".pdf"
val saveOptions = PdfOptions()
saveOptions.setProgressCallback {
      trySend(Pair(it.toInt(), ""))
}
pres.save(targetPdfFilePath, SaveFormat.Pdf, saveOptions)

@wuqian,
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESANDROID-474

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

thanks! is there any update for the issue?

@wuqian,
The issue has already been resolved. A fix will be included in Aspose.Slides for Android 23.3. This release will be published in the second half of March.

The issues you found earlier (filed as SLIDESANDROID-474) have been fixed in Aspose.Slides for Java 23.3 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.