I am getting crash while scrolling down and up a listview from my app but the error is not quite understandable. I am attaching the bug report screenshot from Google Developer Console.
Please go through it.
Adapter getView Code:
public View getView(final int position, View convertView, ViewGroup parent) {
ViewHolder holder = null;
if (convertView == null) {
holder = new ViewHolder();
convertView = mInflater.inflate(R.layout.adapter_item_list,
parent, false);
holder.labelName = (TextView) convertView
.findViewById(R.id.item_label);
holder.labelInfo = (TextView) convertView
.findViewById(R.id.item_info);
holder.mImgArrow = (ImageView) convertView
.findViewById(R.id.iv_arrow);
holder.mImgIcon = (RoundCornerImage) convertView
.findViewById(R.id.grid_item_image);
holder.relative_cell_view = (RelativeLayout) convertView
.findViewById(R.id.relative_cell_view);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
appSharedPrefrence = AppSharedPrefrence.getsharedprefInstance(context);
final FileBean dataBean = dataList.get(position);
holder.labelName.setText(position+" : "+dataBean.getName());
holder.labelInfo.setText(replace_comma(dataBean.getinfo()));
try{
ImageLoader.getImageLoader(context).DisplayImage(dataBean.getImageUrl(), holder.mImgIcon,R.drawable.logo);
}catch(OutOfMemoryError e){
}
return convertView; }
This is the above crash report i am getting , please let me know and suggest me some solution.
Your code fails in a native function named jpeg_start_decompress()
in the library libjpeg.so
, so my best guess is that you are trying to display a corrupted JPEG file or something like that.
If you have access to the images, I would suggest you to try to open them all on your computer and see if there isn't one that fails to load.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With