ScanLibrary is an android document scanning library built on top of OpenCV, using the app you will be able to select the exact edges and crop the document accordingly from the selected 4 edges and change the perspective transformation of the cropped image.
MIT License
1.07k
stars
472
forks
source link
Canvas: trying to draw too large(192464280bytes) bitmap. #158
E/AndroidRuntime(12149): java.lang.RuntimeException: Canvas: trying to draw too large(192464280bytes) bitmap.
E/AndroidRuntime(12149): at android.graphics.RecordingCanvas.throwIfCannotDraw(RecordingCanvas.java:281)
E/AndroidRuntime(12149): at android.graphics.BaseRecordingCanvas.drawBitmap(BaseRecordingCanvas.java:91)
E/AndroidRuntime(12149): at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:548)
E/AndroidRuntime(12149): at android.widget.ImageView.onDraw(ImageView.java:1434)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:23191)
E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22066)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921)
E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230)
E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987)
E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921)
E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230)
E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:23194)
E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22066)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921)
E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230)
E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987)
E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921)
E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230)
E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987)
E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921)
E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230)
E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987)
E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921)
E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230)
E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987)
E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921)
E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230)
E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987)
E/AndroidRuntime(12149): at android.view.View.draw(View.java:23194)
E/AndroidRuntime(12149): at com.android.internal.policy.DecorView.draw(DecorView.java:1114)
E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22066)
E/AndroidRuntime(12149): at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:588)
E/AndroidRuntime(12149): at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:594)
E/AndroidRuntime(12149): at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:667)
E/AndroidRuntime(12149): at android.view.ViewRootImpl.draw(ViewRootImpl.java:4260)
E/AndroidRuntime(12149): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:4044)
E/AndroidRuntime(12149): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3317)
E/AndroidRuntime(12149): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2197)
E/AndroidRuntime(12149): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8996)
E/AndroidRuntime(12149): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:996)
E/AndroidRuntime(12149): at android.view.Choreographer.doCallbacks(Choreographer.java:794)
E/AndroidRuntime(12149): at android.view.Choreographer.doFrame(Choreographer.java:729)
E/AndroidRuntime(12149): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:981)
E/AndroidRuntime(12149): at android.os.Handler.handleCallback(Handler.java:883)
E/AndroidRuntime(12149): at android.os.Handler.dispatchMessage(Handler.java:100)
E/AndroidRuntime(12149): at android.os.Looper.loop(Looper.java:237)
E/AndroidRuntime(12149): at android.app.ActivityThread.main(ActivityThread.java:7860)
E/AndroidRuntime(12149): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(12149): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(12149): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
I/Process (12149): Sending signal. PID: 12149 SIG: 9
Lost connection to device.
Exited (sigterm)
E/AndroidRuntime(12149): java.lang.RuntimeException: Canvas: trying to draw too large(192464280bytes) bitmap. E/AndroidRuntime(12149): at android.graphics.RecordingCanvas.throwIfCannotDraw(RecordingCanvas.java:281) E/AndroidRuntime(12149): at android.graphics.BaseRecordingCanvas.drawBitmap(BaseRecordingCanvas.java:91) E/AndroidRuntime(12149): at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:548) E/AndroidRuntime(12149): at android.widget.ImageView.onDraw(ImageView.java:1434) E/AndroidRuntime(12149): at android.view.View.draw(View.java:23191) E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22066) E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921) E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230) E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987) E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052) E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921) E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230) E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987) E/AndroidRuntime(12149): at android.view.View.draw(View.java:23194) E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22066) E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921) E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230) E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987) E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052) E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921) E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230) E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987) E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052) E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921) E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230) E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987) E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052) E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921) E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230) E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987) E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22052) E/AndroidRuntime(12149): at android.view.View.draw(View.java:22921) E/AndroidRuntime(12149): at android.view.ViewGroup.drawChild(ViewGroup.java:5230) E/AndroidRuntime(12149): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4987) E/AndroidRuntime(12149): at android.view.View.draw(View.java:23194) E/AndroidRuntime(12149): at com.android.internal.policy.DecorView.draw(DecorView.java:1114) E/AndroidRuntime(12149): at android.view.View.updateDisplayListIfDirty(View.java:22066) E/AndroidRuntime(12149): at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:588) E/AndroidRuntime(12149): at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:594) E/AndroidRuntime(12149): at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:667) E/AndroidRuntime(12149): at android.view.ViewRootImpl.draw(ViewRootImpl.java:4260) E/AndroidRuntime(12149): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:4044) E/AndroidRuntime(12149): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3317) E/AndroidRuntime(12149): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2197) E/AndroidRuntime(12149): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8996) E/AndroidRuntime(12149): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:996) E/AndroidRuntime(12149): at android.view.Choreographer.doCallbacks(Choreographer.java:794) E/AndroidRuntime(12149): at android.view.Choreographer.doFrame(Choreographer.java:729) E/AndroidRuntime(12149): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:981) E/AndroidRuntime(12149): at android.os.Handler.handleCallback(Handler.java:883) E/AndroidRuntime(12149): at android.os.Handler.dispatchMessage(Handler.java:100) E/AndroidRuntime(12149): at android.os.Looper.loop(Looper.java:237) E/AndroidRuntime(12149): at android.app.ActivityThread.main(ActivityThread.java:7860) E/AndroidRuntime(12149): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(12149): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) E/AndroidRuntime(12149): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075) I/Process (12149): Sending signal. PID: 12149 SIG: 9 Lost connection to device. Exited (sigterm)