What is Native crash at /system/lib/libc.so?

北慕城南 提交于 2019-12-30 09:42:34

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/27920453/what-is-native-crash-at-system-lib-libc-so

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!