在安卓手机上出现假死情况

假死后点击什么都不管用,系统提示等待,过一会后程序强制退出,在低端机出现的比较严重,而且是不规律发生,引擎组能帮助解决下么?或者给个思路,貌似很多人遇到这样的问题,感谢

内存泄露了吧,比如频繁opendir,却未调用closedir,安卓gl线程会崩溃导致画面假死,但还能收到触摸事件的情况

有什么手段能检测下?貌似没法断点阿
iOS没这个问题

刚又去看了下,只有ui操作,和一个http请求

Node *deftist_item1 = static_cast<Node*>(CSLoader::createNode("Contacts/item/contacts_item1.csb"));
Layout *deftcontent_ll_1 = static_cast<Layout*>(deftist_item1->getChildByName("content_ll"));
deftcontent_ll_1->setTouchEnabled(true);


Layout *deftist_item = static_cast<Layout*>(CSLoader::createNode("Contacts/item/contacts_item.csb"));
Layout *deftcontent_ll = static_cast<Layout*>(deftist_item->getChildByName("content_ll"));
deftcontent_ll->setTouchEnabled(true);


std::list<Contacts>::iterator fit = list.begin();
int i =5;
for (;fit!=list.end();fit++,i++){
    Contacts c = fit.operator*();
    char _index = c.sortKey->getValue();

// string _index_temp(_index);
// string index_temp(index);
stringstream stream;
stream << _index;
bool isNewIndex =_index!=index;

    if (isNewIndex) {
        listView->setItemModel(deftcontent_ll_1);
        allHeight += deftcontent_ll_1->getSize().height;
        map = i;
    }else{
        listView->setItemModel(deftcontent_ll);
        allHeight += deftcontent_ll->getSize().height;
    }
   
    listView->pushBackDefaultItem();
    Widget* newitem= listView->getItem(i);
    
    
    if(isNewIndex){
        Layout *category_ll = static_cast<Layout*const>(newitem->getChildByName("category_ll"));
        Text *category = static_cast<Text*>(category_ll->getChildByName("category"));
        std::string indexText(stream.str());
        category->setText(indexText);
        index = _index;
    }
    
    Layout *contact_ll = static_cast<Layout*const>(newitem->getChildByName("contact_ll"));

// contact_ll->removeChild(contact_ll->getChildByName(“headImageLayout”));
ImageView head = static_cast<ImageView>(contact_ll->getChildByName(“headImageLayout”)->getChildByName(“head”));
// CheckBox checkBox = static_cast<CheckBox>(contact_ll->getChildByName(“checkBox”));
Text name = static_cast<Text>(contact_ll->getChildByName(“name”));
name->setText(c.nickName->getValue());
// std::string url = CONTACTSSERVICEBASE_URL;
// url += c.photo->getValue();
// string res = imageDownLoader.downloadPicture(url,CC_CALLBACK_2(ContactsMainScene::onDownImageComplete, this),head);
// if (res!="-1") {
//// head->loadTexture(res);
// ImageTools::initImageView(res, head);
// }
}

以上代码一解开注释就会有假死问题,相应的其他的界面也会发生,只要注释了ui操作就没事,可能是跨线程的问题?我也尝试过用消息的方式刷新ui 可是也不行