2014-11-14 3 views
0

Android 4.4 이상의 새로운 Chromium 웹 엔진 문제를 해결하려고합니다.Appcelerator 4.4+ WebView 오류

나는 WebView를 TableView에 가지고 있습니다. 첫 번째 pageload에서 WebView가 올바르게 표시되지만 페이지를 벗어나 WebView에서 뒤로 스크롤하고 다시 WebView로 돌아 가면 이상한 오류가 발생합니다. 이 오류는 모든 봅니다 밀리 초를 반복하고 나는 또한 WebViews 높이이 내 오류 로그의 일부 (이 무한 반복하는 것)은 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); 

답변

0

당신이 당신의 티타늄 SDK를 업데이트해야이 문제를 해결하려면, 최신 버전 (3.4.0.GA) 다음 문제가 해결 될 것입니다 귀하의 티타늄 SDK를 업데이트하세요 .

관련 문제