C++ Application error in angular code when embedded

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.

C++ Application error in angular code when embedded

Postby smarongui » Wed Jun 26, 2019 9:53 am

Hi.
I have embedded CEF in a c++ financial terminal,

Windows
Microsoft Visual Studio 2015
MFC 14,
CEF version 66
SDK 10.0.14393.0.

Trying to update CEF version I have an error in some pages that I don't understand.

In my application, using cefClient.exe for multi-process I have these errors and pages contains no data.
--------------------------------
angular.min.js:114 TypeError: Cannot read property 'secStarRating' of undefined
at ec-stock-report-bundle.js:64
at ec-stock-report-bundle.js:64
at angular.min.js:126
at m.$eval (angular.min.js:141)
at m.$digest (angular.min.js:138)
at b.$apply (angular.min.js:141)
at HTMLAnchorElement.<anonymous> (angular.min.js:265)
at HTMLAnchorElement.dispatch (jquery-2.1.4.min.js:3)
at HTMLAnchorElement.r.handle (jquery-2.1.4.min.js:3)
at Object.trigger (jquery-2.1.4.min.js:3)
(anonymous) @ angular.min.js:114
angular.min.js:114 TypeError: Cannot read property 'rows' of undefined
at ec-stock-report-bundle.js:64
at angular.min.js:93
at angular.min.js:126
at m.$eval (angular.min.js:141)
at m.$digest (angular.min.js:138)
at m.$apply (angular.min.js:141)
at angular.min.js:134
at e (angular.min.js:45)
at angular.min.js:48
(anonymous) @ angular.min.js:114
angular.min.js:114 TypeError: Cannot read property 'rows' of undefined
at ec-stock-report-bundle.js:64
at angular.min.js:93
at angular.min.js:126
at m.$eval (angular.min.js:141)
at m.$digest (angular.min.js:138)
at m.$apply (angular.min.js:141)
at angular.min.js:134
at e (angular.min.js:45)
at angular.min.js:48
----------------------------------

Opening the same page in CefClient.exe standalone I don't have these errors and pages loads successfully

I have tried with different releases of CEF
CEF 3.3396.1786.gd3e36d0 / Chromium 67.0.3396.79 is the last working version
CEF 3.3440.1802.g9512b3f / Chromium 68.0.3440.75 is the first occuring problem

And I don't find the reason that could produce this behaviour difference
smarongui
Newbie
 
Posts: 6
Joined: Thu Apr 27, 2017 8:30 am

Re: C++ Application error in angular code when embedded

Postby amaitland » Wed Jun 26, 2019 7:50 pm

Try a supported version, the versions you are testing with are unsupported.

https://bitbucket.org/chromiumembedded/ ... -supported
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: C++ Application error in angular code when embedded

Postby smarongui » Fri Jun 28, 2019 2:30 am

Hi.

When you say supported version do you mean SDK or Visual Studio ?
Because I was using 66 version with VS2015 and Win10.0.14393 SDK, everything was working fine.

I just have tried to rebuild with CEF 74 and Win10.0.17763 SDK and having the same error.
smarongui
Newbie
 
Posts: 6
Joined: Thu Apr 27, 2017 8:30 am

Re: C++ Application error in angular code when embedded

Postby magreenblatt » Fri Jun 28, 2019 9:04 am

When you mean when you say "In my application, using cefClient.exe for multi-process"?
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: C++ Application error in angular code when embedded

Postby smarongui » Wed Jul 10, 2019 3:24 am

Hi,
Yes, I use CefClient for multi process
smarongui
Newbie
 
Posts: 6
Joined: Thu Apr 27, 2017 8:30 am

Re: C++ Application error in angular code when embedded

Postby magreenblatt » Wed Jul 10, 2019 7:21 am

smarongui wrote:Hi,
Yes, I use CefClient for multi process

Sorry, typo above. What do you mean by this?
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: C++ Application error in angular code when embedded

Postby smarongui » Tue Dec 10, 2019 3:06 am

Hi.
I finally found the problem. :cry:
Analyzing console I found that all replies concerning data from peer where CORB blocked. I searching why Cefclient standalone was not blocking I found that in my implementation, before running CreateBrowser I had added this constraint to the setting structure
browserSettings.web_security = STATE_DISABLED;

Sorry and thank you for those who tried to help me.

Sylvain
smarongui
Newbie
 
Posts: 6
Joined: Thu Apr 27, 2017 8:30 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], ndesktop and 46 guests