Hello doomguy;
Did you managed to solve this issue? i am facing kind of similar problem.

On Monday, September 12, 2016 at 10:45:43 PM UTC+8, doomguy wrote:
>
> I have a simple webview to display web pages via the network. It loads 
> most pages fine but whenever I try to load http://www.nytimes.com, it 
> shows up as blank. The logcat at this point is:
>
>
> 09-11 11:26:18.428 10567-10630/com.project.test.webviewtest W/cr_media: 
> Requires BLUETOOTH permission09-11 11:26:18.454 
> 10567-10567/com.project.test.webviewtest W/cr_AwContents: 
> onDetachedFromWindow called when already detached. Ignoring09-11 11:26:18.470 
> 10567-10567/com.project.test.webviewtest I/cr_Ime: ImeThread is not 
> enabled.09-11 11:26:18.486 10567-10650/com.project.test.webviewtest 
> D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true09-11 11:26:18.512 
> 10567-10657/com.project.test.webviewtest E/libEGL: validate_display:255 error 
> 3008 (EGL_BAD_DISPLAY)09-11 11:26:18.530 
> 10567-10650/com.project.test.webviewtest I/OpenGLRenderer: Initialized EGL, 
> version 1.409-11 11:26:18.538 10567-10657/com.project.test.webviewtest 
> W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc09-11 
> 11:26:18.557 10567-10657/com.project.test.webviewtest I/VideoCapabilities: 
> Unsupported profile 4 for video/mp4v-es09-11 11:26:18.926 
> 10567-10567/com.project.test.webviewtest W/cr_BindingManager: Cannot call 
> determinedVisibility() - never saw a connection for the pid: 1056709-11 
> 11:26:18.946 10567-10567/com.project.test.webviewtest W/cr_BindingManager: 
> Cannot call determinedVisibility() - never saw a connection for the pid: 
> 1056709-11 11:26:18.963 10567-10567/com.project.test.webviewtest 
> W/cr_BindingManager: Cannot call determinedVisibility() - never saw a 
> connection for the pid: 1056709-11 11:26:19.313 
> 10567-10567/com.project.test.webviewtest W/cr_BindingManager: Cannot call 
> determinedVisibility() - never saw a connection for the pid: 1056709-11 
> 11:26:19.315 10567-10567/com.project.test.webviewtest W/cr_BindingManager: 
> Cannot call determinedVisibility() - never saw a connection for the pid: 
> 1056709-11 11:26:19.316 10567-10567/com.project.test.webviewtest 
> W/cr_BindingManager: Cannot call determinedVisibility() - never saw a 
> connection for the pid: 1056709-11 11:26:19.339 
> 10567-10567/com.project.test.webviewtest W/cr_BindingManager: Cannot call 
> determinedVisibility() - never saw a connection for the pid: 1056709-11 
> 11:26:19.438 10567-10628/com.project.test.webviewtest W/chromium: 
> [WARNING:spdy_session.cc(2462)] Received HEADERS for invalid stream 3
>
> My MainActivity :
>
> public class MainActivity extends AppCompatActivity {
>
> private WebView mWebView;
> @Overrideprotected void onCreate(Bundle savedInstanceState) {
>     super.onCreate(savedInstanceState);
>     setContentView(R.layout.activity_main);
>     mWebView = (WebView) findViewById(R.id.activity_main_webview);
>     WebSettings webSettings = mWebView.getSettings();
>     webSettings.setJavaScriptEnabled(true);
>     mWebView.getSettings().setDomStorageEnabled(true);
>     mWebView.setWebViewClient(new TestWebViewClient());
>     mWebView.loadUrl("http://www.nytimes.com";);}}
>
> My TestWebViewClient:
>
> public class TestWebViewClient extends WebViewClient {
>
> @Overridepublic boolean shouldOverrideUrlLoading(WebView view, String url) {
>     view.loadUrl(url);
>     return true;}
> @Overridepublic void onReceivedError(WebView view, int errorCode, String 
> description, String failingUrl) {
>     Log.i("WEB_VIEW_TEST", "error code:" + errorCode);
>     super.onReceivedError(view, errorCode, description, failingUrl);}}
>
> I have added the INTERNET permission in the manifest. So far any other web 
> page I have tried loads up fine. Just this one shows up as blank. I am not 
> sure if the logcat shows the actual error as some things such as the 
> EGL_BAD_DISPLAY and the Cannot call determinedVisibility() errors often show 
> up in the successful loads as well. I don't usually see the last line 
> [WARNING:spdy_session.cc(2462)] Received HEADERS for invalid stream 3 so 
> maybe this is a cause of concern? I do not see any error being received in 
> the onReceivedError in the TestwebViewClient.
>
> Also sometimes (rarely), when I launch the app after a fresh install, the New 
> York Times page title does show up for a second before the view going blank, 
> which probably suggests this is a rendering issue and not a problem with the 
> web view.
>
> I am running this on a physical device running Android M.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6b77c746-edc6-438d-89ac-861a62246537%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to