joniks / Android-MuPDF

MuPDF usage for magazine reading
GNU Affero General Public License v3.0
184 stars 74 forks source link

Large size pdf files render cause memory issue and crash app #11

Open sssvrock opened 8 years ago

sssvrock commented 8 years ago

\ If I am trying to render 1.68MB pdf file I am getting blank black screen

If I am scrolling the mDocView ( listview ) memory issue came and crash the application

-- can you please suggest how can I load HD version PDF files?

Error:

E/OpenGLRenderer: GL error: Out of memory! E/art: Throwing OutOfMemoryError "Failed to allocate a 8294412 byte allocation with 16777120 free bytes and 228MB until OOM" E/libmupdf: error: cycle in page tree E/libmupdf: cannot make displaylist from page 2 E/libmupdf: error: cycle in page tree E/libmupdf: cannot make displaylist from page 2 E/libmupdf: error: cycle in page tree E/libmupdf: cannot make displaylist from page 2 E/libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 25956 (Thread-29224)

                                                         [ 05-12 16:18:46.027 18198:18198 W/         ]
                                                         handle_request(10) debug_value = false;

                                                         [ 05-12 16:18:46.027 18198:18198 W/         ]
                                                         wait_for_sigstope = 19

                                                         [ 05-12 16:18:46.077 18198:18198 W/         ]
                                                         wait_for_sigstope = 6

E/libutils.threads: androidCreateRawThreadEtc failed (entry=0xb6dadb01, res=11, errno=0)

crazywenza commented 5 years ago

I have same issue. The problem you solved?

Devandroid2006 commented 5 years ago

I am also facing the same issue.