x86 4430 make_distrib build fails

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.

Re: x86 4430 make_distrib build fails

Postby ndesktop » Fri Apr 23, 2021 12:19 am

My VS2017 previous build (failing on distrib) is using:
Code: Select all
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GYP_MSVS_VERSION=2017

I am building now use_thin_lto=false added to GN_DEFINES, now is rebuilding.

In cefclient
Code: Select all
#define CEF_USE_SANDBOX 1
is uncommented.

What I have noticed:
- cefclient's GPU process is crashing 100% launched normally. If using --no-sandbox, cefclient starts normally
- only browser and network service processes are running with sandbox
- make distrib fails as eveyrone else's on combine_libs.py with error 1107 (invalid or corrupt file).
I am placing a lot of LOG(INFO) around GPU various initializations and maybe I will spot something.

It should be something related to sandbox, but I do not know enough about how sandbox inner gore works to emit a non-laughable opinion yet.
If I would bet, I think is a problem related to linking (/llvmlibthin perhaps?) because I see pretty normal things in the debug.log (the one that crashes GPU, with sandbox) and based on the linker error which tells me it might be a disagreement of some kind on linking.
Adding various LOG(INFO) in debug.log in
src\media\gpu\windows\dxva_video_decode_accelerator_win.cc
src\media\capture\video\win\video_capture_device_factory_win.cc
src\content\gpu\gpu_main.cc

Code: Select all
[0422/121150.741:INFO:gpu_process_host.cc(1198)] [8.4.3][GpuProcessHost::LaunchGpuProcess] ok exe_path:C:\cef\90.5.4\chromium\src\out\Release_GN_x86\cefclient.exe
[0422/121150.741:INFO:gpu_process_host.cc(1296)] [8.4.6][GpuProcessHost::LaunchGpuProcess] success, returning true
[0422/121150.741:INFO:gpu_process_host.cc(906)] [8.5][GpuProcessHost::Init] LaunchGpuProcess ok, perform more initializations
[0422/121150.741:INFO:gpu_process_host.cc(946)] [8.6][GpuProcessHost::Init] returns true
[0422/121150.741:INFO:gpu_process_host.cc(593)] [7] host->Init() succeeded, returning host
[0422/121150.741:INFO:gpu_process_host.cc(547)] [1] GpuProcessHost::Get kind=1 force_create=1
[0422/121150.741:INFO:gpu_process_host.cc(555)] [2] GpuProcessHost::Get ok gpu_data_manager->GpuProcessStartAllowed()
[0422/121150.741:INFO:gpu_process_host.cc(570)] [3] GpuProcessHost::Get ok g_gpu_process_hosts[1]
[0422/121150.772:INFO:dxva_video_decode_accelerator_win.cc(1438)] ++ entering DXVAVideoDecodeAccelerator::PreSandboxInitialization
[0422/121150.788:INFO:gpu_process_host.cc(547)] [1] GpuProcessHost::Get kind=1 force_create=0
[0422/121150.788:INFO:gpu_process_host.cc(555)] [2] GpuProcessHost::Get ok gpu_data_manager->GpuProcessStartAllowed()
[0422/121150.788:INFO:gpu_process_host.cc(570)] [3] GpuProcessHost::Get ok g_gpu_process_hosts[1]
[0422/121150.788:INFO:gpu_process_host.cc(547)] [1] GpuProcessHost::Get kind=1 force_create=1
[0422/121150.788:INFO:gpu_process_host.cc(555)] [2] GpuProcessHost::Get ok gpu_data_manager->GpuProcessStartAllowed()
[0422/121150.788:INFO:gpu_process_host.cc(570)] [3] GpuProcessHost::Get ok g_gpu_process_hosts[1]
[0422/121150.788:INFO:gpu_process_host.cc(547)] [1] GpuProcessHost::Get kind=1 force_create=1
[0422/121150.788:INFO:gpu_process_host.cc(555)] [2] GpuProcessHost::Get ok gpu_data_manager->GpuProcessStartAllowed()
[0422/121150.788:INFO:gpu_process_host.cc(570)] [3] GpuProcessHost::Get ok g_gpu_process_hosts[1]
[0422/121150.834:VERBOSE1:network_delegate.cc(32)] NetworkDelegate::NotifyBeforeURLRequest: http://www.google.com/
[0422/121150.850:INFO:gpu_process_host.cc(547)] [1] GpuProcessHost::Get kind=1 force_create=1
[0422/121150.850:INFO:gpu_process_host.cc(555)] [2] GpuProcessHost::Get ok gpu_data_manager->GpuProcessStartAllowed()
[0422/121150.866:INFO:gpu_process_host.cc(570)] [3] GpuProcessHost::Get ok g_gpu_process_hosts[1]
[0422/121150.897:INFO:dxva_video_decode_accelerator_win.cc(1399)] ++ entering DXVAVideoDecodeAccelerator::GetSupportedProfiles
[0422/121150.897:INFO:dxva_video_decode_accelerator_win.cc(1402)] [DXVAVideoDecodeAccelerator::GetSupportedProfiles] mfdll=mf.dll
[0422/121150.897:INFO:dxva_video_decode_accelerator_win.cc(1402)] [DXVAVideoDecodeAccelerator::GetSupportedProfiles] mfdll=mfplat.dll
[0422/121150.897:INFO:dxva_video_decode_accelerator_win.cc(1402)] [DXVAVideoDecodeAccelerator::GetSupportedProfiles] mfdll=msmpeg2vdec.dll
[0422/121151.866:INFO:gpu_process_host.cc(547)] [1] GpuProcessHost::Get kind=1 force_create=0
[0422/121151.866:INFO:gpu_process_host.cc(555)] [2] GpuProcessHost::Get ok gpu_data_manager->GpuProcessStartAllowed()
[0422/121151.867:INFO:gpu_process_host.cc(570)] [3] GpuProcessHost::Get ok g_gpu_process_hosts[1]
...


After this I am preparing also a 2019 community build:
Code: Select all
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome use_thin_lto=false
set GYP_MSVS_VERSION=2019


Maybe someone else knowing more and/or familiar with GPU unpleasantries will hopefully push me in the right direction.
ndesktop
Master
 
Posts: 538
Joined: Thu Dec 03, 2015 10:10 am

Re: x86 4430 make_distrib build fails

Postby ndesktop » Fri Apr 23, 2021 1:18 am

Long story short, VS2017 build successful for me.
It was the use_thin_lto=false that was missing from the GN_DEFINES for me, and I suspect for a part (if not all) of the other posters.

My environment:
- Windows 10 x64 Pro
- VS 2017 Community 15.9.35 (default location install)
- Python 2.7.17 x64

Configuration (from .bat file):
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
set GN_DEFINES=is_official_build=true use_thin_lto=false proprietary_codecs=true ffmpeg_branding=Chrome
set GYP_MSVS_VERSION=2017

Build succeeded, GPU process launches normally, with or without --no-sandbox.
Distribution also succeeded, no 1107 error from lib.exe as well.
ndesktop
Master
 
Posts: 538
Joined: Thu Dec 03, 2015 10:10 am

Re: x86 4430 make_distrib build fails

Postby vyunikov » Fri Apr 23, 2021 7:41 am

Thanks for you response, I'll give it a try as well
vyunikov
Newbie
 
Posts: 3
Joined: Wed Apr 21, 2021 1:49 pm

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 24 guests