Comments (10)
FYI, I'm not using this package, but running chrome --headless in my own docker container and experiencing this issue as well. This is on my local machine with 16 GiB of RAM, so I doubt that's the issue. It doesn't appear to affect the functioning of Chrome, though.
from chrome-headless-browser-docker.
Are you running the chrome-headless-browser or chrome-headless-browser-selenium? It would help if you could provide the step to reproduce that.
from chrome-headless-browser-docker.
only chrome-headless-browser, it's after started container with docker run -it --rm --name chrome --shm-size=512m -p=127.0.0.1:9222:9222 --cap-add=SYS_ADMIN \ yukinying/chrome-headless-browser
only changed --shm-size=512m
from chrome-headless-browser-docker.
I can't reproduce that. Perhaps your environment is having less than 512m memory?
from chrome-headless-browser-docker.
tested with 512mb vps
from chrome-headless-browser-docker.
A totally unresponsible, unverified comment from me: it may be caused by some large web page that needs more than 512mb of /dev/shm.
Is that any specific webpage that I can use to reproduce it?
from chrome-headless-browser-docker.
Hi @yukinying, I'm experiencing the issue too. Unfortunately I'm unable to give you access to the page. The page downloads total of 50Mb of data (around 50 images + 2 video) and displays it before screenshot. The page consumes around 500Mb (Chromium, ran locally). In docker it fails, docker has 4GB of ram.
Best problem I have is that an error is displayed only if dump is enabled, but no error is thrown. At this moment the command is waiting until docker container is closed. It should raise an error when there is issue like that. Currently I have a timeout that waits for 2 minutes and closes the browser.
The flow is that the browser is launched and script is executed, but while the page is rendered it throws multiple warnings (but no error is received, listening via page.on('error')
).
Try to load page with bigger number of images.
I've implemented listener for all resources. When first resource is downloaded, an error is in console.
Thank you,
Martin.
Console log
Waiting for resource 10/33
Waiting for resource 10/34
Waiting for resource 10/35
Waiting for resource 11/35
Received signal 7 BUS_ADRERR 7f5b0bab5000
#0 0x55bce5d5e657 Waiting for resource 12/35, finished with success Yes
base::debug::StackTrace::StackTrace()Waiting for resource 13/35, finished with success Yes
Waiting for resource 14/35, finished with success Yes
#1 0x55bce5d5e1cf base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x7f5b25beb890 <unknown>
#3 0x7f5b1f9a0106 <unknown>
#4 0x55bce7b9511e blink::ImageFrameGenerator::DecodeAndScale()
#5 0x55bce7b8b301 blink::DecodingImageGenerator::GetPixels()
#6 0x55bce5e52411 SkImageGenerator::getPixels()
#7 0x55bce5ea2967 SkImage_Lazy::onReadPixels()
#8 0x55bce67a6a9e cc::SoftwareImageDecodeCache::GetOriginalSizeImageDecode()
#9 0x55bce67a6192 cc::SoftwareImageDecodeCache::DecodeImageInternal()
#10 0x55bce67a5ced cc::SoftwareImageDecodeCache::DecodeImage()
#11 0x55bce67a98cc cc::(anonymous namespace)::ImageDecodeTaskImpl::RunOnWorkerThread()
#12 0x55bce8218197 Waiting for resource 14/36
Waiting for resource 15/36, finished with success Yes
Waiting for resource 15/37
Waiting for resource 16/37, finished with success Yes
content::CategorizedWorkerPool::RunTaskInCategoryWithLockAcquired()
#13 0x55bce82172da content::CategorizedWorkerPool::Run()
#14 0x55bce5db9652 Received signal 7 BUS_ADRERR 7f120fa9e000
#0 0x55f70176c657 base::SimpleThread::ThreadMain()
#15 0x55bce5db4d33 base::(anonymous namespace)::ThreadFunc()
#16 0x7f5b25be4064 start_thread
#17 0x7f5b1f9f662d clone
r8: ffffb9bd1cf4c020 r9: ffffb9bd1cf4c010 r10: ffffb9bd1cf4c000 r11: 000000000000132f
r12: 0000000000004cbc r13: 0000000000004cbc r14: 00007f5b13c6e690 r15: 00000000000001ec
di: 00007f5b0bab4950 si: 0000391828a00980 bp: 0000391828a00950 bx: 00007f5b0bab4950
dx: 00007f5b0bab9600 ax: ffffb9bd1cf4c030 cx: 00007f5b0bab5000 sp: 00007f5b13c6e578
ip: 00007f5b1f9a0106 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000006
trp: 000000000000000e msk: 0000000000000000 cr2: 00007f5b0bab5000
[end of stack trace]
Calling _exit(1). Core file will not be generated.
base::debug::StackTrace::StackTrace()
#1 0x55f70176c1cf base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x7f122e20b890 <unknown>
#3 0x7f1227fc0049 <unknown>
#4 0x55f701f7c5c4 net::HttpStreamParser::DoReadBody()
#5 0x55f701f7becc net::HttpStreamParser::DoLoop()
#6 0x55f701f7c0e1 net::HttpStreamParser::ReadResponseBody()
#7 0x55f701e89081 net::HttpNetworkTransaction::DoLoop()
#8 0x55f701e89b11 net::HttpNetworkTransaction::Read()
#9 0x55f701e7eed5 net::HttpCache::Transaction::DoNetworkRead()
#10 0x55f701e795ef net::HttpCache::Transaction::DoLoop()
#11 0x55f701e7a591 net::HttpCache::Transaction::Read()
#12 0x55f701fc8530 net::URLRequestHttpJob::ReadRawData()
#13 0x55f701f2eeda net::URLRequestJob::ReadRawDataHelper()
#14 0x55f701f2d636 net::URLRequestJob::Read()
#15 0x55f701f28ec8 net::URLRequest::Read()
#16 0x55f70065f903 content::DevToolsURLInterceptorRequestJob::ReadRawData()
#17 0x55f701f2eeda net::URLRequestJob::ReadRawDataHelper()
#18 0x55f701f2d636 net::URLRequestJob::Read()
#19 0x55f701f28ec8 net::URLRequest::Read()
#20 0x55f7007c3cba content::ResourceLoader::ReadMore()
#21 0x55f7007c3fb2 content::ResourceLoader::PrepareToReadMore()
#22 0x55f7007c31c7 content::ResourceLoader::CompleteResponseStarted()
#23 0x55f7007c2dda content::ResourceLoader::OnResponseStarted()
#24 0x55f701f2e03d net::URLRequestJob::NotifyHeadersComplete()
#25 0x55f701f2e03d net::URLRequestJob::NotifyHeadersComplete()
#26 0x55f701fc5430 net::URLRequestHttpJob::NotifyHeadersComplete()
#27 0x55f701fc703d net::URLRequestHttpJob::SaveCookiesAndNotifyHeadersComplete()
#28 0x55f701fc693e net::URLRequestHttpJob::OnStartCompleted()
#29 0x55f701e79761 net::HttpCache::Transaction::DoLoop()
#30 0x55f701e886f4 net::HttpNetworkTransaction::OnIOComplete()
#31 0x55f701f7b3ce net::HttpStreamParser::OnIOComplete()
#32 0x55f701ef3f3b net::TCPClientSocket::DidCompleteRead()
#33 0x55f701ef5731 net::TCPSocketPosix::ReadCompleted()
#34 0x55f701fb36d7 net::SocketPosix::RetryRead()
#35 0x55f701fb3ac7 net::SocketPosix::OnFileCanReadWithoutBlocking()
#36 0x55f701786c2e base::MessagePumpLibevent::OnLibeventNotification()
#37 0x55f70180722d event_base_loop
#38 0x55f701786f28 base::MessagePumpLibevent::Run()
#39 0x55f7017a3740 base::RunLoop::Run()
#40 0x55f70061ab06 content::BrowserThreadImpl::IOThreadRun()
#41 0x55f70061ad01 content::BrowserThreadImpl::Run()
#42 0x55f7017c8019 base::Thread::ThreadMain()
#43 0x55f7017c2d33 base::(anonymous namespace)::ThreadFunc()
#44 0x7f122e204064 start_thread
#45 0x7f122801662d clone
r8: 0000000000000000 r9: 0000000000000000 r10: 0018135c532ac628 r11: 0000000000000001
r12: 0000000000008000 r13: 000055f7059cf3cc r14: 00007f120fa9e000 r15: 000000000000041f
di: 00007f120fa9e000 si: 000011042b4af198 bp: 000000000000041f bx: 000011042b4bb2a0
dx: 000000000000041f ax: ffff91f21ba10d79 cx: 000000000000083e sp: 00007f1219287178
ip: 00007f1227fc0049 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000006
trp: 000000000000000e msk: 0000000000000000 cr2: 00007f120fa9e000
[end of stack trace]
Calling _exit(1). Core file will not be generated.
from chrome-headless-browser-docker.
Did you use the --shm-size
flag to set the shm size to a larger amount, such as 1024m?
from chrome-headless-browser-docker.
@yukinying Thank you, I missed that. 1024m seems to not hide the error about operation and not fixing the "decode" issues. Mainly I'm sorry that I've reported the main error here, it should be reported at in headless chrome / puppeteer package.
Best regards, Martin
from chrome-headless-browser-docker.
Not sure if this is still reproducible, please reopen if so. Thanks.
from chrome-headless-browser-docker.
Related Issues (20)
- Pages not rendering with newest version of Chrome HOT 2
- error while loading shared libraries: libgconf-2.so.4 HOT 2
- Upgrade OS image and driver to latest version
- Provide a stable chrome version, too HOT 2
- How to access vagrant web server from the container? HOT 1
- Host header is specified and is not an IP address or localhost. HOT 12
- chrome crashed after the first round testing HOT 3
- Error During Build HOT 7
- cant pass parameters into the chrome drive for image: Chrome Headless Browser with Chrome Driver in Selenium HOT 1
- docker.for.mac.localhost not connecting from inspector HOT 3
- Debian stable is now bullseye HOT 4
- Image doesn't work on M1 Macs HOT 18
- WebGL disabled in chrome-headless-browser-stable image HOT 5
- E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied) HOT 1
- Container failing to boot HOT 4
- In CasaOS, there is a certain chance that it cannot be opened normally.
- Can't use with M2 Mac HOT 5
- Downloading files not working as expected HOT 7
- dbus errors when running chrome-headless-browser-stable (M2 Mac) HOT 1
- Unable to connect to chrome over websocket url HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-headless-browser-docker.