Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome fails to load web page and crashes due to net::ERR_INSUFFICIENT_RESOURCES #222

Open
mflorea opened this issue Jan 6, 2023 · 3 comments
Labels

Comments

@mflorea
Copy link

mflorea commented Jan 6, 2023

Describe the bug

I've been using the zenika/alpine-chrome:latest image without any issue for almost 1 year but today I had to clear (prune) the Docker images I have locally and the new fetched image stopped working correctly. My code hasn't changed so this is clearly a regression on the Chrome image side. I then run my code with the zenika/alpine-chrome:102 image and everything was fine. So the problem seems to be with the latest 108 tag.

To Reproduce

Steps to reproduce the behavior:

  1. I have these images:
    REPOSITORY             TAG       IMAGE ID       CREATED       SIZE
    zenika/alpine-chrome   latest    c70655f95a7e   2 days ago    439MB
    zenika/alpine-chrome   102       fdcfb5e17b3e   3 weeks ago   405MB
    
  2. I create a start the docker container, which leads to:
    zenika/alpine-chrome:latest   "chromium-browser --headless --no-sandbox --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222"
    
    zenika/alpine-chrome:102   "chromium-browser --headless --use-gl=swiftshader --disable-software-rasterizer --disable-dev-shm-usage --no-sandbox --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222"
    
    Notice that the command line parameters passed to Chrome are different between the two images, most probably related to a80c4e3 .
  3. Open http://localhost:9222/json with the local instance of Chrome to connect remotely to the Chrome instance from the Docker container
  4. Open something like http://localhost:9222/devtools/inspector.html?ws=localhost:9222/devtools/page/86DA8B8B16A870375D36C324EB4D0FA9 with the local instance of Chrome to connect remotely to the Chrome tab
  5. Load https://github.com/Zenika/alpine-chrome in the remote Chrome tab

What is the expected behavior?

The web page is loaded fine.

What is the actual behavior?

The web page is loaded fine with the 102 tag but crashes the Chrome browser (with lots of net::ERR_INSUFFICIENT_RESOURCES) when the latest (108) tag is used.

Versions

Docker Engine: 20.10.22

@mflorea mflorea added the bug label Jan 6, 2023
@RoSk0
Copy link
Contributor

RoSk0 commented Jan 11, 2023

I might have facing the same issue.

At the moment a pinned a problem down to the this image version. Tag 100 confirmed to work. Running test pipelines at the moment to get actual logs on 102 and 108 tags.

Thanks for details @mflorea !

@RoSk0
Copy link
Contributor

RoSk0 commented Jan 11, 2023

With the flags from environment variable CHROMIUM_FLAGS added to the start command I see way less errors on 108 tagged image and my test suite passes with browser crash. So I believe that a80c4e3 commit should be reverted.

@fran6k
Copy link

fran6k commented Feb 25, 2023

i face the same issue both tag 102 and latest :( 。but happen occasionally。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants