Hi,
  I’m a developer from SAP Anywhere team. We found crosswalk is very useful in 
our Android App since it’s always leveraging the latest Chromium technology. 
Thanks very much for your talent guys!

  In our App, we need two Webviews ( in Crosswalk, it’s XWalkView). One is used 
to show a login UI, the other is the main app web content container. The reason 
for using two web views is that when login is needed after app session expired. 
The user can perform login in another web view, then switch back to the main 
app web content web view, set the new cookie and go on his scenario without 
breaking the context before login.

  To switch between web views. We are using following code: 
jsShellWebView.setVisibility(View.VISIBLE); Or 
jsShellWebView.setVisibility(View.GONE); to show or hide the login web view.

  This used to work fine on many android phones, but now we found on some 
devices, like Samsung SM-T700, and Samsung Galaxy S4 upgrade to Lollipop,  DOM 
may corrupt:

[cid:C23EB4D0-0CB2-494B-8E69-3AD914DC0F66]



The error message is:

05-18 15:28:51.048: E/chromium(28640): [ERROR:gles2_cmd_decoder.cc(3952)] 
Error: 2 for Command kAsyncTexImage2DCHROMIUM
05-18 15:28:51.048: E/chromium(28640): [ERROR:gles2_cmd_decoder.cc(10748)] 
[.BrowserCompositor-0x8026f240]GL ERROR :GL_INVALID_OPERATION : 
glConsumeTextureCHROMIUM: invalid mailbox name
05-18 15:28:51.048: E/chromium(28640): [ERROR:gles2_cmd_decoder.cc(6309)] 
[.BrowserCompositor-0x8026f240]RENDER WARNING: texture bound to texture unit 0 
is not renderable. It maybe non-power-of-2 and have incompatible texture 
filtering or is not 'texture complete'
05-18 15:28:51.048: E/chromium(28640): [ERROR:gles2_cmd_decoder.cc(10748)] 
[.BrowserCompositor-0x8026f240]GL ERROR :GL_INVALID_OPERATION : 
glConsumeTextureCHROMIUM: invalid mailbox name


I’m sure this issue only happens when there are two XWalkViews, and app need to 
switch between them to show in front.
If there’s only one XwalkView, this issue would not appear. And even if there 
are two XWalkViews, but only one is showing in the front always, the other is 
always hidden to run some JavaScript, this issue would not appear also.

Do you know how this happens and could you provide any help to us? Thanks a lot!

B.R.

Jonny Chen
SAP Anywhere
Tel: +86 21 6108 5060

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to