You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When capturing a screenshot of an HTML page with a large jpeg image in it, instead of capturing a screenshot, Chrome will hang and refuse to respond to any further commands. This does not happen when running the same commands on the host OS, this is only reproducible in the alpine-chrome Docker container.
To Reproduce
Unzip included chrome-bug.zip file on system with docker installed
The line "Screenshot captured" will eventually be printed to the console
What is the actual behavior?
Chrome will hang at some point in the loading process or when trying to take the screenshot itself. Once this happens the Chrome process seems to become totally unresponsive to any command sent by the remote interface.
Additional context
If you edit the page.html file and change "large.jpg" to "small.jpg", the script runs as expected. This issue only seems to happen when viewing larger images, around 1MB or greater.
This bug happens both on ARM and x64.
The text was updated successfully, but these errors were encountered:
After a few hours of digging and testing, the only thing that makes everything work is the flag --disable-dev-shm-usage mentioned here #225 (comment). It was because /dev/shm partition is too small in some VMs, causing Chrome to crash. Thanks to @sfcgeorge for documenting the flags.
Describe the bug
When capturing a screenshot of an HTML page with a large jpeg image in it, instead of capturing a screenshot, Chrome will hang and refuse to respond to any further commands. This does not happen when running the same commands on the host OS, this is only reproducible in the alpine-chrome Docker container.
To Reproduce
chrome-bug.zip
What is the expected behavior?
The line "Screenshot captured" will eventually be printed to the console
What is the actual behavior?
Chrome will hang at some point in the loading process or when trying to take the screenshot itself. Once this happens the Chrome process seems to become totally unresponsive to any command sent by the remote interface.
Additional context
If you edit the page.html file and change "large.jpg" to "small.jpg", the script runs as expected. This issue only seems to happen when viewing larger images, around 1MB or greater.
This bug happens both on ARM and x64.
The text was updated successfully, but these errors were encountered: