在 fragment 中 的webview 有的手机里 会闪退 报错信息如下:
image.png
chrome build fingerprint
rise I/Choreographer: Skipped 40 frames! The application may be doing too much work on its main thread.
This exception happens in the native code, there isn't much you can do in your Java code about it. Seems to be a graphic memory exhaustion, as it is crashing in malloc called from the GL library code. You say that the WebView is never destroyed, perhaps this is a result of memory fragmentation (the graphics code allocates / frees memory, and finally the memory map becomes so fragmented, that it's not possible to find a contiguous block of the requested size). I would suggest considering destroying and recreating WebView from time to time.
这种异常发生在本机代码中,在Java代码中对此无能为力。似乎是图形内存耗尽,因为它在从GL库代码调用的malloc中崩溃。您说WebView永