chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.09k stars 450 forks source link

cef crashes on Ubuntu 24 #3678

Closed ujpv closed 2 months ago

ujpv commented 2 months ago

Describe the bug cef apps run with sandbox enabled are crashing on start.

To Reproduce Steps to reproduce the behavior:

  1. Get recent cef distribution.
  2. Build cefclient.
  3. Run it.
  4. Observe a crash.
    [0405/190032.812500:FATAL:credentials.cc(127)] Check failed: . : Permission denied (13)

Expected behavior No crash.

Versions (please complete the following information):

Additional context Does the problem reproduce with the cefclient or cefsimple sample application at the same version? Yes

Does the problem reproduce with Google Chrome at the same version? Yes

Add any other context about the problem here.

Explanation of the changes in Ubuntu that most likely the reason of this crash. https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces

Related usue in Canonical tracker: https://bugs.launchpad.net/apparmor/+bug/2046844

Similar issue in electron: https://github.com/electron/electron/issues/41066

magreenblatt commented 2 months ago

The electron issue links the related Chromium bug and mentions a potential workaround. I don't see anything to do here from the CEF side.