HOME > Mobile > Mobile Forum > รบกวนด้วยครับ !! พอดีเขียน Code Android ขึ้นมา เเต่มันรันได้บ้างเครื่อง โทรศัพท์ มันจะโชว์ Error ตัวนี้ java.lang.RuntimeException: Canvas: trying to draw too large ใน เครื่องที่รันไม่ได้ครับ
รบกวนด้วยครับ !! พอดีเขียน Code Android ขึ้นมา เเต่มันรันได้บ้างเครื่อง โทรศัพท์ มันจะโชว์ Error ตัวนี้ java.lang.RuntimeException: Canvas: trying to draw too large ใน เครื่องที่รันไม่ได้ครับ
09-12 08:51:55.621 17248-17248/com.khingwanthawat.farmerccs E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.khingwanthawat.farmerccs, PID: 17248
java.lang.RuntimeException: Canvas: trying to draw too large(141967620bytes) bitmap.
at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:229)
at android.view.RecordingCanvas.drawBitmap(RecordingCanvas.java:97)
at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:529)
at android.widget.ImageView.onDraw(ImageView.java:1367)
at android.view.View.draw(View.java:19204)
at android.view.View.updateDisplayListIfDirty(View.java:18154)
at android.view.View.draw(View.java:18932)
at android.view.ViewGroup.drawChild(ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4022)
at android.view.View.draw(View.java:19207)
at android.view.View.updateDisplayListIfDirty(View.java:18154)
at android.view.View.draw(View.java:18932)
at android.view.ViewGroup.drawChild(ViewGroup.java:4236)
at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1228)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4022)
at android.view.View.updateDisplayListIfDirty(View.java:18145)
at android.view.View.draw(View.java:18932)
at android.view.ViewGroup.drawChild(ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4022)
at android.view.View.updateDisplayListIfDirty(View.java:18145)
at android.view.View.draw(View.java:18932)
at android.view.ViewGroup.drawChild(ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4022)
at android.view.View.updateDisplayListIfDirty(View.java:18145)
at android.view.View.draw(View.java:18932)
at android.view.ViewGroup.drawChild(ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4022)
at android.view.View.updateDisplayListIfDirty(View.java:18145)
at android.view.View.draw(View.java:18932)
at android.view.ViewGroup.drawChild(ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4022)
at android.view.View.updateDisplayListIfDirty(View.java:18145)
at android.view.View.draw(View.java:18932)
at android.view.ViewGroup.drawChild(ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4022)
at android.view.View.draw(View.java:19207)
at com.android.internal.policy.DecorView.draw(DecorView.java:788)
at android.view.View.updateDisplayListIfDirty(View.java:18154)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:676)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:682)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:790)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:3006)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2810)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2363)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1396)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6773)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:966)
at android.view.Choreographer.doCallbacks(Choreographer.java:778)
at android.view.Choreographer.doFrame(Choreographer.java:713)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:952)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6518)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)