3 Replies Latest reply on Sep 27, 2016 11:36 AM by kerrishotts

    App crashes on startup

    melb101 Level 1

      Hi all,

       

      The App we have been developing has been working fine on most devices, however we have noticed that it is crashing on startup on Android 7 devices. The most common device is the Nexus6p. No error is displayed to the user however a couple of users have submitted the following error report which indicates that a Runtime Exception has occurred such that canvas is trying to draw a 150MB bitmap. I am not really sure what is causing this error and would appreciate any help. The same app seems to work fine on other devices and even on the Nexus 6p when an earlier version of Android is installed.

       

      My App ID is 1059690.

       

      Thanks in advance for your help.

       

      Ed.

       

      java.lang.RuntimeException: Canvas: trying to draw too large(150126592bytes) bitmap.

      at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260)

      at android.graphics.Canvas.drawBitmap(Canvas.java:1415)

      at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:545)

      at android.widget.ImageView.onDraw(ImageView.java:1268)

      at android.view.View.draw(View.java:17067)

      at android.view.View.updateDisplayListIfDirty(View.java:16049)

      at android.view.View.draw(View.java:16833)

      at android.view.ViewGroup.drawChild(ViewGroup.java:3764)

      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)

      at android.view.View.updateDisplayListIfDirty(View.java:16044)

      at android.view.View.draw(View.java:16833)

      at android.view.ViewGroup.drawChild(ViewGroup.java:3764)

      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)

      at android.view.View.updateDisplayListIfDirty(View.java:16044)

      at android.view.View.draw(View.java:16833)

      at android.view.ViewGroup.drawChild(ViewGroup.java:3764)

      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)

      at android.view.View.draw(View.java:17070)

      at com.android.internal.policy.DecorView.draw(DecorView.java:751)

      at android.view.View.updateDisplayListIfDirty(View.java:16049)

      at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:656)

      at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:662)

      at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:770)

      at android.view.ViewRootImpl.draw(ViewRootImpl.java:2796)

      at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2604)

      at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2211)

      at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)

      at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)

      at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)

      at android.view.Choreographer.doCallbacks(Choreographer.java:683)

      at android.view.Choreographer.doFrame(Choreographer.java:619)

      at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)

      at android.os.Handler.handleCallback(Handler.java:751)

      at android.os.Handler.dispatchMessage(Handler.java:95)

      at android.os.Looper.loop(Looper.java:154)

      at android.app.ActivityThread.main(ActivityThread.java:6077)

      at java.lang.reflect.Method.invoke(Native Method)

      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)

      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)