Coder Social home page Coder Social logo

Comments (18)

JoanZapata avatar JoanZapata commented on June 2, 2024

Hi, do you mean the pdf file hasn't been downloaded entirely yet?

from android-pdfview.

nitinmishra27 avatar nitinmishra27 commented on June 2, 2024

The download was interrupted due to internet connection. And just for
testing purpose I clicked on it and then it crashed.
On Feb 18, 2014 6:57 PM, "Joan Zapata" [email protected] wrote:

Hi, do you mean the pdf file hasn't been downloaded entirely yet?

Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-35383572
.

from android-pdfview.

JoanZapata avatar JoanZapata commented on June 2, 2024

Oh I see, I didn't understand that the exception was coming from an AsyncTask, preventing you from catching it.

I guess the error should delegated to an error handler that you could implement yourself then.
I don't have time for now but feel free to submit a pull request!

from android-pdfview.

anna-b avatar anna-b commented on June 2, 2024

Has this issue was fixed somehow or are there any workarounds for it?

from android-pdfview.

JoanZapata avatar JoanZapata commented on June 2, 2024

Nothing yet, you should be able to catch it using Thread.setDefaultUncaughtExceptionHandler() but it's bad. PR is welcome.

from android-pdfview.

ajdevy avatar ajdevy commented on June 2, 2024

still not solved?

from android-pdfview.

JoanZapata avatar JoanZapata commented on June 2, 2024

PR is still welcome.

from android-pdfview.

ajdevy avatar ajdevy commented on June 2, 2024

public relations? ) why don't you just catch the exception and create a callback interface for the developer to catch the error?

from android-pdfview.

JoanZapata avatar JoanZapata commented on June 2, 2024

public relations?

Pull Request

why don't you just catch the exception and create a callback interface for the developer to catch the error?

Because I don't have the time or the need to do so. This library is free and open source, everyone can participate and submit code to be integrated.

from android-pdfview.

campiador avatar campiador commented on June 2, 2024

@JoanZapata Same problem here, would be great if you could kindly make time to fix it.

from android-pdfview.

sush4042 avatar sush4042 commented on June 2, 2024

@JoanZapata , The RenderingAsyncTask.java create the new thread for data render, the exception occur on different thread while load the page on PDFview, It should not allow to manage exception in application. Please can you check this over the service thread execution.

from android-pdfview.

milandhanani avatar milandhanani commented on June 2, 2024

I added a new update on my brach that might fix this issue. I added a onErrorOCcuredListener class which notifies the parent activity/class when an error occurs while opening a corrupted pdf. I was having the exact same problem and this seems to overcome that.

Hope it helps. Cheers.

from android-pdfview.

RiotGoesWoof avatar RiotGoesWoof commented on June 2, 2024

Since when is fixing crashing when losing internet connection an "enhancement"? This should be a bug. Currently trying to find a workaround. @milandhanani would you be able to make your solution a pull request so the author will acknowledge it?

from android-pdfview.

liugt34 avatar liugt34 commented on June 2, 2024

i meet the problem to,had you solve it ?

from android-pdfview.

derohimat avatar derohimat commented on June 2, 2024

@milandhanani : please, publish your branch for fix this problem

from android-pdfview.

windydang26 avatar windydang26 commented on June 2, 2024

02/01/2018 and still not resolve? :(

from android-pdfview.

thuongtranhuy avatar thuongtranhuy commented on June 2, 2024

Hi,
is this problem resolve?

from android-pdfview.

toshihirooya avatar toshihirooya commented on June 2, 2024

Hi !
is this problem still not resolve... :(

by the way, what is "Incomplete PDF" ???

from android-pdfview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.