Open FranciscoBartilotti opened 8 years ago
Happy to say I found the problem, more than 1 thread was trying to open the document, after revision, everything works as intended.
Hi,
Can you please let me know what changes you made to resolve this issue?
I am using RxJava, an Observable and Subscription to create a new thread to load the pdf and extract its bitmap. The problem was that more than 1 call could be made to this method, so there could be more than one thread opening the pdf. I added flags to check for this in my code, I changed nothing in the lib. What problem are you experiencing?
Hi, I am opening PDFs in 7 different tabs simultaneously. In first tab it opens properly but in other tabs the app crashes. Please suggest what can I do.
It seems it is not possible to load various pdfs without changing the native code because each time it loads the lib,
D/PdfDroid: initializing PdfRender JNI library based on MuPDF
D/PdfDroid: PdfDocument.nativeOpen(): return handle = 0xb991f238
I suggest you call one, wait for it to load, then proceed with the next.
I'm using this library to load multiple pdf files back to back in same fragment. My fragment has a pdf view , next and previous buttons to switch between pdf files. I'm facing app crash when loading files back to back. Nothing changes even i give it some time say two three seconds after loading each file. Still crashes. Included library via gradle (version 1.0.4). I'm modifying an old work, can anyone suggest a resolution for the issue?
Here attaching my stack trace
GET RID OF THE ISSUE FOR MY USE CASE Added a delay of 2sec before calling new pdf load using handler().postDelayed. Simple but saved the day
Hi, first of all thank you for your work!
I am using this code to extract a bitmap from the pdf file:
The problem presents consistently when opening 4 pdfs, then trying to open a fifth will crash the app. I am using a Moto G3, Android 6.0 for testing.
Here is the log:
Also, sometimes the last line changes to:
A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0xa1c5c000 in tid 30014 (RxIoScheduler-2)
Thank you for any help you can provide!