In chrome61 headless mode, captureScreen() is hanged.
Reported by
dotn...@gmail.com,
Jul 13 2017
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.66 Safari/537.36
Steps to reproduce the problem:
1. open chrome browser in headless mode.
2. call Emulation.setDeviceMetricsOverride({ width: 784,
height: 272,
deviceScaleFactor: 2,
mobile: false,
fitWindow: false })
3. call Page.captureScreen({format: 'png', fromSurface: true})
What is the expected behavior?
captureScreen() returns image data.
What went wrong?
captureScreen() is hanged.
Did this work before? N/A
Chrome version: 61.0.3155.0 Channel: canary
OS Version: OS X 10.12.5
Flash Version:
I had been trying to take full screen screenshot in headless mode, captureScreen() is hanged.
I used chrome-remote-interface to call devtools api.
https://github.com/cyrus-and/chrome-remote-interface
,
Jul 13 2017
I'm assuming you're talking about Page.captureScreenshot? pfeldman@ made some changes to this recently, it may be related.
,
Jul 13 2017
Confirming the issue, I noticed it earlier today, will investigate tomorrow my time. So far I'm aware of Mac+Headless+Emulation being affected.
,
Jul 13 2017
Sorryćfor mistype. I've called Page.captureScreenshot().
,
Jul 14 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/73e7faeab75df27cd159b5352518d1480989d198 commit 73e7faeab75df27cd159b5352518d1480989d198 Author: Pavel Feldman <pfeldman@chromium.org> Date: Fri Jul 14 23:36:48 2017 DevTools: fix screenshots on mac headless while emulating. Bug: 741969 Change-Id: Id80b178aee043babd25a533e21fc25118a446d77 Reviewed-on: https://chromium-review.googlesource.com/572424 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Pavel Feldman <pfeldman@chromium.org> Cr-Commit-Position: refs/heads/master@{#486940} [modify] https://crrev.com/73e7faeab75df27cd159b5352518d1480989d198/content/browser/devtools/protocol/page_handler.cc
,
Jul 16 2017
Thank you! I could confirm that this problem is not occurred with latest canary.
,
Jul 18 2017
Adding Verified label as per comment #6. Thanks!!
,
Jul 18 2017
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by dotn...@gmail.com
, Jul 13 2017