saicheng / vudroid

Automatically exported from code.google.com/p/vudroid
0 stars 0 forks source link

outOfMemory while rendering in org.vudroid.pdfdroid.codec.PdfPage.render(PdfPage.java:~98) #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. in any pdf, zoom in & out repeat
2. move page up & down
3. then out of memory error

What is the expected output? What do you see instead?
finish rendering. 

03-30 22:38:59.640: DEBUG/ViewDroidDecodeService(20676): Starting decode of 
page: 8
03-30 22:38:59.640: DEBUG/ViewDroidDecodeService(20676): Start converting map 
to bitmap
03-30 22:38:59.640: WARN/dalvikvm-heap(20676): dvmMalloc(113529040/0x06c450d0): 
someone's allocating a huge buffer
03-30 22:38:59.640: INFO/dalvikvm-heap(20676): Forcing collection of 
SoftReferences for 113529040-byte allocation
03-30 22:38:59.685: DEBUG/dalvikvm(20676): GC freed 536 objects / 21720 bytes 
in 46ms
03-30 22:38:59.685: ERROR/dalvikvm-heap(20676): Out of memory on a 
113529040-byte allocation.
03-30 22:38:59.685: INFO/dalvikvm(20676): "pool-1-thread-1" prio=4 tid=17 
RUNNABLE
03-30 22:38:59.685: INFO/dalvikvm(20676):   | group="main" sCount=0 dsCount=0 
s=N obj=0x47f85c10 self=0x3e1e60
03-30 22:38:59.685: INFO/dalvikvm(20676):   | sysTid=20746 nice=10 sched=0/0 
cgrp=bg_non_interactive handle=4071288
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
org.vudroid.pdfdroid.codec.PdfPage.render(PdfPage.java:~98)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
org.vudroid.pdfdroid.codec.PdfPage.renderBitmap(PdfPage.java:49)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
org.vudroid.core.DecodeServiceBase.performDecode(DecodeServiceBase.java:116)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
org.vudroid.core.DecodeServiceBase.access$0(DecodeServiceBase.java:98)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
org.vudroid.core.DecodeServiceBase$1.run(DecodeServiceBase.java:73)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
java.util.concurrent.FutureTask.run(FutureTask.java:137)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
03-30 22:38:59.685: INFO/dalvikvm(20676):   at 
java.lang.Thread.run(Thread.java:1096)

What version of the product are you using? On what operating system?
vudroid1.4 & android2.2(samsung galaxy S)

Please provide any additional information below.

Original issue reported on code.google.com by autoc...@gmail.com on 31 Mar 2011 at 2:22