JCEF New project

Having problems with building or using the JCEF Java binding? Ask your questions here.

JCEF New project

Postby u1aw » Wed Mar 08, 2017 5:17 am

Hello,

I'm starting a new project and start handling JCEF on linux64 system.

I have some issues with starting the MainFrame demo (both inside terminal or eclipse).

When running Main Frame, which launch normally, I have no popup on right click. It provokes some erreors on console :
[0308/093454.155418:WARNING:x11_util.cc(1406)] X error received: serial 229, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0308/093454.157049:WARNING:x11_util.cc(1406)] X error received: serial 1190, error_code 3 (BadWindow (invalid Window parameter)), request_code 154, minor_code 31 (X_GLXCreateWindow)
[0308/093454.157846:WARNING:x11_util.cc(1406)] X error received: serial 1191, error_code 181 (GLXBadWindow), request_code 154, minor_code 32 (X_GLXDestroyWindow)
[0308/093454.157883:WARNING:x11_util.cc(1406)] X error received: serial 1192, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)

Also, keyboard and mouse are messed up, for instance Ctrl or Shift shows :
[0308/111300.644810:WARNING:keyboard_code_conversion_x.cc(1363)] Unknown keycode:0
[0308/111300.786587:WARNING:keyboard_code_conversion_x.cc(1363)] Unknown keycode:0

Finally, I have an issue when trying to run the JavaScript alert Tests in MaiFrame detailed :
[0308/111410.358229:WARNING:javascript_dialog_manager.cc(130)] No javascript dialog runner available for this platform

I believe there is something wring but I dont understand what I did wrong.

When starting MainFrame I have this :
Offscreen rendering enabled
Using:
JCEF Version = 3.2924.152
CEF Version = 3.2924.1572
Chromium Version = 56.0.2924.76
CefApp: INITIALIZING
initialize on Thread[AWT-EventQueue-0,6,main] with library path ~/JCEF/JCEF-App/jcef_src/jcef_build/native/Release
Added scheme search://
Added scheme client://
CefApp: INITIALIZED

So I believed I did ok, but with these issues I can not start properly working.
Anyone can give me any clue ? Did I miss something ?

Thanks
u1aw
Newbie
 
Posts: 4
Joined: Tue Mar 07, 2017 4:05 am

Re: JCEF New project

Postby Czarek » Thu Mar 09, 2017 1:34 am

Do these issues also occur in cefclient? You can download "Sample Application" from: http://opensource.spotify.com/cefbuilds/index.html
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: JCEF New project

Postby u1aw » Fri Mar 10, 2017 2:38 am

After I made the post I tried the cef "pre" client, and I dont have the same issues.

About keyboard / mouse issues, there is a solution i'm trying to intercept every event before they are sent to the browser, there is an issue about the locale (I'm not en-US) i could not fix.

The other issue should be from ogl ? or a binding with x11 ?

By the way i'm on ubuntu 16.10.

I could not yet investigate the javascript engine issue.
u1aw
Newbie
 
Posts: 4
Joined: Tue Mar 07, 2017 4:05 am

Re: JCEF New project

Postby u1aw » Fri Mar 10, 2017 8:27 am

I tested it on Virtual Machine on Windows 7 and could not reproduce the issues, everything is working fine. I believe I'm facing an issue with ubuntu 16.10 or nvidia drivers.

I'm still hoping someone knows something about this !

edit : I also face the same issues on another linux machine with debian 8. I believe i'm not the only one using JCEF on linux computers ? Can anyone help ?

edit 2 :

I rechecked with "pure" cef, I built it on the same ubuntu computer and run the cefclient from wiki tutorial.

The only thing close I get is at first right click on browser :
[0310/143743.722094:ERROR:KeyboardEventManager.cpp(424)] Not implemented reached in static bool blink::KeyboardEventManager::currentCapsLockState()
[0310/143801.817538:ERROR:gles2_cmd_decoder.cc(9548)] [.Offscreen-For-WebGL-0x1a2d36b49420]RENDER WARNING: there is no texture bound to the unit 0
[0310/143801.819154:ERROR:gles2_cmd_decoder.cc(9548)] [.Offscreen-For-WebGL-0x1a2d36b49420]RENDER WARNING: there is no texture bound to the unit 0
[0310/143801.822587:ERROR:gles2_cmd_decoder.cc(9548)] [.Offscreen-For-WebGL-0x1a2d36b49420]RENDER WARNING: there is no texture bound to the unit 0
[0310/143803.204541:ERROR:gles2_cmd_decoder.cc(9548)] [.Offscreen-For-WebGL-0x1a2d36b49420]RENDER WARNING: there is no texture bound to the unit 0
[0310/143846.520920:ERROR:selection_owner.cc(192)] SelectionClear

Then everything works fine.
It makes me think it should work with java-cef too, I just need to find what is wrong.
u1aw
Newbie
 
Posts: 4
Joined: Tue Mar 07, 2017 4:05 am

Re: JCEF New project

Postby magreenblatt » Fri Mar 10, 2017 12:00 pm

JCEF on linux uses off-screen rendering, so it needs to translate keyboard events itself: https://bitbucket.org/chromiumembedded/ ... N.cpp-1231. If you're using a non-English/Latin keymap then perhaps that's the issue.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF New project

Postby u1aw » Mon Mar 13, 2017 2:31 am

magreenblatt wrote:JCEF on linux uses off-screen rendering, so it needs to translate keyboard events itself: https://bitbucket.org/chromiumembedded/ ... N.cpp-1231. If you're using a non-English/Latin keymap then perhaps that's the issue.


I believed that for the keyboard issue too, but what about the x11 and javascript engine issues ?


Edit : Now I have tested on a Virtual machine with debian and full En-US install. I have the exact same issues. There is something not working on linux at the moment.
u1aw
Newbie
 
Posts: 4
Joined: Tue Mar 07, 2017 4:05 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 16 guests