Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20240] Android: Webview chromium: [ERROR:buffer_manager.cc(313)]

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2016-02-02T03:41:23.000+0000
Affected Version/sRelease 5.1.1
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, webview
Reporter Ricardo Ramirez
AssigneeAshraf Abu
Created2016-01-15T02:18:55.000+0000
Updated2017-03-23T22:37:03.000+0000

Description

Issue Description

Trying to load this url: https://credodonations.com the url is not loaded and this error is showed:
[INFO] :   I/TiWebChromeClient.console: (main) [885,885] Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png (12:data:text/html,chromewebdata)
[ERROR] :  chromium: [ERROR:buffer_manager.cc(313)] [.Parent-Compositor-0x9d95f390]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[INFO] :   APSAnalyticsService: Analytics Service Started
[WARN] :   APSAnalyticsService: Network unavailable, can't send analytics
[INFO] :   APSAnalyticsService: Stopping Analytics Service
This is only happening on Android, iOS is working correctly

Steps to replicate:

Create a new default application project

Open app.js

Replace the code inside with this:

var webview = Titanium.UI.createWebView({url:'https://credodonations.com'});
var window = Titanium.UI.createWindow();
window.add(webview);
window.open({modal:true});

Run

Comments

  1. Eduard Florea 2016-01-28

    Check out the *Android 4.4 and Later Support* section from here: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.WebView-property-html I had a similar issue and after I added a *borderRadius* to the WebView the issue was gone. Hope this helps. Good luck!
  2. Ashraf Abu 2016-02-02

    Thanks [~eflorea] for the information!
  3. Ashraf Abu 2016-02-02

    Workaround:
       var webview = Titanium.UI.createWebView({url:'https://credodonations.com'});
       webview.borderRadius = 0.1;
       var window = Titanium.UI.createWindow();
       window.add(webview);
       window.open({modal:true});
       
    As mentioned by [~three29] (Thank you!), the docs mention this issue:- {quote} By default, the Chromium WebView uses hardware acceleration, which may cause content to fail to render. If the WebView fails to render the content, the web view will clear itself, displaying only the default background color. {quote} The workaround is to set a borderRadius. [~rramirez] Resolving this issue as Won't Fix as work around is available and it has been documented.
  4. Ricardo Ramirez 2016-02-02

    Sorry Guys but the workaround is not working for me, i'm getting this error trying on an Android Samsung Galaxy Ace 4.4.4 [ERROR] : TiWVC: (main) [1448,1448] SSL error occurred: primary error: 3 certificate: Issued to: CN=*.credodonations.com,OU=COMODO SSL Wildcard,OU=Domain Control Validated; [ERROR] : TiWVC: Issued by: CN=COMODO RSA Domain Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB; [ERROR] : TiWVC: on URL: https://credodonations.com/
  5. Ricardo Ramirez 2016-02-02

    [~msamah] there is an SSL error on the webview, EDITED workaround:
       var webview = Titanium.UI.createWebView({
       	url:'https://credodonations.com',
       	ignoreSslError :true
       });
       webview.borderRadius = 0.1;
       var window = Titanium.UI.createWindow();
       window.add(webview);
       window.open({modal:true});
       
  6. Ashraf Abu 2016-02-02

    Thanks for that. So in this case, it seems the website is the issue and a flag is needed. Leaving ticket as Resolved.
  7. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source