cefclient blank popup windows

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

cefclient blank popup windows

Postby Czarek » Wed Jun 22, 2016 7:05 am

I've built branch 2526 on Ubuntu 12.04 64-bit. cefclient runs fine, but one issue observed - when runing Tests > popup window I see a blank window contents (seeing only url and buttons). Same when opening DevTools through context menu. Is this a known issue? Is this a cefclient issue or a CEF issue?

EDIT: running Tests > New Window hangs application.

Logs when opening test popup window:
Code: Select all
[0622/140254:WARNING:cefclient_gtk.cc(32)] X error received: type 0, serial 710, error_code 8, request_code 42, minor_code 0

[0622/140254:WARNING:cefclient_gtk.cc(32)] X error received: type 0, serial 720, error_code 3, request_code 7, minor_code 0
.......... closing .......
[0622/140301:WARNING:x11_util.cc(1402)] X error received: serial 537, error_code 9 (BadDrawable), request_code 152, minor_code 3 (Unknown)
[0622/140301:WARNING:x11_util.cc(1402)] X error received: serial 538, error_code 9 (BadDrawable), request_code 152, minor_code 12 (Unknown)
[0622/140301:WARNING:x11_util.cc(1402)] X error received: serial 591, error_code 3 (BadWindow), request_code 4, minor_code 0 (Unknown)


Logs when opening devtools:
Code: Select all
[0622/140342:WARNING:cefclient_gtk.cc(32)] X error received: type 0, serial 2354, error_code 8, request_code 42, minor_code 0
....... closing .......
[0622/140345:WARNING:x11_util.cc(1402)] X error received: serial 1744, error_code 3 (BadWindow), request_code 4, minor_code 0 (Unknown)
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: cefclient blank popup windows

Postby magreenblatt » Wed Jun 22, 2016 10:19 am

2526 branch is old and not supported. I'm not seeing any problems with 2704 branch and newer on Ubuntu 14.04 64-bit.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient blank popup windows

Postby Czarek » Wed Jun 22, 2016 11:29 am

magreenblatt wrote:2526 branch is old and not supported. I'm not seeing any problems with 2704 branch and newer on Ubuntu 14.04 64-bit.

Can I build 2704 branch on Ubuntu 12.04 as well?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: cefclient blank popup windows

Postby magreenblatt » Wed Jun 22, 2016 12:07 pm

Czarek wrote:
magreenblatt wrote:2526 branch is old and not supported. I'm not seeing any problems with 2704 branch and newer on Ubuntu 14.04 64-bit.

Can I build 2704 branch on Ubuntu 12.04 as well?

Probably not, but you should be able to run on 12.04 using an official build.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient blank popup windows

Postby Czarek » Wed Jun 22, 2016 12:37 pm

magreenblatt wrote:
Czarek wrote:
magreenblatt wrote:2526 branch is old and not supported. I'm not seeing any problems with 2704 branch and newer on Ubuntu 14.04 64-bit.

Can I build 2704 branch on Ubuntu 12.04 as well?

Probably not, but you should be able to run on 12.04 using an official build.

Official - you mean a Spotify build? What OS does it use to build?

EDIT: I've run cef_binary_3.2704.1432.g60b3718_linux32_client.tar.bz2 and cefsimple works on Ubuntu 12.04 as you said. So how do you do that, Google Chrome can't run on Ubuntu 12.04 but CEF can? CEF > Google Chrome ;)

I've run branch 2526 from cefbuilds.com on Ubuntu 14.04 (a clean install with all updates) and it doesn't work:
Code: Select all
./cefclient: error while loading shared libraries: libgtkglext-x11-1.0.so.0: cannot open shared object file: No such file or directory


On Ubuntu 12.04 it also doesn't work with error "gb660893_linux64_client/Release/lib/libcef.so: undefined symbol: g_type_class_adjust_private_offset".

Loooks like branch 2526 wasn't much tested on Linux.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: cefclient blank popup windows

Postby magreenblatt » Wed Jun 22, 2016 12:45 pm

This is what I mean by official build: https://bitbucket.org/chromiumembedded/ ... figuration

The key is to build with a sysroot that's compatible with Ubuntu 12.04.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient blank popup windows

Postby Czarek » Wed Jun 22, 2016 1:04 pm

magreenblatt wrote:This is what I mean by official build: https://bitbucket.org/chromiumembedded/ ... figuration

The key is to build with a sysroot that's compatible with Ubuntu 12.04.

Looks awesome.

But how can I test cefclient from branch 2704 whether it has improved in regards to handling popup windows? :) The binaries on Spotify do not include cefclient. I've downloaded standard distribution and tried to build cefclient on Ubuntu 12.04 but got error:
Code: Select all
cc1plus: error: unrecognized command line option ‘-std=gnu++11’

Tried removing this flag, removing it worked in branch 2526, but here I just get another error if I do it.

Looks like I would need to setup a whole new machine with Ubuntu 14.04, that's a lot of work to just test cefclient popup windows.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: cefclient blank popup windows

Postby magreenblatt » Wed Jun 22, 2016 1:21 pm

The sample application for linux includes cefsimple, and can test cefsimple with popups. Just google "javascript popup window" and click an example that uses window.open().
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient blank popup windows

Postby Czarek » Wed Jun 22, 2016 1:34 pm

magreenblatt wrote:The sample application for linux includes cefsimple, and can test cefsimple with popups. Just google "javascript popup window" and click an example that uses window.open().

"google > window.open" works in 2704/cefsimple and in 2526/cefsimple, but fais in 2526/cefclient. Looks like this is just a cefclient issue.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 102 guests