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: 558
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: 558
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

Re: x86 4430 make_distrib build fails

Postby rleblanc » Mon Jul 19, 2021 9:25 am

Hi,

I have the exact same problem with build 4472 on Windows 10.

update.bat:
Code: Select all
set GN_DEFINES=proprietary_codecs=true ffmpeg_branding="Chrome" is_official_build=true use_thin_lto=false

set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=c:\code\chromium_git --depot-tools-dir=c:\code\depot_tools --no-distrib --no-build --branch=4472 --force-config --force-clean


create.bat:
Code: Select all
set GN_DEFINES=proprietary_codecs=true ffmpeg_branding="Chrome" is_official_build=true

REM Use vs2017 or vs2019 as appropriate.
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
call cef_create_projects.bat


Packaging command:
Code: Select all
PS C:\code\chromium_git\chromium\src\cef\tools> set CEF_ARCHIVE_FORMAT=tar.bz2
PS C:\code\chromium_git\chromium\src\cef\tools> ./make_distrib.bat --ninja-build --x64-build


Did anyone find a solution yet?
rleblanc
Newbie
 
Posts: 4
Joined: Mon Jul 19, 2021 9:03 am

Re: x86 4430 make_distrib build fails

Postby magreenblatt » Mon Jul 19, 2021 9:58 am

You need to build before you can make a distribution. Only pass --x64-build if you have created an x64 build.
magreenblatt
Site Admin
 
Posts: 10942
Joined: Fri May 29, 2009 6:57 pm

Re: x86 4430 make_distrib build fails

Postby rleblanc » Mon Jul 19, 2021 10:16 am

magreenblatt wrote:You need to build before you can make a distribution. Only pass --x64-build if you have created an x64 build.


I did build both debug and release x64 versions prior to creating the package.
rleblanc
Newbie
 
Posts: 4
Joined: Mon Jul 19, 2021 9:03 am

Re: x86 4430 make_distrib build fails

Postby magreenblatt » Mon Jul 19, 2021 10:37 am

rleblanc wrote:
magreenblatt wrote:You need to build before you can make a distribution. Only pass --x64-build if you have created an x64 build.


I did build both debug and release x64 versions prior to creating the package.

Your GN_DEFINES don't match for create.bat and update.bat. You're missing use_thin_lto=false from create.bat.
magreenblatt
Site Admin
 
Posts: 10942
Joined: Fri May 29, 2009 6:57 pm

Re: x86 4430 make_distrib build fails

Postby rleblanc » Mon Jul 19, 2021 12:52 pm

Thanks @magreenblatt

When looking at the doc, I had the impression that it was needed only in the update.bat script. I'll give it a try and let you know.
rleblanc
Newbie
 
Posts: 4
Joined: Mon Jul 19, 2021 9:03 am

Re: x86 4430 make_distrib build fails

Postby rleblanc » Thu Jul 22, 2021 7:35 am

For the record, adding the flag use_thin_lto=false in both create.bat and update.bat did the job. It works perfectly fine now.

Thank you!
rleblanc
Newbie
 
Posts: 4
Joined: Mon Jul 19, 2021 9:03 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 11 guests