Some errors after starting jcef

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

Some errors after starting jcef

Postby edominic » Wed May 06, 2015 6:36 am

I have a few strange errors after starting client.

Console output:
Code: Select all
[0506/124906:ERROR:main_delegate.cc(571)] Could not load cef.pak
[0506/124906:ERROR:main_delegate.cc(588)] Could not load cef_100_percent.pak
[0506/124906:ERROR:main_delegate.cc(597)] Could not load cef_200_percent.pak
[0506/124906:VERBOSE1:pref_proxy_config_tracker_impl.cc(148)] 0x7ffdae181120: set chrome proxy config service to 0x7ffdae307070
[0506/124906:VERBOSE1:pref_proxy_config_tracker_impl.cc(277)] 0x7ffdae181120: Done pushing proxy to UpdateProxyConfig
[0506/124906:ERROR:main_delegate.cc(571)] Could not load cef.pak
[0506/124906:ERROR:main_delegate.cc(588)] Could not load cef_100_percent.pak
[0506/124906:ERROR:main_delegate.cc(597)] Could not load cef_200_percent.pak
[0506/124906:VERBOSE1:child_thread.cc(239)] Mojo is disabled on child
[0506/124906:VERBOSE1:webrtc_internals.cc(56)] Could not get the download directory.
[0506/124906:ERROR:main_delegate.cc(571)] Could not load cef.pak
[0506/124906:ERROR:main_delegate.cc(588)] Could not load cef_100_percent.pak
[0506/124906:ERROR:main_delegate.cc(597)] Could not load cef_200_percent.pak
[0506/124906:VERBOSE1:child_thread.cc(239)] Mojo is disabled on child
[0506/124906:ERROR:renderer_main.cc(207)] Running without renderer sandbox
[0506/124906:ERROR:content_client.cc(148)] No data resource available for id 4740
[0506/124906:ERROR:content_client.cc(148)] No data resource available for id 4739
[0506/124906:ERROR:content_client.cc(148)] No data resource available for id 4700
[0506/124906:ERROR:content_client.cc(148)] No data resource available for id 4700


Working Directory is not a bundle, so I set resource dir path and locales dir path:
Code: Select all
            cefSettings.locales_dir_path = "/workspace/xyz-client/Contents/Frameworks/Chromium Embedded Framework.framework/Resources";
            cefSettings.resources_dir_path = "/workspace/xyz-client/Contents/Frameworks/Chromium Embedded Framework.framework/Resources";


The weird thing is, that the browser loads/renders the content but it's not visible to me. The background is still grey but if move mouse over the invisible content, the mouse-cursor changes (on this page are some text boxes, buttons, ...). I could press button on the invisible page and it recognized by jcef.

The next weird thing is, if I add an JTextField for address entering to browser window, the web-content appears once I click on JTextField. (Some code for JTextField):
Code: Select all
   address_ = new JTextField(startUrl, 100);
      address_.addActionListener(new ActionListener()
      {
         @Override
         public void actionPerformed(ActionEvent e)
         {
            browser_.loadURL(address_.getText());
         }
      });


or if I resize window, then content appears, too.

"building" window:
Code: Select all
      getContentPane().add(address_, BorderLayout.NORTH);
      getContentPane().add(browserUI_, BorderLayout.CENTER);
      pack();
      setSize(800, 600);
      setVisible(true);

      addWindowListener(new WindowAdapter()
      {
         @Override
         public void windowClosing(WindowEvent e)
         {
            dispose();
            cefApp_.dispose();
         }
      });


What's wrong here??? Oo :/

Edit:
I already read through the other threads, but they didn't help me
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: Some errors after starting jcef

Postby edominic » Thu May 07, 2015 5:32 am

Little update to my errors:
The problem with "Could not load cef.pak" is gone now... It was my false...
The path to CEF Resources was wrong -.-" :D Overlooked it all the time.

The problem with invisible content is still there, so I need help with this.

And I got another problem. Here some console outputs:
Code: Select all
[0507/122817:VERBOSE1:child_thread.cc(239)] Mojo is disabled on child
[0507/122817:ERROR:renderer_main.cc(207)] Running without renderer sandbox
[0507/122817:ERROR:content_client.cc(148)] No data resource available for id 22001
[0507/122817:WARNING:url_request_job_manager.cc(101)] Failed to map: chrome-devtools://devtools/devtools.html
[0507/122817:VERBOSE1:resource_loader.cc(318)] OnResponseStarted: chrome-devtools://devtools/devtools.html
[0507/122817:VERBOSE1:resource_loader.cc(647)] ResponseCompleted: chrome-devtools://devtools/devtools.html
[0507/122817:ERROR:content_client.cc(148)] No data resource available for id 4740
[0507/122817:ERROR:content_client.cc(148)] No data resource available for id 4739
[0507/122817:VERBOSE1:navigator_impl.cc(214)] Failed Provisional Load: chrome-devtools://devtools/devtools.html, error_code: -2, error_description: , showing_repost_interstitial: 0, frame_id: 1
[0507/122817:ERROR:CONSOLE(1)] "Uncaught ReferenceError: InspectorFrontendAPI is not defined", source:  (1)
[0507/122902:ERROR:content_client.cc(148)] No data resource available for id 27500


