java.lang.IllegalArgumentException: at android.graphics.Bitmap.createBitmap (Bitmap.java:850) at android.graphics.Bitmap.createBitmap (Bitmap.java:829) at android.graphics.Bitmap.createBitmap (Bitmap.java:796) at com.bluejamesbond.text.DocumentView$CacheBitmap.<init> (SourceFile:809) at com.bluejamesbond.text.DocumentView.allocateResources (SourceFile:632) at com.bluejamesbond.text.DocumentView.onMeasure (SourceFile:477) at android.view.View.measure (View.java:18930) at android.widget.RelativeLayout.measureChildHorizontal (RelativeLayout.java:715) at android.widget.RelativeLayout.onMeasure (RelativeLayout.java:461) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.support.v7.widget.CardView.onMeasure (SourceFile:218) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1486) at android.widget.LinearLayout.measureVertical (LinearLayout.java:765) at android.widget.LinearLayout.onMeasure (LinearLayout.java:647) at android.view.View.measure (View.java:18930) at android.support.v4.widget.NestedScrollView.measureChildWithMargins (SourceFile:1446) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.support.v4.widget.NestedScrollView.onMeasure (SourceFile:512) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.view.View.measure (View.java:18930) at android.widget.RelativeLayout.measureChildHorizontal (RelativeLayout.java:715) at android.widget.RelativeLayout.onMeasure (RelativeLayout.java:461) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.support.design.widget.CoordinatorLayout.onMeasureChild (SourceFile:714) at android.support.design.widget.j.onMeasureChild (SourceFile:91) at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild (SourceFile:1361) at android.support.design.widget.CoordinatorLayout.onMeasure (SourceFile:784) at android.view.View.measure (View.java:18930) at android.support.v4.widget.DrawerLayout.onMeasure (SourceFile:1060) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.support.v7.widget.ContentFrameLayout.onMeasure (SourceFile:139) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1486) at android.widget.LinearLayout.measureVertical (LinearLayout.java:765) at android.widget.LinearLayout.onMeasure (LinearLayout.java:647) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1486) at android.widget.LinearLayout.measureVertical (LinearLayout.java:765) at android.widget.LinearLayout.onMeasure (LinearLayout.java:647) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at com.android.internal.policy.PhoneWindow$DecorView.onMeasure (PhoneWindow.java:2705) at android.view.View.measure (View.java:18930) at android.view.ViewRootImpl.performMeasure (ViewRootImpl.java:2154) at android.view.ViewRootImpl.measureHierarchy (ViewRootImpl.java:1248) at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1484) at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1139) at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6238) at android.view.Choreographer$CallbackRecord.run (Choreographer.java:884) at android.view.Choreographer.doCallbacks (Choreographer.java:696) at android.view.Choreographer.doFrame (Choreographer.java:631) at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:870) at android.os.Handler.handleCallback (Handler.java:743) at android.os.Handler.dispatchMessage (Handler.java:95) at android.os.Looper.loop (Looper.java:150) at android.app.ActivityThread.main (ActivityThread.java:5621) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:794) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:684)
I recive this report in one app:
Huawei P8 Lite (hwALE-H), 2048MB RAM, Android 6.0
java.lang.IllegalArgumentException: at android.graphics.Bitmap.createBitmap (Bitmap.java:850) at android.graphics.Bitmap.createBitmap (Bitmap.java:829) at android.graphics.Bitmap.createBitmap (Bitmap.java:796) at com.bluejamesbond.text.DocumentView$CacheBitmap.<init> (SourceFile:809) at com.bluejamesbond.text.DocumentView.allocateResources (SourceFile:632) at com.bluejamesbond.text.DocumentView.onMeasure (SourceFile:477) at android.view.View.measure (View.java:18930) at android.widget.RelativeLayout.measureChildHorizontal (RelativeLayout.java:715) at android.widget.RelativeLayout.onMeasure (RelativeLayout.java:461) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.support.v7.widget.CardView.onMeasure (SourceFile:218) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1486) at android.widget.LinearLayout.measureVertical (LinearLayout.java:765) at android.widget.LinearLayout.onMeasure (LinearLayout.java:647) at android.view.View.measure (View.java:18930) at android.support.v4.widget.NestedScrollView.measureChildWithMargins (SourceFile:1446) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.support.v4.widget.NestedScrollView.onMeasure (SourceFile:512) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.view.View.measure (View.java:18930) at android.widget.RelativeLayout.measureChildHorizontal (RelativeLayout.java:715) at android.widget.RelativeLayout.onMeasure (RelativeLayout.java:461) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.support.design.widget.CoordinatorLayout.onMeasureChild (SourceFile:714) at android.support.design.widget.j.onMeasureChild (SourceFile:91) at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild (SourceFile:1361) at android.support.design.widget.CoordinatorLayout.onMeasure (SourceFile:784) at android.view.View.measure (View.java:18930) at android.support.v4.widget.DrawerLayout.onMeasure (SourceFile:1060) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.support.v7.widget.ContentFrameLayout.onMeasure (SourceFile:139) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1486) at android.widget.LinearLayout.measureVertical (LinearLayout.java:765) at android.widget.LinearLayout.onMeasure (LinearLayout.java:647) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1486) at android.widget.LinearLayout.measureVertical (LinearLayout.java:765) at android.widget.LinearLayout.onMeasure (LinearLayout.java:647) at android.view.View.measure (View.java:18930) at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5976) at android.widget.FrameLayout.onMeasure (FrameLayout.java:194) at com.android.internal.policy.PhoneWindow$DecorView.onMeasure (PhoneWindow.java:2705) at android.view.View.measure (View.java:18930) at android.view.ViewRootImpl.performMeasure (ViewRootImpl.java:2154) at android.view.ViewRootImpl.measureHierarchy (ViewRootImpl.java:1248) at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1484) at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1139) at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6238) at android.view.Choreographer$CallbackRecord.run (Choreographer.java:884) at android.view.Choreographer.doCallbacks (Choreographer.java:696) at android.view.Choreographer.doFrame (Choreographer.java:631) at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:870) at android.os.Handler.handleCallback (Handler.java:743) at android.os.Handler.dispatchMessage (Handler.java:95) at android.os.Looper.loop (Looper.java:150) at android.app.ActivityThread.main (ActivityThread.java:5621) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:794) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:684)