Could someone help me with this crash report

前端 未结 2 1008
無奈伤痛
無奈伤痛 2020-12-14 11:07
Build fingerprint: \'Verizon/kltevzw/kltevzw:5.0/LRX21T/G900VVRU2BOE1:user/release-keys\'
Revision: \'14\'
ABI: \'arm\'
pid: 30968, tid: 30968, name: com.myapp >&         


        
相关标签:
2条回答
  • 2020-12-14 11:23

    I had the same issue in jni_android.cc(295). I have a ẀebView inside a Fragment. When quickly opening and closing the Fragment, chromium WebView would cause the whole app to crash. This is what helped:

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        webView=null; // remove webView, prevent chromium to crash
    }
    
    0 讨论(0)
  • 2020-12-14 11:33

    Had the same issue and after hours of trial and error, I have finally solved this. All you have to do is destroy() the WebView before Activity finishes

    @Override
    protected void onDestroy() {
        if (myWbView != null)
            myWbView.destroy();
        super.onDestroy();
    }
    

    Maybe if (myWbView != null) is not really necessary, but I wrote it anyway to stay safe

    0 讨论(0)
提交回复
热议问题