From d8a9ee87719d7b0a32ab4c709c008d4ba9913b16 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Wed, 7 May 2025 11:21:36 +0200 Subject: [PATCH] Fix CEF deprecation notice and crash (#3643) According to https://github.com/chromiumembedded/cef/issues/3685, using the so-called "Alloy bootstrap" (which seems to be the default) is deprecated. This causes a warning when starting OpenSpace. In some setups (e.g. an AppImage build on Ubuntu 22.04), the warning is followed by a fatal error and a crash: [0505/213642.653624:FATAL:path_service.cc(265)] Failed to get the path for 1001 Following the migration instructions from the aforementioned ticket solve both the warning and the crash. --- modules/webbrowser/src/cefhost.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/webbrowser/src/cefhost.cpp b/modules/webbrowser/src/cefhost.cpp index 1e3c197cf2..7b7bf7d355 100644 --- a/modules/webbrowser/src/cefhost.cpp +++ b/modules/webbrowser/src/cefhost.cpp @@ -57,6 +57,9 @@ CefHost::CefHost([[maybe_unused]] const std::string& helperLocation) { settings.windowless_rendering_enabled = true; attachDebugSettings(settings); + // cf. https://github.com/chromiumembedded/cef/issues/3685 + setings.chrome_runtime = true; + #ifdef __APPLE__ // Load the CEF framework library at runtime instead of linking directly as required // by the macOS sandbox implementation