Android Chromium Webview Crash
Solution 1:
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.
Also, it seems that this crash report is from a CyanogenMod rom. Do you have the same problem when using genuine Android builds?
Solution 2:
I don't know if this is still a problem but I recently encountered a similar problem on a Samsung device with Mali GPU and it turned out to be a piece of ES6 code running in WebView (namely an arrow function). Once I changed it to use ES5 'function' keyword, the error was no longer happening.
If this is still a problem for you, I'd suggest checking for use of any ES6 syntax and changing it to ES5 syntax or use Babel.
Might be an issue with ES6 interpreter within Chrome/Chromium WebView.
Post a Comment for "Android Chromium Webview Crash"