-
Notifications
You must be signed in to change notification settings - Fork 25
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
cef
directory, mimicking the structure thatexport-cef-dir
command would generate.
a. Movecmake
,include
,libcef_dll
, andCMakeLists.txt
files and directories into the newcef
directory.
b. From the downloaded CEF distribution, moveChromium Embedded Framework.framework
from itsDebug
subfolder into thecef
directory.
c. Create anarchive.json
file inside thecef
directory with the content{"type": "standard"}
, mimickingarchive.json
thatexport-cef-dir
would generate. - Set the
CEF_PATH
andDYLD_FALLBACK_LIBRARY_PATH
environment variables to the absolute path of thecef
directory 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