关闭

androird textview trying to use a recycled bitmap android.graphics

标签: textviewcanvasandroid
72人阅读 评论(4) 收藏 举报
分类:

近期写android碰上一个textview的奇葩问题,求各路大神入住


java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@2e09f030

08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1282)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.graphics.Canvas.drawBitmap(Canvas.java:1416)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:539)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.widget.TextView.onDraw(TextView.java:5414)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.View.draw(View.java:15305)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.View.draw(View.java:15214)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.drawChild(ViewGroup.java:3414)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3205)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.View.draw(View.java:15308)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.View.draw(View.java:15214)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.drawChild(ViewGroup.java:3414)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3205)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.View.draw(View.java:15212)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.drawChild(ViewGroup.java:3414)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3205)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.View.draw(View.java:15212)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.drawChild(ViewGroup.java:3414)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3205)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.View.draw(View.java:15212)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.drawChild(ViewGroup.java:3414)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3205)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.View.draw(View.java:15308)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.widget.FrameLayout.draw(FrameLayout.java:598)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2674)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2779)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewRootImpl.draw(ViewRootImpl.java:2685)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2425)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2048)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1105)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6204)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:799)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.Choreographer.doCallbacks(Choreographer.java:612)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.Choreographer.doFrame(Choreographer.java:581)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.view.Choreographer$FrameHandler.handleMessage(Choreographer.java:714)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.os.Looper.loop(Looper.java:135)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5669)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at java.lang.reflect.Method.invoke(Method.java:372)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
08-29 15:43:52.889 26558-26558/com.BDB.bdbconsumer W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:75次
    • 积分:10
    • 等级:
    • 排名:千里之外
    • 原创:1篇
    • 转载:0篇
    • 译文:0篇
    • 评论:4条
    文章分类
    文章存档
    最新评论