Skip to content

Error on Android 12 or above on create image from PDF #5

@Megamil

Description

@Megamil

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
print("CreateImageFromPDFResponse");
CreateImageFromPDFResponse response = await PdfMerger.createImageFromPDF(
path: singleFile ?? "", outputDirPath: outputDirPath, maxHeight: 3508, maxWidth: 2480, createOneImage: Platform.isAndroid);
print("CreateImageFromPDFResponse end"); (Not called)

createOneImage not working on Android, only true.

Expected behavior
When trying to generate the images from the pdf, the application closes, only on Android 12L or higher

Smartphone (please complete the following information):

  • Device: Simulator
  • OS: 12L and 13

Additional context

Log:
D/EGL_emulation(29530): app_time_stats: avg=69.18ms min=18.35ms max=189.30ms count=15
I/gamil.multiapps(29530): Background young concurrent copying GC freed 161104(6946KB) AllocSpace objects, 4(156KB) LOS objects, 35% free, 10MB/16MB, paused 808us,41us total 101.332ms
I/gamil.multiapps(29530): Background concurrent copying GC freed 51901(2048KB) AllocSpace objects, 28(5860KB) LOS objects, 49% free, 9044KB/17MB, paused 300us,81us total 124.560ms
D/CompatibilityChangeReporter(29530): Compat change id reported: 194532703; UID 10162; state: ENABLED
I/TRuntime.CctTransportBackend(29530): Making request to: https://crashlyticsreports-pa.googleapis.com/v1/firelog/legacy/batchlog
D/TrafficStats(29530): tagSocket(109) with statsTag=0xffffffff, statsUid=-1
D/EGL_emulation(29530): app_time_stats: avg=27.72ms min=5.90ms max=59.74ms count=34
D/EGL_emulation(29530): app_time_stats: avg=23.46ms min=4.60ms max=56.24ms count=41
E/AndroidRuntime(29530): FATAL EXCEPTION: DefaultDispatcher-worker-1
E/AndroidRuntime(29530): Process: br.com.megamil.multiapps, PID: 29530
E/AndroidRuntime(29530): java.lang.UnsatisfiedLinkError: dlopen failed: library "libvudroid.so" not found
E/AndroidRuntime(29530): at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
E/AndroidRuntime(29530): at java.lang.Runtime.loadLibrary0(Runtime.java:998)
E/AndroidRuntime(29530): at java.lang.System.loadLibrary(System.java:1661)
E/AndroidRuntime(29530): at org.vudroid.core.VuDroidLibraryLoader.load(VuDroidLibraryLoader.java:13)
E/AndroidRuntime(29530): at org.vudroid.pdfdroid.codec.PdfContext.(PdfContext.java:13)
E/AndroidRuntime(29530): at com.ril.pdf_merger.CreateImageFromPDF$create$pdfFromMultipleImage$1.invokeSuspend(CreateImageFromPDF.kt:39)
E/AndroidRuntime(29530): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime(29530): at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
E/AndroidRuntime(29530): at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
E/AndroidRuntime(29530): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
E/AndroidRuntime(29530): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
E/AndroidRuntime(29530): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
I/TRuntime.CctTransportBackend(29530): Making request to: https://crashlyticsreports-pa.googleapis.com/v1/firelog/legacy/batchlog
D/TrafficStats(29530): tagSocket(250) with statsTag=0xffffffff, statsUid=-1
I/TRuntime.CctTransportBackend(29530): Status Code: 200
I/Process (29530): Sending signal. PID: 29530 SIG: 9
Lost connection to device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions