Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes while opening large pdf #41

Open
SaurabhDhage opened this issue Aug 24, 2021 · 2 comments
Open

Crashes while opening large pdf #41

SaurabhDhage opened this issue Aug 24, 2021 · 2 comments

Comments

@SaurabhDhage
Copy link

It work like charm when opening small pdfs but crashes when I try to open pdf with 2000 pages.

@Dmitry-Borodin
Copy link
Owner

Could you provide stacktrace?

@developerdaya
Copy link

Facing Same Issue, App Crash While opening the 900 Page PDF
If there Is any Solution, would be appreciated
FATAL EXCEPTION: main (Ask Gemini)
java.lang.IllegalArgumentException: Illegal Capacity: -6
at java.util.ArrayList.(ArrayList.java:170)
at com.pdfview.subsamplincscaleimageview.SubsamplingScaleImageView.initialiseTileMap(SubsamplingScaleImageView.java:1510)
at com.pdfview.subsamplincscaleimageview.SubsamplingScaleImageView.initialiseBaseLayer(SubsamplingScaleImageView.java:1276)
at com.pdfview.subsamplincscaleimageview.SubsamplingScaleImageView.onDraw(SubsamplingScaleImageView.java:985)
at android.view.View.draw(View.java:21635)
at android.view.View.updateDisplayListIfDirty(View.java:20476)
at android.view.View.draw(View.java:21351)
at android.view.ViewGroup.drawChild(ViewGroup.java:4485)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4237)
at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1994)
at android.view.View.updateDisplayListIfDirty(View.java:20467)
at android.view.View.draw(View.java:21351)
at android.view.ViewGroup.drawChild(ViewGroup.java:4485)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4237)
at android.view.View.updateDisplayListIfDirty(View.java:20467)
at android.view.View.draw(View.java:21351)
at android.view.ViewGroup.drawChild(ViewGroup.java:4485)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4237)
at android.view.View.updateDisplayListIfDirty(View.java:20467)
at android.view.View.draw(View.java:21351)
at android.view.ViewGroup.drawChild(ViewGroup.java:4485)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4237)
at android.view.View.updateDisplayListIfDirty(View.java:20467)
at android.view.View.draw(View.java:21351)
at android.view.ViewGroup.drawChild(ViewGroup.java:4485)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4237)
at android.view.View.updateDisplayListIfDirty(View.java:20467)
at android.view.View.draw(View.java:21351)
at android.view.ViewGroup.drawChild(ViewGroup.java:4485)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4237)
at android.view.View.draw(View.java:21642)
at com.android.internal.policy.DecorView.draw(DecorView.java:842)
at android.view.View.updateDisplayListIfDirty(View.java:20476)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:575)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:581)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:654)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:3874)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3660)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2980)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1882)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8047)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1041)
at android.view.Choreographer.doCallbacks(Choreographer.java:860)
at android.view.Choreographer.doFrame(Choreographer.java:785)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1026)
at android.os.Handler.handleCallback(Handler.java:914)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:225)
at android.app.ActivityThread.main(ActivityThread.java:7563)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:994)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants