问题描述
我越来越崩溃,向下滚动,并建立一个列表视图从我的应用程序,但其误差不理解的。我附上谷歌开发者控制台中的bug报告的截图。
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.
请通过它去。
适配器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.
推荐答案
您code在 jpeg_start_decom $ P $(PSS)
在命名的本地函数失败库 libjpeg.so
,所以我最好的猜测是,你试图显示损坏的JPEG文件或类似的东西。
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.
这篇关于什么是/system/lib/libc.so本地崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!