Crashing on PDF with a bad page.#433
Crashing on PDF with a bad page.#433maroney-tm wants to merge 1 commit intoDImuthuUpe:masterfrom maroney-tm:master
Conversation
…ble crash being passed on to the user. Ideally this should be render an error page or give the user the option to show an error message. As it is now it just doesn't render anything and shows a black screen on the offending page
|
Thanks for the PDF this allowed me to resolve some other crashing issues which knocked on from the original crash. But i dont need to return null, the pdf works regardless after the initial crash, i can even create my thumbs etc with no issues. |
|
What do you mean when you say "the pdf works regardless after the initial crash"? In my app, after you scroll to the page causing the crash I get
Which causes the app to crash and it needing to be launched again. |
|
I investigated and found other issues which I partially fixed to do with concurrent something, after I fixed my orientation bug I added to try catch and I don't need to restart. I can view two blank pages and the see the rest of the pdf. |
|
I see what you mean now. I just updated the library to 2.8.0 and it is no longer failing. |
Wrapped pdfiumCore.openPage() with a try catch to prevent an unrecoverable crash being passed on to the user. Ideally this should render an error page or give the user the option to show an error message. As it is now it just doesn't render anything and shows a black screen on the offending page
Attached is a PDF with a page that won't render. (page 7)
test.pdf