JCEF MAC eclipse non-OSR Display Problem

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

JCEF MAC eclipse non-OSR Display Problem

Postby bosko » Tue Nov 10, 2015 10:35 am

This looks like only me having problem with this now.

I know that there are topics about this at:
https://bitbucket.org/chromiumembedded/cef/issues/1547
https://bitbucket.org/chromiumembedded/java-cef/issues/166/content-in-browser-not-visible-at-startup

they all seem like fixed this issue, but I still reproduce it :cry:

So I made jcef:
MAC Version: 10.10.3
JCEF Version = 3.2454.135 (trunk)
CEF Version = 3.2454.1317
XCode Version = 6.3.2 (tried build with default SDK8 and SDK9 and SDK10)
Java:
$ /usr/bin/java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
$ otool -l /usr/bin/java | grep -A 3 LC_VERSION_MIN_MACOSX
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.10
sdk 10.10

When running jcef_app.app browser works.
But from eclipse (latest version 4.5.1 mars and also version 4.4.2 luna) I have only white screen.
When I use OSR, browser is good from eclipse.

I tried on both simple and detailed example. Also tried window resizing and adding button :cry: .

LOG from simple:
initialize on Thread[AWT-EventQueue-0,6,main] with library path path-to-eclipse-project/java-cef/jcef_latestcef.app/Contents/Java
[1110/162343:ERROR:renderer_main.cc(200)] Running without renderer sandbox

I have no idea what can I do more!!!

PLEASE GIVE ME SOME SUGGESTION AND HELP ME
bosko
Techie
 
Posts: 28
Joined: Tue May 01, 2012 10:47 am

Re: JCEF MAC eclipse non-OSR Display Problem

Postby magreenblatt » Tue Nov 10, 2015 11:42 am

This is the comment that answers your question: https://bitbucket.org/chromiumembedded/ ... t-22035822
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF MAC eclipse non-OSR Display Problem

Postby bosko » Tue Nov 10, 2015 1:08 pm

Thanks magreenblatt for answer,

but I have java that was built with SDK 10.10:

Java:
$ /usr/bin/java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
$ otool -l /usr/bin/java | grep -A 3 LC_VERSION_MIN_MACOSX
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.10
sdk 10.10

Do you think that it will make some difference if I build and use my own Java???
bosko
Techie
 
Posts: 28
Joined: Tue May 01, 2012 10:47 am

Re: JCEF MAC eclipse non-OSR Display Problem

Postby magreenblatt » Tue Nov 10, 2015 2:07 pm

Eclipse usually launches using its own executable. Check what SDK that executable is using.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF MAC eclipse non-OSR Display Problem

Postby bosko » Thu Nov 12, 2015 6:14 pm

Just wanted to report:

To find what comand is executed from eclipse, go to debug perspective and right click on the thread that is created from run/debug and click on properties. There is a command that say that java from the system is execuded.
I downloaded the latest JDK 8 (8u65 and 8u66) and run "$ otool -l /usr/bin/java | grep -A 3 LC_VERSION_MIN_MACOSX" and now it say that java was built with SDK 10.8...

I have one more question about this issue. You said on https://bitbucket.org/chromiumembedded/cef/issues/1547#comment-21212444 that this issue is fixed even if we build jcef with 10.8 and use executable that was built with 10.8 SDK. Have I misunderstooded the comment?

For now, I will skipp use of OpenJDK and use OSR mode.

Thanks for support magreenblatt
bosko
Techie
 
Posts: 28
Joined: Tue May 01, 2012 10:47 am

Re: JCEF MAC eclipse non-OSR Display Problem

Postby edominic » Wed Dec 02, 2015 1:51 am

bosko wrote:I have one more question about this issue. You said on https://bitbucket.org/chromiumembedded/cef/issues/1547#comment-21212444 that this issue is fixed even if we build jcef with 10.8 and use executable that was built with 10.8 SDK. Have I misunderstooded the comment?


An answer would be interesting :)

Are there any big disadvantages, running OSR on Mac?

Edit:
Mhhh, okay... OSR is really slow and buggy on mac

Edit2:
@bosko, where did you get OpenJDK8 for Mac? Need 1.8.0_66 openJDK
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: JCEF MAC eclipse non-OSR Display Problem

Postby edominic » Thu Dec 10, 2015 2:41 am

No answer???
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 27 guests