As you can see, it's DevTools related... That's my problem, can't open dev tools. Only a white screen. The same, if I try to set remote debug port and try to connect via Chrome Browser
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: Some errors after starting jcef

Postby edominic » Fri May 08, 2015 3:15 am

Added bug report to jcef : https://bitbucket.org/chromiumembedded/java-cef/issue/164/getdevtools-fails

Would be really nice, if someone could help me :/
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: Some errors after starting jcef

Postby edominic » Mon May 11, 2015 2:54 am

Really no one can help? -.-"

I don't know what to do or where to look into to fix myself :/
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: Some errors after starting jcef

Postby edominic » Mon May 11, 2015 5:07 am

I don't know, if there is a bug:

console output:
Code: Select all
[0511/120200:VERBOSE1:pref_proxy_config_tracker_impl.cc(148)] 0x7ff39ca673f0: set chrome proxy config service to 0x7ff39ca6af00
[0511/120200:VERBOSE1:pref_proxy_config_tracker_impl.cc(277)] 0x7ff39ca673f0: Done pushing proxy to UpdateProxyConfig
[0511/120200:ERROR:icu_util.cc(144)] icudtl.dat not found in bundle
[0511/120200:FATAL:content_main_runner.cc(721)] Check failed: base::i18n::InitializeICU().
[0511/120201:VERBOSE1:webrtc_internals.cc(56)] Could not get the download directory.
[0511/120201:ERROR:icu_util.cc(144)] icudtl.dat not found in bundle
[0511/120201:FATAL:content_main_runner.cc(721)] Check failed: base::i18n::InitializeICU().
[0511/120202:WARNING:message_in_transit_queue.cc(18)] Destroying nonempty message queue


But if I look into Actifitymonitor in my process and then "Opened files and ports", the icudtl.dat is listened there with the right path.
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: Some errors after starting jcef

Postby edominic » Wed May 13, 2015 12:41 am

Found a bug-report about the problem with icudtl.dat... It's a chromium problem :/
Link: https://bitbucket.org/chromiumembedded/java-cef/issue/109/linux-mac-fix-discovery-of-icudtldat

I would fix this on myself, but there is another problem with CEF :/
I downloaded 2171 Branch of Chromium and CEF (with latest automate script), but if I build them, Chromium Embedded Framework got a version number of 351.8.123 but libjcef wants 32069.8.123
Code: Select all
  Referenced from: /workspace/xyz-client/processes/Contents/Java/libjcef.dylib
  Reason: Incompatible library version: libjcef.dylib requires version 32069.8.123 or later, but Chromium Embedded Framework provides version 351.8.123
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: Some errors after starting jcef

Postby nala » Fri Feb 05, 2016 5:40 am

edominic wrote:The weird thing is, that the browser loads/renders the content but it's not visible to me. The background is still grey but if move mouse over the invisible content, the mouse-cursor changes (on this page are some text boxes, buttons, ...). I could press button on the invisible page and it recognized by jcef.


Having the same problem. .pak files are loaded, but no content shown on the page, and there seem to be some elements rendered.

Any progress on this issue?
nala
Newbie
 
Posts: 9
Joined: Tue Feb 02, 2016 12:19 pm

Re: Some errors after starting jcef

Postby edominic » Fri Feb 05, 2016 5:49 am

The problem is, jcef needs to be build against the same apple-sdk as java is built against.
the newer versions of jcef are built against sdk 10.9 (I think) but java is still 10.8.
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: Some errors after starting jcef

Postby nala » Fri Feb 05, 2016 7:37 am

Thanks for the reply.

Does this affect only the displaying of the webpage rendered? Or does it affect some other parts as well? Personally I won't need the visual rendering anyway, so I'm wondering if I can still use all other functionalities using this build.
nala
Newbie
 
Posts: 9
Joined: Tue Feb 02, 2016 12:19 pm

Re: Some errors after starting jcef

Postby nala » Fri Feb 05, 2016 8:00 am

Actually fixed the rendering. The MainFrame.java test I was using, had OffScreenRendering set to false for Mac.

Now your conclusion for the sdk versions confuses me..
nala
Newbie
 
Posts: 9
Joined: Tue Feb 02, 2016 12:19 pm

Next

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 65 guests