New issue
Advanced search Search tips

Issue 741969 link

Starred by 7 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug


Participants' hotlists:
Hotlist-1


Sign in to add a comment

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
 

Comment 1 by dotn...@gmail.com, Jul 13 2017

Without headless or device emulation it works correctly.

Cc: eseckler@chromium.org pfeldman@chromium.org
Components: Internals>Headless
Status: Available (was: Unconfirmed)
I'm assuming you're talking about Page.captureScreenshot?

pfeldman@ made some changes to this recently, it may be related.
Owner: pfeldman@chromium.org
Status: Assigned (was: Available)
Confirming the issue, I noticed it earlier today, will investigate tomorrow my time. So far I'm aware of Mac+Headless+Emulation being affected.

Comment 4 by dotn...@gmail.com, Jul 13 2017

Sorry怀for mistype. I've called Page.captureScreenshot().

Project Member

Comment 5 by bugdroid1@chromium.org, 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

Comment 6 by dotn...@gmail.com, Jul 16 2017

Thank you!
I could confirm that this problem is not occurred with latest canary.

Labels: TE-Verified-M61 TE-Verified-61.0.3159.5
Adding Verified label as per comment #6.

Thanks!!
Status: Fixed (was: Assigned)

Sign in to add a comment