Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4542] Android WebView is not rendered because of memory

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-11-02T16:19:08.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterCreative
AssigneeShak Hossain
Created2016-10-11T08:11:10.000+0000
Updated2016-11-22T15:55:46.000+0000

Description

"[WARN] : View: NonHTCWebView not displayed because it is too large to fit into a software layer (or drawing cache), needs 5886720 bytes, only 3686400 available" I basically load a Ti.UI.WebView with some html data (nothing fancy, only text/links/markup). It breaks because apparently it overflows some memory setting. Only very few webviews (say 20 lines of text) stay under the memory limit and are rendered. For now I am rolling back to 5.3.1.GA.

Comments

  1. Be Rushton 2016-10-19

    Also getting this issue.
  2. Sharif AbuDarda 2016-10-19

    Hello, Please share a sample test code that regenerates the issue. Can you try with SDK 5.5.1.GA. Thanks.
  3. Ketan Majmudar 2016-10-26

    It can be resolved by disabling hardware acceleration, but this may have an appwide impact. It would be ideal if we could limit to the webview component only. However, there is an issue with the new SDK with regards to this. If I can come up with a test app today I will post some example code. under the manifest in tiapp.xml add the property
       android:hardwareAccelerated="false"
       
    to the element *This is an extreme fix, and just a patch really*
  4. Be Rushton 2016-11-04

    This should not be closed unless it has been fixed in SDK 6+. I will try get some time to create a test case to demonstrate the issue.
  5. Ketan Majmudar 2016-11-22

    Is there a way of targeting the web view component only - not the entire application? Via activities ? I haven't figured a way of doing this yet. Working on it.

JSON Source