ソースを参照

added --disable-dev-shm-usage flag to fix some more "Aw, Snap!" errors and video playback ("ERROR:broker_posix.cc(46)] Received unexpected number of handles")

Fabian Peter Hammerle 3 年 前
コミット
01e13852a2
2 ファイル変更7 行追加2 行削除
  1. 2 0
      CHANGELOG.md
  2. 5 2
      Dockerfile

+ 2 - 0
CHANGELOG.md

@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Fixed
 - added `libgl1` to fix some browser crashes
   and to reduce ubiquitous "Aw, Snap!" errors ("Error code: 6")
+- added `--disable-dev-shm-usage` flag to fix some more "Aw, Snap!" errors and video playback
+  (apparently by resolving "ERROR:broker_posix.cc(46)] Received unexpected number of handles")
 
 ## [0.1.0] - 2021-02-15
 ### Added

+ 5 - 2
Dockerfile

@@ -31,8 +31,11 @@ RUN apt-get update \
 
 USER browser
 VOLUME /home/browser
-#CMD ["brave-browser"] podman
-CMD ["brave-browser", "--no-sandbox"]
+# --disable-dev-shm-usage to fix some "Aw, Snap!" errors and video playback,
+# apparently by resolving:
+# > ERROR:broker_posix.cc(46)] Received unexpected number of handles
+# https://github.com/WPO-Foundation/wptagent/issues/327#issuecomment-614086842
+CMD ["brave-browser", "--no-sandbox", "--disable-dev-shm-usage"]
 
 # https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
 ARG REVISION=