ailiboy / ebookdroid

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

a lot of Out of memory "Force Closes" #202

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I really don't know...
Just using ebookdroid to read pdf's.
Sometimes it won't render some pages, and then "Force Close"
Sometimes all is okay and then change to other document and get "Force Close"

What version of the product are you using?
r1186
Pd:This problem was also happening before but now is force closing more often

On what operating system?
Android 2.1

What device are you using?
Flytouch 2. 
A 10 inch china tablet with Android 2.1 and a Resistive one-touch screen with 
1024x600 screen resolution.
CPU Infotm ARMV6 800mhz
GPU Vivante GC600

Please provide any additional information below.

stacktrace and logcat

Original issue reported on code.google.com by lanos...@gmail.com on 15 Apr 2012 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
More info:
Changing bitmap size to 64kb seems to solve the problem. Need to confirm this 
by using it a a little more time.
But higher bitmap size works fine several versions before.

Original comment by lanos...@gmail.com on 15 Apr 2012 at 9:02

GoogleCodeExporter commented 9 years ago
What do you set in performance settings at all?

Original comment by Alexander.V.Kasatkin@gmail.com on 17 Apr 2012 at 2:39

GoogleCodeExporter commented 9 years ago
I tested with different options convinations (perhaps not all of the 
combinations but...) and "Texture bitmap size" seems to be the key of the issue.
Before (older versions) i have no force closes with 1024 or 512 option 
selected. 

Performance settings:
•Pages in memory: 1
•Document viewer implementation: android.view.View
•Decode thread priority: Normal
•Surface draw thread priority: Highest
•Use native graphics: ON
•Hardware acceleration enabled: ON
•Texture bitmap size:
o64 * 64 (no problem with this option apparently)
o512 * 512 (with this option i have this issue)
o1024 * 1024 (with this option i have this issue and this other issue see: 
Issue 205)
•Texture filtering: ON
•Reuse texture bitmaps: OFF
•Bitmap allocation hack: OFF
•Early bitmap recycling: OFF
•Reload page during zoom: OFF

Original comment by lanos...@gmail.com on 17 Apr 2012 at 6:44

GoogleCodeExporter commented 9 years ago
Turn off Hardware acceleration - No use on android 2.1
Turn on Early bitmap recycling.
Do not use texture bitmap size greater than 128 - 512 and 1024 targeted for 
devices with a lot of RAM and Android 3+

It will save you from most OutOfMemory errors

Original comment by Andrei.K...@gmail.com on 18 Apr 2012 at 6:58

GoogleCodeExporter commented 9 years ago
Ok with 64 the problem is solved. But also i repeat the same in here:
http://code.google.com/p/ebookdroid/issues/detail?id=205#c2

thanks

Original comment by lanos...@gmail.com on 18 Apr 2012 at 6:06