GithubHelp home page GithubHelp logo

Comments (10)

hackel avatar hackel commented on May 21, 2024 7

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.

yukinying avatar yukinying commented on May 21, 2024

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.

hbakhtiyor avatar hbakhtiyor commented on May 21, 2024

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.

yukinying avatar yukinying commented on May 21, 2024

I can't reproduce that. Perhaps your environment is having less than 512m memory?

from chrome-headless-browser-docker.

hbakhtiyor avatar hbakhtiyor commented on May 21, 2024

tested with 512mb vps

from chrome-headless-browser-docker.

yukinying avatar yukinying commented on May 21, 2024

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.

pionl avatar pionl commented on May 21, 2024

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.

yukinying avatar yukinying commented on May 21, 2024

Did you use the --shm-size flag to set the shm size to a larger amount, such as 1024m?

from chrome-headless-browser-docker.

pionl avatar pionl commented on May 21, 2024

@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.

yukinying avatar yukinying commented on May 21, 2024

Not sure if this is still reproducible, please reopen if so. Thanks.

from chrome-headless-browser-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.