Runtime error after first build on Mac OS

85 views
Skip to first unread message

Guy Sagy

unread,
Feb 26, 2025, 12:36:36 PM2/26/25
to Chromium-dev
Hi.

I followed the download, build, and run instructions on Mac OS 15.3.

Basically, I did :
caffeinate fetch --no-history chromium
cd src
gn gen out/Default
autoninja -C out/Default chrome
out/Default/Chromium.app/Contents/MacOS/Chromium

I did not set API keys since it is said to be optional.

Chrome fails on first attempt to run it, with the following error output :
```
src % out/Default/Chromium.app/Contents/MacOS/Chromium
objc[10911]: Class ImageCaptureDevice is implemented in both /Users/<redacted>/a8/chromium/src/out/Default/libbrowser_ui_views.dylib (0x1b3498b00) and /Users/<redacted>/a8/chromium/src/out/Default/libchrome_dll.dylib (0x1433c5bb8). One of the two will be used. Which one is undefined.
objc[10911]: Class ImageCaptureDeviceManagerImpl is implemented in both /Users/<redacted>/a8/chromium/src/out/Default/libbrowser_ui_views.dylib (0x1b3498b50) and /Users/<redacted>/a8/chromium/src/out/Default/libchrome_dll.dylib (0x1433c5c08). One of the two will be used. Which one is undefined.
[10911:3785096:0225/132748.148005:ERROR:code_sign_clone_manager.mm(98)] error removing quarantine attribute "/var/folders/xr/lfslclys61dcjl_qcvd36kqw0000gr/X/"
[10911:3785096:0225/132748.186151:ERROR:code_sign_clone_manager.mm(98)] error removing quarantine attribute "/var/folders/xr/lfslclys61dcjl_qcvd36kqw0000gr/X/"
[10911:3785113:0225/132748.195137:ERROR:sandbox_mac.mm(39)] GetCanonicalSandboxPath() failed for: /Users/<redacted>/Library/Caches/Chromium: No such file or directory (2)
[10911:3785013:0225/132748.428307:WARNING:account_consistency_mode_manager.cc(72)] Desktop Identity Consistency cannot be enabled as no OAuth client ID and client secret have been configured.
[10911:3785013:0225/132748.433785:FATAL:content_settings_policy_provider.cc(603)] Check failed: !prefs_->HasPrefPath(entry.pref_name) || prefs_->IsManagedPreference(entry.pref_name).
```

I than followed the instructions for creating an xcode project, opening the project, setting a breakpoint on the last line above, and running, but this breakpoint does not get hit (some other error occurs before it, seems like it actually runs a test suite). So I could not debug to find the root cause.

Any suggestions what may cause this failure on content_settings_policy_provider.cc(603) ?

Thank you!
Reply all
Reply to author
Forward
0 new messages