Cef-Custom Build of CEF, CefSharp throws runtime exception

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Cef-Custom Build of CEF, CefSharp throws runtime exception

Postby awaismasood » Mon Feb 13, 2023 11:39 am

Hi,

I am doing Custom build for CefSharp (v108.4.130) which drives me to build chromium embedded (CEF native) first. So, for this process I am doing following.
1) Custom build for CEF to get zip packages of version v108.4.13+ga98cd4c+chromium-108.0.5359.125 which essentially uses 5359 branch for CEF. This step produces 6 zip packages.
2) Creating NuGet packages for Cef-Binaries based on zip packages from step 1
CEFBinariesNuGetPackages.PNG
CEFBinariesNuGetPackages.PNG (100.34 KiB) Viewed 26029 times

3) And then building CefSharp, based on those cef binaries, and getting 7 NuGet packages from both step 2 and 3
CefSharpNuGetPackages.PNG
CefSharpNuGetPackages.PNG (77.97 KiB) Viewed 26029 times


However, when I use this CefSharp package (CefSharp.WinForms.108.4.130-surpass-release.nupkg)in my product it builds perfectly but throws runtime exception as bellow.
CefRuntimeException.PNG
CefRuntimeException.PNG (8.95 KiB) Viewed 26029 times

With further investigation I had found native dlls generated from my custom build, like libcef.dll, libEGL.dll, chrome_elf.dll are much different in size from standard NuGet package files.

Can you please tell what I am potentially missing, in the process , that I am getting this exception?

Any help will be appreciated.

Thanks
Awais
awaismasood
Newbie
 
Posts: 4
Joined: Mon Feb 13, 2023 10:22 am

Re: Cef-Custom Build of CEF, CefSharp throws runtime excepti

Postby ndesktop » Mon Feb 13, 2023 1:22 pm

108.4.13 and 108.4.130 ? I don't know how compatibility works between CefSharp and native CEF, but maybe it is worth checking why this version mismatch?
ndesktop
Master
 
Posts: 748
Joined: Thu Dec 03, 2015 10:10 am

Re: Cef-Custom Build of CEF, CefSharp throws runtime excepti

Postby awaismasood » Mon Feb 13, 2023 1:44 pm

Thanks for the reply but I dont think this version mismatch is the issue. This format is predefind in CefSharp scripts, CefSharp version derived from native cef version but with 0 suffix. There standard NuGet versions are like this only difference is I am adding another suffix to differentiate it from standard version.
awaismasood
Newbie
 
Posts: 4
Joined: Mon Feb 13, 2023 10:22 am

Re: Cef-Custom Build of CEF, CefSharp throws runtime excepti

Postby awaismasood » Tue Feb 14, 2023 8:55 am

Just found that its starts working in broken from (may be some compatibility issues with existing files which is not a big deal) when I replace these files libcef.dll, libEGL.dll, chrome_elf.dll by standard NuGet files. That means its native chromium build issue? But here difficulty is; I am using built in scripts (not my custom scripts) to build this. So could that be the issue in those scripts (provided by CEF)? Not sure what to look to fix this. :(
awaismasood
Newbie
 
Posts: 4
Joined: Mon Feb 13, 2023 10:22 am

Re: Cef-Custom Build of CEF, CefSharp throws runtime excepti

Postby amaitland » Wed Feb 15, 2023 8:12 pm

Make sure you are using the official CEF build configuration.

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

Re: Cef-Custom Build of CEF, CefSharp throws runtime excepti

Postby awaismasood » Thu Feb 16, 2023 4:15 am

Thanks amaitland. Currently I am using the following scripts to build 32 and 64 bit with docker container hosted on Microsoft windows server. do you see any issue with these please?

CEF32Bit.PNG
CEF32Bit.PNG (42.75 KiB) Viewed 25961 times

CEF64Bit.PNG
CEF64Bit.PNG (43.58 KiB) Viewed 25961 times
awaismasood
Newbie
 
Posts: 4
Joined: Mon Feb 13, 2023 10:22 am

Re: Cef-Custom Build of CEF, CefSharp throws runtime excepti

Postby amaitland » Wed Feb 22, 2023 3:03 pm

component builds are only for debugging/testing purposes. Use the automated build official configuration as a base.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 2 guests