-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Describe the bug
When using a debug build of CEF on macOS, the cefsimple example crashes on launch due to a DCHECK failure.
[39815:226336:0814/115923.756723:FATAL:chrome/common/chrome_paths_mac.mm:189] DCHECK failed: path.BaseName().value() == kChromeVersion (target vs. 139.0.7258.31)
I was wondering if this is a known issue. Alternatively, perhaps cef-rs does not yet officially support CEF debug builds. Could you please clarify if this is the expected behavior?
To Reproduce
Steps to reproduce the behavior:
- Clone repository.
- Download the CEF Standard Distribution from here that matches the CEF version used by cef-rs.
- Manually create a
cefdirectory, mimicking the structure thatexport-cef-dircommand would generate.
a. Movecmake,include,libcef_dll, andCMakeLists.txtfiles and directories into the newcefdirectory.
b. From the downloaded CEF distribution, moveChromium Embedded Framework.frameworkfrom itsDebugsubfolder into thecefdirectory.
c. Create anarchive.jsonfile inside thecefdirectory with the content{"type": "standard"}, mimickingarchive.jsonthatexport-cef-dirwould generate. - Set the
CEF_PATHandDYLD_FALLBACK_LIBRARY_PATHenvironment variables to the absolute path of thecefdirectory you just created. - Bundle the cefsimple example using the command:
cargo run --bin bundle_cefsimple. - Attempt to run the bundled application from your shell:
./target/debug/cefsimple.app/Contents/MacOS/cefsimple
Expected behavior
The cefsimple application should launch successfully and display its window without any crashes.
Additional context
I found that the initial startup crash can be worked around by setting LSUIElement to 0 at this line:
| ls_ui_element: "1".to_string(), |
Metadata
Metadata
Assignees
Labels
No labels