Android : LightingColorFilter causes FireTV to crash with "publisher closed input channel or an error occurred events 0x9"

on Sunday, November 2, 2014


Amazon FireTV (4.2.2) crashes after "publisher closed input channel or an error occurred events 0x9" error. It's triggered by manipulating the image before adding it into the gridvew with the following code:



Drawable icon = activity.getResources().getDrawable( gridviewImages.get(position) );
ColorFilter filter = new LightingColorFilter( Color.WHITE, Color.WHITE );
icon.setColorFilter(filter);
view.imgView.setImageDrawable(icon);


Not using LightingColorFilter eliminates the problem - when replacing the above with this line:



view.imgView.setImageResource(gridviewImages.get(position));


What is the right use of the LightingColorFiler - or any viable alternative to recolor image to a desired shade based on their alpha channel?


BTW, the issue only occurs on FireTV, possibly related to the GPU. Not on other 2 Android test devices.


0 comments:

Post a Comment