myboneri / apv

Automatically exported from code.google.com/p/apv
GNU General Public License v3.0
0 stars 0 forks source link

Application crashes with several PDF files!? #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Application CRASHES if try to open several PDF files.
2. Application CRASHES at several pages of PDF files.
3. Application CRASHES if try to turn pages too fast.

What is the expected output? What do you see instead?
Need the application doesn't chash.

What version of the product are you using? On what operating system?
Application: apv-0.3.1dev9.apk
Platform: Android 2.0
Device: 
Name: EKEN M001 (Chineese)
RAM: 128 RAM
Proccessor: VIA 600MHz
Screen: TFT LCD 800*480 sersor

Please provide any additional information below.
Goog day developers of the best Anroid PDF Reader!
CRASH - application doesn't close, closes the PDF file. And we return to the 
menu of files selection.
The CRASH problem rise when I try to open PDF files, what were converted from 
Djvu. All files that I downloaded from Internet - opened very good.
BUT! Not all books have PDF format, so I need convert from Djvu. I converted by 
STDU Converter, PDF printer (open Djvu file and print to PDF). I tried a lot of 
PDF printers, one part of them make book can't open!, another converted books 
and can open the first page and if try to turn the page - application CRASHs.

Opinion:
1) Converted PDF files have defect, but I don't know wich and how can I fix it.
2) Another PDF reader (for Example Repligo Reader) can open and doesn't crash. 
But if I wanted use those reader, I didn't write here! :)
3) Applcation CRASHS at several pages, where page has a picture! BUT!! All 
pages PDF book - image (withot text), so it is not the answer - but fact!
File (russian :): Девис. Суперсила. Поиски единой 
теории природы (Adobe).pdf.
CRASHes at pages: 9, 11.
4) Some books doesn't open and that's all...
File (russian :): Девис. Суперсила. Поиски единой 
теории природы.pdf.
CRASHes when try to open book.
5) CRASHs, when I try very fast turn pages, and can see the message like:
Sorry!
Activity PDF Viewer (in application PDF Viewer) is not responding.
Buttons: "Force close" and "Wait"
At this moment application can CRASHes.
6) Good new: there is the file "Лучшие компьютерные игры 
№6 (Best Computers Games).pdf". This file has image files. Works very fast!!
Want you can understand, why some files very slow with not big size. This file 
- 63.3 Mb, 203 pages! Works excellent!
A can't attach files here, so I will place them at FileSheres.
http://files.mail.ru/UK6E49
http://rapidshare.ru/ulsuccess.php?sid=4kutrckn0r7e9hblpv3ou3m7s3
http://depositfiles.com/files/245yqesle
7) File became a little better, when I make with Adobe PDF "Save as" - "File 
optimization".

Thanks!
Your application - very good! And we will make it together - the best!
Oleg. Ukraine, Kharkov.

Original issue reported on code.google.com by OlegDere...@gmail.com on 22 Sep 2011 at 6:10

GoogleCodeExporter commented 9 years ago
My guess is that the kind of encoding used for images makes a big difference as 
to speed.  I'll try to play with these.

Original comment by arpruss on 22 Sep 2011 at 7:35

GoogleCodeExporter commented 9 years ago
I note that at 128mb the device is kind of low on RAM.  That might be the 
issue.  Try turning off the "Render ahead" option and see if that helps.  (It 
will slow things down.)  Also make sure that the option to allocate extra 
memory is set to zero.

Original comment by arpruss on 22 Sep 2011 at 7:36

GoogleCodeExporter commented 9 years ago
I tried all possible combinations... Result the same.
I tried to get this book with not 150 pages, just 50. Result the same.
15 pages :) - the same...
Of course, it can be the problem at my device, and I can't say, that it is not 
possible, and at another devices it works good. But another documents with more 
size and quality works great! I very want to use this application, that has so 
much settings, what I can use just for me, and all settings are so useful... No 
one reader does not have so.
I have more enhancements, but it is later.
P.S. I wanted to ask: Why does application close book without exception and any 
messages? Of course, it is for more usability, maybe for testing it is good to 
have exception messages for knowing causes and place of code of crashing? It 
just my thought :)
Thanks!

