Android webview crashes with Fatal signal 11 (SIGSEGV) when back button is hit

I am using html5webview in my app to display online video from various sites.

It is a good tool with nice little piece of code enables video played in a overlay. The reason I use it is for some reason, the video just does not move in standard android webview.

 

Everything works fine except it always crashes if I enter the webview, then click the back button without touching any part of it.

The error I got is:  Fatal signal 11 (SIGSEGV), which is a memory issue that I can not debug.

Did a lot of search in google.

It turns out that if I remove the

  1. setUseWideViewPort(true)
  2. setLoadWithOverviewMode(true)

of the WebSettings in the webview, everything goes back to normal.

I have no idea why it happens. Some explaination:

setLoadWithOverviewMode(true) loads the WebView completely zoomed out

setUseWideViewPort(true) makes the Webview have a normal viewport (such as a normal desktop browser), while when false the webview will have a viewport constrained to its own dimensions (so if the webview is 50px*50px the viewport will be the same size)

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s