void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

Constant "Aw, snap!" in Chromium on musl

Open Logarithmus opened this issue 3 years ago • 5 comments

System

  • package: chromium
  • affected package(s) including the version: latest version of chromium from the tier 1 repo

Expected behavior

Normal operation

Actual behavior

Aw, snap! Error 256 appears and the tab dies.

Steps to reproduce the behavior

Open Chromium and browse the Internet for some time, especially JS-heavy websites like YouTube or Facebook.

Logarithmus avatar Mar 21 '21 12:03 Logarithmus

Can reproduce. Not consistently though. Likely relation to #29105.

fosslinux avatar Mar 23 '21 08:03 fosslinux

Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.

github-actions[bot] avatar May 10 '22 02:05 github-actions[bot]

not fixed

fosslinux avatar May 10 '22 07:05 fosslinux

Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.

github-actions[bot] avatar Aug 09 '22 02:08 github-actions[bot]

Bump

Logarithmus avatar Aug 09 '22 06:08 Logarithmus

Seems to have to do with the fact that sandboxed chromium uses features that are missing in musl. If you run chromium with "--no-sandbox" option, i.e. without sandbox mode, then the problem is not present. I can't believe that after all these years this still hasn't been fixed. Very disappointing.

ohoes avatar Jan 02 '24 21:01 ohoes

Its not that simple, --no-sandbox has a bunch of implications other than the simple filtering of system calls, the issues are most likely related to multi threading and locks/mutexes, --no-sandbox makes chromium basically single threaded.

Duncaen avatar Jan 03 '24 00:01 Duncaen

Its not that simple, --no-sandbox has a bunch of implications other than the simple filtering of system calls, the issues are most likely related to multi threading and locks/mutexes, --no-sandbox makes chromium basically single threaded.

Still, running without sandbox is the only workaround (that I know of), though. Perhaps it would be useful to add it to the package. Without that argument, Chromium is practically unusable on musl.

ohoes avatar Jan 05 '24 19:01 ohoes

You should not be using chromium without the sandbox though, yes its unusable.

Duncaen avatar Jan 05 '24 20:01 Duncaen

Chromium here is so far beyond broken as to be comical, and this seems to be a somewhat recent regression.

  • Constant tab deaths as described in OP
  • Constant infinite-loading-spinner states when navigating between pages
  • Generally hangs when trying to kill tabs stuck in ^ state
  • Occasional full browser locks

This happens with or without sandbox flags, with GTK 3 or 4 (set by CLI flags), with X11 or Wayland Ozone hints, and seemingly no matter what.

Unfortunately some of the above appears to be Blink related and not Chromium-specific, as the same freezing happens with Qutebrowser. Functionally, this means I have to use a glibc-based Distrobox container to run Chromium-ish browsers for that 5-10% of the internet too lazy to check their work in Firefox, because nothing Chromium-based currently works on my musl-based install.

klardotsh avatar Feb 18 '24 20:02 klardotsh

Chromium here is so far beyond broken as to be comical, and this seems to be a somewhat recent regression.

* Constant tab deaths as described in OP

* Constant infinite-loading-spinner states when navigating between pages

* Generally hangs when trying to kill tabs stuck in ^ state

* Occasional full browser locks

This happens with or without sandbox flags, with GTK 3 or 4 (set by CLI flags), with X11 or Wayland Ozone hints, and seemingly no matter what.

Unfortunately some of the above appears to be Blink related and not Chromium-specific, as the same freezing happens with Qutebrowser. Functionally, this means I have to use a glibc-based Distrobox container to run Chromium-ish browsers for that 5-10% of the internet too lazy to check their work in Firefox, because nothing Chromium-based currently works on my musl-based install.

Actually, I now use chromium with jitless js flags, and it works almost flawlessly (for me) crazy enough. Took me a darn long time to get this working on musl. I found it at the ungoogled chromium repo. Let me know if it works for you, too. https://github.com/DAINRA/ungoogled-chromium-void?tab=readme-ov-file#musl-crashes-mitigation)

ohoes avatar Mar 24 '24 11:03 ohoes