error on AddCustomScheme pass CEF_SCHEME_OPTION_STANDARD.

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.

error on AddCustomScheme pass CEF_SCHEME_OPTION_STANDARD.

Postby blackknife » Tue Dec 31, 2019 4:29 am

My cef version is "78.3.9+gc7345f2+chromium-78.0.3904.108".
I call AddCustomScheme with CEF_SCHEME_OPTION_STANDARD, then console log most following error.

[1231/172324.638:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.639:WARNING:pref_notifier_impl.cc(61)] Init observer found at shutdown.
[1231/172324.648:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.649:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.650:WARNING:pref_notifier_impl.cc(61)] Init observer found at shutdown.
[1231/172324.654:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.655:WARNING:pref_notifier_impl.cc(61)] Init observer found at shutdown.
[1231/172324.663:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.664:WARNING:pref_notifier_impl.cc(61)] Init observer found at shutdown.
[1231/172324.669:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.670:WARNING:pref_notifier_impl.cc(61)] Init observer found at shutdown.
[1231/172324.677:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.684:WARNING:pref_notifier_impl.cc(61)] Init observer found at shutdown.
[1231/172324.689:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.690:WARNING:pref_notifier_impl.cc(61)] Init observer found at shutdown.
[1231/172324.695:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
[1231/172324.697:WARNING:pref_notifier_impl.cc(61)] Init observer found at shutdown.
[1231/172324.705:ERROR:validation_errors.cc(76)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED (network.mojom.NetworkContext.1 )
blackknife
Techie
 
Posts: 30
Joined: Sun Apr 14, 2019 11:53 pm

Re: error on AddCustomScheme pass CEF_SCHEME_OPTION_STANDARD

Postby Czarek » Fri Jan 03, 2020 5:49 am

Can you paste the code that calls AddCustomScheme()? Make sure it is actually called.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: error on AddCustomScheme pass CEF_SCHEME_OPTION_STANDARD

Postby remoe » Sat Feb 08, 2020 4:51 am

Hi

I have the same issue with "CEF 79.1.36+g90301bd+chromium-79.0.3945.130" on MacOSX. I've ported the code from "3.3282.1742".

Thanks
Remo
remoe
Newbie
 
Posts: 4
Joined: Fri Oct 28, 2011 7:48 am

Re: error on AddCustomScheme pass CEF_SCHEME_OPTION_STANDARD

Postby amaitland » Sat Feb 08, 2020 5:34 am

Make sure to register your custom scheme in all processes including the new network service.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: error on AddCustomScheme pass CEF_SCHEME_OPTION_STANDARD

Postby remoe » Sat Feb 08, 2020 8:07 am

Thanks. I've forgotten to implement this:

Code: Select all
     int RunMain(int argc, char* argv[]) {
       ...
       else if (process_type == ClientApp::OtherProcess)
         app = new ClientAppOther();


in the helpers.
remoe
Newbie
 
Posts: 4
Joined: Fri Oct 28, 2011 7:48 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 102 guests