macOS arm64 Debug build broken?

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.

macOS arm64 Debug build broken?

Postby robs » Mon Dec 07, 2020 10:51 am

Hello,

Thanks for the work to support CEF on the Apple Silicon (M1) processors.
Is it expected (or known) that it does not work in a Debug build?

1. Download the spotify build for arm64:
https://cef-builds.spotifycdn.com/cef_b ... 64.tar.bz2

2. Before expanding the archive you probably want to remove the quarantine xattr from the file:
xattr -c ~/Downloads/cef_binary*.bz2

3. Expand the bz2

4. Configure and build:
Code: Select all
cd cef...
mkdir build && cd build
cmake .. -G Xcode -DPROJECT_ARCH="arm64"
open cef.xcodeproj
build and launch Debug cefclient.app


It launches, but the window stays white. I see the following in the console:
Code: Select all
2020-12-07 10:39:32.075750-0500 cefclient Helper (GPU)[57258:13510473] [1207/103932.075262:ERROR:vt_video_encode_accelerator_mac.cc(515)]  VTCompressionSessionCreate failed: -12908
[1207/103932.075262:ERROR:vt_video_encode_accelerator_mac.cc(515)]  VTCompressionSessionCreate failed: -12908


When I launch in a Release build I don't see the above error in the console.

I'm running on an Apple Developer Transition Kit. macOS Big Sur 11.0.1. Xcode version 12.2.

Note, when I build with ninja, it crashes on launch with the crash reporting saying "Termination Reason: Namespace CODESIGNING, Code 0x2". I suppose I need to sign it, and Xcode does this automatically?

Thanks,
Rob
robs
Mentor
 
Posts: 70
Joined: Wed Jun 05, 2013 2:22 pm

Re: macOS arm64 Debug build broken?

Postby magreenblatt » Mon Dec 07, 2020 10:57 am

Yes, there appears to be a renderer process crash with the Debug build.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: macOS arm64 Debug build broken?

Postby robs » Mon Dec 07, 2020 11:10 am

Thanks, would you like me to add a bug, or is this known?

Rob
robs
Mentor
 
Posts: 70
Joined: Wed Jun 05, 2013 2:22 pm

Re: macOS arm64 Debug build broken?

Postby magreenblatt » Mon Dec 07, 2020 11:43 am

You can leave it with me. I suspect it will be a Chromium issue.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 65 guests