I'm trying to replace the CEF distribution used in UnrealEngine by a more recent one made from the master branch as I'm quite interested by the recently added "shared texture support".
I've been able to compile a version of UnrealEngine that use my own CEF distribution but I got a crash at runtime when calling CefInitialize().
- Code: Select all
Exception thrown at 0x000000000000005B in UE4Editor-Win64-Debug.exe: 0xC0000005: Access violation executing location 0x000000000000005B.
Here is the call stack I get during the crash:
- Code: Select all
000000000000005b() Unknown
UE4Editor-WebBrowser-Win64-Debug.dll!CefCToCppRefCounted<class CefCommandLineCToCpp,class CefCommandLine,struct _cef_command_line_t>::AddRef(void) Unknown
UE4Editor-WebBrowser-Win64-Debug.dll!CefCToCppRefCounted<class CefCommandLineCToCpp,class CefCommandLine,struct _cef_command_line_t>::Wrap(struct _cef_command_line_t *) Unknown
UE4Editor-WebBrowser-Win64-Debug.dll!CefCToCppScoped<class CefSchemeRegistrarCToCpp,class CefSchemeRegistrar,struct _cef_scheme_registrar_t>::Wrap(struct _cef_scheme_registrar_t *) Unknown
libcef.dll!000007fe930fea7f() Unknown
libcef.dll!000007fe93b74743() Unknown
libcef.dll!000007fe9327a9ab() Unknown
libcef.dll!000007fe93b1232e() Unknown
libcef.dll!000007fe942de25f() Unknown
libcef.dll!000007fe93b2f171() Unknown
libcef.dll!000007fe93b2eb79() Unknown
libcef.dll!000007fe930fcc89() Unknown
UE4Editor-WebBrowser-Win64-Debug.dll!CefInitialize(class CefMainArgs const &,class CefStructBase<struct CefSettingsTraits> const &,class scoped_refptr<class CefApp>,void *) Unknown
UE4Editor-WebBrowser-Win64-Debug.dll!FWebBrowserSingleton::FWebBrowserSingleton(const FWebBrowserInitSettings & WebBrowserInitSettings) Line 301 C++
UE4Editor-WebBrowser-Win64-Debug.dll!FWebBrowserModule::GetSingleton() Line 69 C++
UE4Editor-WebBrowser-Win64-Debug.dll!SWebBrowserView::Construct(const SWebBrowserView::FArguments & InArgs, const TSharedPtr<IWebBrowserWindow,0> & InWebBrowserWindow) Line 112 C++
UE4Editor-WebBrowser-Win64-Debug.dll!RequiredArgs::T1RequiredArgs<TSharedPtr<IWebBrowserWindow,0> const &>::CallConstruct<SWebBrowserView>(const TSharedRef<SWebBrowserView,0> & OnWidget, const SWebBrowserView::FArguments & WithNamedArgs) Line 854 C++
I'm building on Win7, for x64, VisualStudio 2017
So I'm able to build the master branch using the automate script:
- Code: Select all
python automate-git.py my_folder_path --x64-build
Then build the wrapper from a visual studio solution made with:
- Code: Select all
cmake -G "Visual Studio 15 Win64" -DEF_RUNTIME_LIBRARY_FLAG=/MD
Then slightly update the engine due to some interface changes between the two CEF distributions, and everything compiles fine but crash at runtime.
I've spend quite a bit of time trying understand/fix the issue but got nowhere, so if anyone has some insight on what could be going on here, that would be veryyy helpful.
Thanks in advance!