Skip to content

Using WebView in Android v7.0 hangs the app. #13335

Description

@chiraggshah

Description

What I did: Tried to open WebView in Android Emulator v7.0.0 (API 24)
What I expected to happen: Open the url provided in a webview
What actually happens: The app hangs without loading the webpage

I had used Genymotion Emulator for this.

Some of the errors which I was able to see while running adb logcat were:

04-06 04:03:11.218  1802  1833 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager
04-06 04:03:11.219  1802  1833 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
04-06 04:03:11.223  1802  1833 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager
04-06 04:03:11.223  1802  1833 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
04-06 04:03:11.223  1802  1833 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager

04-06 04:03:12.395  1802  1862 E chromium: [ERROR:gles2_cmd_decoder.cc(2167)] [.CommandBufferContext.RenderWorker-0xd517d5c0]GL ERROR :GL_INVALID_OPERATION : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command

Full logs at : https://gist.github.com/chiraggshah/b57b0eb6c67cd5ee4d9acc4033b809a4

Reproduction Steps and Sample Code

A simple application using WebView inside index.android.js should be able to reproduce this

import React, { Component } from 'react';
import { AppRegistry, WebView } from 'react-native';

export default class SampleAndroidTest extends Component {
  render() {
    return (
      <WebView
        source={{uri: 'https://www.facebook.com'}}
        style={{
          backgroundColor: 'rgba(255,255,255,0.8)',
          height: 300,
        }}
        scalesPageToFit={true}
      />
    );
  }
}

AppRegistry.registerComponent('SampleAndroidTest', () => SampleAndroidTest);

Additional Information

  • React Native version: I tried on 0.41.0 and 0.43.0, but I think it should be reproducable on other versions as well
  • Platform: Android
  • Development Operating System: MacOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions