0
我嘗試在Android 4.4+設備上使用新的Chromium Web引擎修復問題。Appcelerator 4.4+ WebView錯誤
我在TableView中有一個WebView。在第一次頁面加載時,WebView顯示正確,但是當我向下滾動頁面(遠離WebView)並再次返回(返回到WebView)時,出現一個奇怪的錯誤。此錯誤重複每VEW毫秒,當我從的WebView遠向下滾動,也是網頁視圖高度變化爲0
這是我的錯誤日誌的一部分(它的重複無限)停止:
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[46,tid=10218,Native,Thread*=0x53aebd48,peer=0x65d8b4d0,"Thread-42611"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[47,tid=10219,Native,Thread*=0x5358dbc8,peer=0x65fcd800,"Thread-42612"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[48,tid=10220,Native,Thread*=0x529fd530,peer=0x65841b60,"Thread-42613"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[49,tid=10221,Native,Thread*=0x53eaa468,peer=0x65d58988,"Thread-42614"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[50,tid=10222,Native,Thread*=0x5539ee88,peer=0x65db66b8,"Thread-42615"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[51,tid=10223,Native,Thread*=0x558fbb80,peer=0x65f4bcc8,"Thread-42616"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[52,tid=10225,Native,Thread*=0x553d1178,peer=0x65ddc638,"Thread-42617"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[53,tid=10232,Native,Thread*=0x546de7c0,peer=0x6607af90,"Thread-42618"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[54,tid=10234,Native,Thread*=0x54be4000,peer=0x65e026a0,"Thread-42619"] attached without supplying a name
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Attempt to remove local SIRT entry from IRT, ignoring
[WARN] : art: Thread[28,tid=10235,Native,Thread*=0x51460480,peer=0x658507b8,"Thread-42620"] attached without supplying a name
[WARN] : art: Thread[31,tid=10236,Native,Thread*=0x52dc5c28,peer=0x65d72b78,"Thread-42621"] attached without supplying a name
編輯:此錯誤只出現在具有新Chromium引擎的Android 4.4+設備上。
有人知道這個錯誤是什麼意思嗎?
這是我的代碼:
var content_post = ui.htmlPostContent(htmlentities.entityToHtml(post.content), post.ID, 15);
content_post = content_post.replace(/(\shref|\ssrc)=('|")(\/\/)/gi, '$1=$2http:$3');
var post_content_webview = $.UI.create("WebView", {visible: false, classes: "post_content", html: content_post, disableBounce: true, borderRadius: 1}),
loading_webview = $.UI.create("ActivityIndicator", {id:loading_webview, classes:"loading_webview"}),
post_content_row = $.UI.create("TableViewRow", {classes: "bgWhite", layout: "vertical"});
post_content_row.add(loading_webview);
post_content_row.add(post_content_webview);
$.table.appendRow(post_content_row);
loading_webview.show();
post_content_webview.addEventListener("load", function() {
loading_webview.hide();
post_content_row.remove(loading_webview);
if(OS_IOS) {
post_content_webview.height = post_content_webview.evalJS("document.height;");
// Nasty hack for iframes
setTimeout(function() {
post_content_webview.height = post_content_webview.evalJS("document.height;");
}, 1000);
} else {
setTimeout(function() {
post_content_row.height = post_content_webview.evalJS("window.innerHeight;") + "dp";
}, 1000);
}
post_content_webview.visible = true;
$.table.scrollable = true;
$.post_header.touchEnabled = true;
});
//Add post content
setTimeout(function() {
if(OS_ANDROID) {
post_content_webview.height = Ti.UI.SIZE;
}
}, 100);