omegasoft7 / apv

Automatically exported from code.google.com/p/apv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

memory leak and crash when freememory

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. create a pdf object(by new PDF(……))
2. render some page bitmaps, then invoke pdf.FreeMemory
3. repeat step 1,2(open many books)

What is the expected output? What do you see instead?
I expect it run normal,but i found memory not decrease in fact. At last it 
out of memory.

What version of the product are you using? On what operating system?
0.3.3dev1

Please provide any additional information below.
I alter back to 0.3.0,then found if I freememory and create another pdf 
object,it usually crash(crash from native).But if i don't invoke freeMemory it 
seems works fine!But when you open a pdf file, render some pages, then open 
another pdf,repeat many times it also crash.logs as below
---------------------------------------------------------------------------
W/cx.hell.android.pdfview(31710): jni/pdfview2/apvcore.c:124: refusing to 
reallocate 415518 to 623277, current_size: 25079784, max_size: 25165824

fatal signal 11(SIGSEGV) at 0x3d39a008(code=1)

Original issue reported on code.google.com by dokh...@gmail.com on 26 Mar 2013 at 3:09