Problem
The error I am getting while programming on android WebView is as following :
09-28 18:16:18.342: E/chromium(576): external/chromium/net/disk_cache/backend_impl.cc:1097: [0928/181618:ERROR:backend_impl.cc(1097)] Critical error found -8
09-28 18:16:20.242: W/chromium(576): external/chromium/net/disk_cache/storage_block-inl.h:119: [0928/181620:WARNING:storage_block-inl.h(119)] Failed data load.
09-28 18:16:20.262: W/chromium(576): external/chromium/net/disk_cache/storage_block-inl.h:119: [0928/181620:WARNING:storage_block-inl.h(119)] Failed data load.
09-28 18:16:20.273: W/chromium(576): external/chromium/net/disk_cache/storage_block-inl.h:119: [0928/181620:WARNING:storage_block-inl.h(119)] Failed data load.
09-28 18:16:20.312: W/chromium(576): external/chromium/net/disk_cache/storage_block-inl.h:119: [0928/181620:WARNING:storage_block-inl.h(119)] Failed data load.
09-28 18:16:20.392: E/chromium(576): external/chromium/net/disk_cache/entry_impl.cc:830: [0928/181620:ERROR:entry_impl.cc(830)] Failed to save user data
09-28 18:16:20.392: E/chromium(576): external/chromium/net/disk_cache/entry_impl.cc:830: [0928/181620:ERROR:entry_impl.cc(830)] Failed to save user data
My WebView Java code is :
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginsEnabled(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
Log.i(TAG, "" + url);
webView.loadUrl(url);
Researching on Google
While searching for the error with keyword : ERROR: backend_impl.cc:1097 on google, got nothing more helpful than the source code of the file backend_impl.cc with the code snippet at line number 1097 :
Actually the whole block of code FirstEviction() is
But no enough time to hack more on the code, so moving ahead at the moment.
The error I am getting while programming on android WebView is as following :
09-28 18:16:18.342: E/chromium(576): external/chromium/net/disk_cache/backend_impl.cc:1097: [0928/181618:ERROR:backend_impl.cc(1097)] Critical error found -8
09-28 18:16:20.242: W/chromium(576): external/chromium/net/disk_cache/storage_block-inl.h:119: [0928/181620:WARNING:storage_block-inl.h(119)] Failed data load.
09-28 18:16:20.262: W/chromium(576): external/chromium/net/disk_cache/storage_block-inl.h:119: [0928/181620:WARNING:storage_block-inl.h(119)] Failed data load.
09-28 18:16:20.273: W/chromium(576): external/chromium/net/disk_cache/storage_block-inl.h:119: [0928/181620:WARNING:storage_block-inl.h(119)] Failed data load.
09-28 18:16:20.312: W/chromium(576): external/chromium/net/disk_cache/storage_block-inl.h:119: [0928/181620:WARNING:storage_block-inl.h(119)] Failed data load.
09-28 18:16:20.392: E/chromium(576): external/chromium/net/disk_cache/entry_impl.cc:830: [0928/181620:ERROR:entry_impl.cc(830)] Failed to save user data
09-28 18:16:20.392: E/chromium(576): external/chromium/net/disk_cache/entry_impl.cc:830: [0928/181620:ERROR:entry_impl.cc(830)] Failed to save user data
My WebView Java code is :
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginsEnabled(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
Log.i(TAG, "" + url);
webView.loadUrl(url);
Researching on Google
While searching for the error with keyword : ERROR: backend_impl.cc:1097 on google, got nothing more helpful than the source code of the file backend_impl.cc with the code snippet at line number 1097 :
if (new_eviction_) { |
CACHE_UMA(PERCENTAGE, "FirstResurrectRatio", 0, stats_.GetResurrectRatio()); |
CACHE_UMA(PERCENTAGE, "FirstNoUseRatio", 0, |
data_->header.lru.sizes[0] * 100 / data_->header.num_entries); |
CACHE_UMA(PERCENTAGE, "FirstLowUseRatio", 0, |
data_->header.lru.sizes[1] * 100 / data_->header.num_entries); |
CACHE_UMA(PERCENTAGE, "FirstHighUseRatio", 0, |
data_->header.lru.sizes[2] * 100 / data_->header.num_entries); |
} |
Actually the whole block of code FirstEviction() is
void BackendImpl::FirstEviction() { |
DCHECK(data_->header.create_time); |
if (!GetEntryCount()) |
return; // This is just for unit tests. |
Time create_time = Time::FromInternalValue(data_->header.create_time); |
CACHE_UMA(AGE, "FillupAge", 0, create_time); |
int64 use_time = stats_.GetCounter(Stats::TIMER); |
CACHE_UMA(HOURS, "FillupTime", 0, static_cast<int>(use_time / 120)); |
CACHE_UMA(PERCENTAGE, "FirstHitRatio", 0, stats_.GetHitRatio()); |
if (!use_time) |
use_time = 1; |
CACHE_UMA(COUNTS_10000, "FirstEntryAccessRate", 0, |
static_cast<int>(data_->header.num_entries / use_time)); |
CACHE_UMA(COUNTS, "FirstByteIORate", 0, |
static_cast<int>((data_->header.num_bytes / 1024) / use_time)); |
int avg_size = data_->header.num_bytes / GetEntryCount(); |
CACHE_UMA(COUNTS, "FirstEntrySize", 0, avg_size); |
int large_entries_bytes = stats_.GetLargeEntriesSize(); |
int large_ratio = large_entries_bytes * 100 / data_->header.num_bytes; |
CACHE_UMA(PERCENTAGE, "FirstLargeEntriesRatio", 0, large_ratio); |
if (new_eviction_) { |
CACHE_UMA(PERCENTAGE, "FirstResurrectRatio", 0, stats_.GetResurrectRatio()); |
CACHE_UMA(PERCENTAGE, "FirstNoUseRatio", 0, |
data_->header.lru.sizes[0] * 100 / data_->header.num_entries); |
CACHE_UMA(PERCENTAGE, "FirstLowUseRatio", 0, |
data_->header.lru.sizes[1] * 100 / data_->header.num_entries); |
CACHE_UMA(PERCENTAGE, "FirstHighUseRatio", 0, |
data_->header.lru.sizes[2] * 100 / data_->header.num_entries); |
} |
stats_.ResetRatios(); |
} |
But no enough time to hack more on the code, so moving ahead at the moment.
No comments:
Post a Comment