Consumer closed input channel or error occurred. events = 0x8

01-03 11:28:47.499: ERROR/InputDispatcher(164): channel '4085fe50 com.bce.tip/com.bce.tip.core.MenuActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8 01-03 11:28:47.499: ERROR/InputDispatcher(164): channel '4085fe50 com.bce.tip/com.bce.tip.core.MenuActivity (server)' ~ Channel is unrecoverably broken and will be disposed!` 

When I click on the call to the Imageview action, but I call this onclick in a class of another class

+4
source share
2 answers

Solved: 1) Basically, these errors occur a couple of times if the number of running processes at a time in one thread. This is like a dead end. Thus, any scheduled tasks make it synchronized with specific load objects. 2) Kill unused processes during the Burden on MainThread.

+4
source

It happened to me minutes ago, and I found a reason! This was the code that called it:

  Canvas pattern = new Canvas(); Bitmap bitmapPattern = Bitmap.createBitmap(pattern.getWidth(),canvas.getHeight(),Bitmap.Config.ARGB_8888); pattern.setBitmap(bitmapPattern); pattern.drawLine(0, 0, 1, 1, paintStroke); paintFill.setShader(new BitmapShader(bitmapPattern, TileMode.REPEAT, TileMode.REPEAT)); 

and the reason is: "pattern.getWidth (), canvas.getHeight ()", these parameters can be infinite, I have not defined anything on the canvas yet! Changing it to numbers, I get rid of this error!

+3
source

All Articles