0
  • Opening Pdf using Qoppa library, specifically while debugging I can monitor heap memory usage becomes very high at below line executed..

         com.qoppa.notes.QPDFNotesView viewer = new QPDFNotesView(this);
    
  • Before going out my Activity, i am calling

         viewer.releaseDocument();
    
  • Even then heap memory is not coming down.

Note : Tried using latest qoppapdf.jar downloaded from qoppa as well.

karthik
  • 139
  • 10
  • 1
    Garbage Collection may not happen until the VM decides it's needed. – Damien O'Reilly Oct 13 '15 at 11:02
  • * May be you are correct, but when i am trying to open pdf documents one after the other heap is increasing and leads to "OutOfMemory Exception". Need some suggestions for resolving this. – karthik Oct 13 '15 at 11:06
  • 1
    Ok, in that case, I'd suggest you read https://developer.android.com/tools/debugging/debugging-memory.html and see if there is something else using the heap. If it is still QPDF, then it may be a bug on their side. – Damien O'Reilly Oct 13 '15 at 11:11
  • thanks for the reply. – karthik Oct 13 '15 at 11:13
  • Can you please post a complete code sample so I can try to reproduce the issue? – Amber Mar 23 '17 at 14:12

1 Answers1

0

Qoppa released a new build for qPDF Toolkit that fixed a leak issue on 11/06/2015. Make sure you download the latest version and try again.