Android: requestFileSystem in WebView causing crash

给你一囗甜甜゛ 提交于 2019-12-13 02:26:24

问题


I'm developing an offline app where I have to save files in html5 fs-sandbox. At desktop in Chrome everything works fine.

But my android device is crashing with 10-12 10:49:53.953: A/libc(9231): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) until I'm calling window.requestFileSystem(window.PERSISTENT, 5*1024*1024, fsInit, errorHandler);

Because window.storageInfois not defined in my WebView I could not call requestQuota in first. But window.requestFileSystem is defined and I think the crash results from the missing granted quota. Even when using window.TEMPORARY and/or a lower size it causes the error.


UPDATE: Bug reported: http://code.google.com/p/android/issues/detail?id=38420

来源:https://stackoverflow.com/questions/12855822/android-requestfilesystem-in-webview-causing-crash

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