Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Bazaar » ChromiumBrowserExample error at compile
ChromiumBrowserExample error at compile [message #50218] Mon, 27 August 2018 23:54 Go to next message
forlano is currently offline  forlano
Messages: 1030
Registered: March 2006
Location: Italy
Experienced Contributor
Hello,

I was trying this package with Visual Studio 2017.
I followed all instructions... but I have installed and tried to compile the 64 bit version both on MVS and theide.
I have compiled with success under MVS and I was able to run the cefclient.

The problem arose when compiling with theide (x64). These are the error messages (it is in Italian but I hope it can be understood). It complains about OVERRIDE:

c:\upp\bazaar\chromiumbrowser\ClientHandler.h (90): error C3668: 'ClientHandler::OnConsoleMessage': il metodo con identificatore di override 'override' non ha eseguito l'override di alcun metodo delle classi di base
c:\upp\bazaar\chromiumbrowser\ClientHandler.h (90): error C3668: 'ClientHandler::OnConsoleMessage': il metodo con identificatore di override 'override' non ha eseguito l'override di alcun metodo delle classi di base
c:\upp\bazaar\chromiumbrowser\ClientHandler.h (90): error C3668: 'ClientHandler::OnConsoleMessage': il metodo con identificatore di override 'override' non ha eseguito l'override di alcun metodo delle classi di base

Any idea?
Thanks,
Luigi
Re: ChromiumBrowserExample error at compile [message #50225 is a reply to message #50218] Wed, 29 August 2018 20:56 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1030
Registered: March 2006
Location: Italy
Experienced Contributor
I was able to compile ed execute the program (it was necessary to remove the keyword
OVERRIDE in OnConsoleMessage(...) function (I hope this fix has no drawback).

However nothing works... or at least the url field does not process it and no page are loaded and showed.
Does anybody how it is supposed to work suche example?

index.php?t=getfile&id=5648&private=0

Thanks,
Luigi

  • Attachment: pic1.png
    (Size: 7.57KB, Downloaded 112 times)

[Updated on: Wed, 29 August 2018 20:57]

Report message to a moderator

Re: ChromiumBrowserExample error at compile [message #50244 is a reply to message #50225] Sun, 02 September 2018 11:54 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 296
Registered: July 2009
Experienced Member
Hello Luigi,
1. regarding OnConsoleMessage, CEF changes its API from time to time and if you get "override" warning or error, it means than functions parameters no longer match API and it needs to be updated. I will take a look and update it.
2. regarding white page area - make sure that all CEF files are copied to your destination directory and try to compile test application in release mode. There is some bug that prevents CEF from working in debug mode and I haven't found a solution yet.
Re: ChromiumBrowserExample error at compile [message #50247 is a reply to message #50244] Sun, 02 September 2018 21:59 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1030
Registered: March 2006
Location: Italy
Experienced Contributor
Hi Zbych,

thanks for the answer.

I performed the compilation in release mode and I think to have all CEF files in the destination folder.
index.php?t=getfile&id=5652&private=0
Perhaps the blank page is the result of my previous fix.

Best regards,
Luigi
  • Attachment: file.png
    (Size: 6.76KB, Downloaded 93 times)

[Updated on: Mon, 03 September 2018 08:47]

Report message to a moderator

Re: ChromiumBrowserExample error at compile [message #50251 is a reply to message #50247] Tue, 04 September 2018 09:54 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 296
Registered: July 2009
Experienced Member
Hello Luigi,

I've compiled exactly the same CEF version as you have and it works. Please make sure that you compile test application in release mode and use files from "release" directories.

List of files:
index.php?t=getfile&id=5656&private=0

I made an archive with all needed files and chromiumbrowserexample
https://drive.google.com/file/d/1WLK93hAkWMLy4N7JAHqsmeE5avS uHgZ0/view?usp=sharing


[Updated on: Tue, 04 September 2018 09:57]

Report message to a moderator

Re: ChromiumBrowserExample error at compile [message #50252 is a reply to message #50251] Tue, 04 September 2018 10:08 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 296
Registered: July 2009
Experienced Member
When I try to run CEF in debug mode it looks exactly like in your picture and there is message in debug.log:

[0904/100200.169:FATAL:scoped_com_initializer.cc(33)] Check failed: ((HRESULT)0x80010106L) != hr_ (-2147417850 vs. -2147417850)Invalid COM thread model change
[0904/100200.179:VERBOSE1:node.cc(439)] Observing lost connection from node FCBAD2A60A1D426E.E7332D5EC813F6CF to node 706089DCC5A53A87.D10E83B69B119B88
[0904/100200.179:VERBOSE1:browser_gpu_channel_host_factory.c c(145)] Failed to create channel on existing GPU process. Trying to restart GPU process.

I got rid of this error by uninitializing COM in child processes. Unfortunately picture is still white and there is another assertion in log:

[0904/163239.008:FATAL:dwrite_font_proxy_init_impl_win.cc(88 )] Check failed: fallback_available == base::win::GetVersion() > base::win::VERSION_WIN8 (1 vs. 0)

I hope this thread will help me to solve the problem: http://magpcss.org/ceforum/viewtopic.php?f=6&t=14721

[Updated on: Tue, 04 September 2018 16:45]

Report message to a moderator

Re: ChromiumBrowserExample error at compile [message #50255 is a reply to message #50252] Tue, 04 September 2018 22:03 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1030
Registered: March 2006
Location: Italy
Experienced Contributor
It Works! Cool Laughing

I have missed the file

v8_context_snapshot.bin

After restoring it the program in release mode works OK.
By the way, that file is absent in the bazaar page:
https://www.ultimatepp.org/src$ChromiumBrowser$ChromiumBrows er$en-us.html
Perhaps you can update it.
Your bin files are very useful and could speed up the test of this fantastic control.

Thanks and best regards,
Luigi
Re: ChromiumBrowserExample error at compile [message #50257 is a reply to message #50255] Wed, 05 September 2018 10:22 Go to previous message
Zbych is currently offline  Zbych
Messages: 296
Registered: July 2009
Experienced Member
Hi Luigi,

I decided to remove files list from documentation, because the list changes from time to time. The easiest solution is to copy all files (excluding *.lib and *.a) from Release (or Debug) and Resources directories.
I added also manifest file to ChromiumBrowserExample and now it is possible to run application in Debug mode.

[Updated on: Wed, 05 September 2018 10:33]

Report message to a moderator

Previous Topic: OAuth2 package for U++
Next Topic: Functions4U_Demo: Inconsistent result of GetRelativePath
Goto Forum:
  


Current Time: Wed Dec 19 16:54:16 CET 2018

Total time taken to generate the page: 0.00714 seconds