Original comment by OlegDere...@gmail.com on 22 Sep 2011 at 7:53

GoogleCodeExporter commented 9 years ago
I think that it's running out of memory (128mb is low for Android) and the OS 
silently closes the activity for that reason.

Have you tried closing all other applications and processes with a task killer 
before launching apv?

Original comment by arpruss on 5 Oct 2011 at 2:51

GoogleCodeExporter commented 9 years ago
I understand. I will try make some tests tonight. When I finish, I'll answer 
immediately.

Original comment by OlegDere...@gmail.com on 5 Oct 2011 at 2:58

GoogleCodeExporter commented 9 years ago
Good Day!
How I promised, I did some tests.
1) Installed Task Killer and killed all processes. Free memory is 45 MB.
2) Tried to open attached books: result the same - CRASH. Reason: I think 
problem not exactly at application, it is problem into this PDF files. APV 
doesn't want open.
The pages of these PDF files - images. They doesn't content text (fonts), that 
could reduce quantity of Kbytes per page. Сalculations show, that files can 
have for example 250 - 500 kbytes/page or more. And maybe of it application 
crashes...
3) When I open another files, APV uses about 20-25 MB RAM memory. Free memory - 
20 Mb. When I try scroll pages very fast, happens, that APV crashes, but not 
often.
Resume: I think the problem is not "OUT OF MEMORY".
4) PDF files, that have text (OCR layer) works very fast! I opened files with 
1000 (and one file was 1980 pages!!). First time opens not very fast, another 
times faster. Scroll - nearly immediately.
5) I will try parse file "Лучшие компьютерные игры №6 
(Best Computers Games).pdf" to understand the structure. When I open this file 
(I don't yet understand why) works excellent! All pages - images without text, 
but rendering very fast. Maybe it depends on quality of images into PDF files, 
but need to know limit where quality is good for eyes and not heavy for APV.

I think we nearly understand the problem, and, certainly, this is not problem 
of APV, but I can't say, that this problem wouldn't rise at another devices.
If I will have info about this theme, I will write at this branch.
Thanks.

Original comment by OlegDere...@gmail.com on 6 Oct 2011 at 10:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Good Day developers!
First, I want to say sorry to arpruss, because I was not right.
1) I sad, that the problem was with some files, what were converted from Djvu 
format. So, for example file "Девис. Суперсила. Поиски 
единой теории природы (Adobe).pdf" crashes at 9-th page, 
because Djvu to PDF Converter (there were a lot of PDF printers), make the 1 
page with size - 24 MB! I checked it, when extracted pictures from PDF file by 
PDF Image Extractor. All pages were fine, had 1.04 Mb, and crashed pages was 24 
Mb. So maybe, if EKEN 001 had more memory, it didn't crash, but at this 
situation it works like this.
2) Another files, what didn't open - had first page - 24 Mb. So files crashed 
at once.
3) If I convert by another (normal!) program, and pages have right size, APV 
doesn't crash.

One more, what I wanted to say: I sad, that file "Лучшие 
компьютерные игры №6 (Best Computers Games).pdf" works very 
good. I know why. Extracted pages from this file showed, that pictures inside 
PDF file have dimension 1000 px * 1500 px, 300 dpi, and format jpg. "EKEN eats 
this file as chocolate".
The file "Девис. Суперсила. Поиски единой 
теории природы (Adobe).pdf" has 2700 px * 3600 px, 300 dpi, BMP 
format. So, it is very hard for my device. No, it opens, and I can't say, that 
to read this file bad, but not comfortable a lot.
Thanks arpruss and I very sorry, that I spent your time. You were right.
Oleg

Original comment by OlegDere...@gmail.com on 9 Oct 2011 at 3:26