New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 764348 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Cannot capture screenshot with CRI, Chrome 61

Reported by grigoriy...@gmail.com, Sep 12 2017

Issue description

Chrome Version       : 61.0.3163.79
chrome-remote-interface version       : 0.24.5

What steps will reproduce the problem?
(1) Update Chrome to 61 version
(2) Run headless Chrome with CRI
(3) Try to take screenshot

 const screenshot = await Page.captureScreenshot({
                format,
                fromSurface: true,
                quality: 1,
                clip: {
                    width: 1440,
                    height: 900
                }
            });

(5) This code worked for sure in Chrome 60. Result

 Exception while taking screenshot: { Error: Invalid parameters
    at D:\video_capturer\chromeNode\node_modules\chrome-remote-interface\lib\chrome.js:81:28
    at Chrome.handleMessage (D:\video_capturer\chromeNode\node_modules\chrome-remote-interface\lib\chrome.js:271:13)
    at WebSocket.<anonymous> (D:\video_capturer\chromeNode\node_modules\chrome-remote-interface\lib\chrome.js:248:27)
    at emitTwo (events.js:125:13)
    at WebSocket.emit (events.js:213:7)
    at Receiver._receiver.onmessage (D:\video_capturer\chromeNode\node_modules\ws\lib\WebSocket.js:143:54)
    at Receiver.dataMessage (D:\video_capturer\chromeNode\node_modules\ws\lib\Receiver.js:385:14)
    at extension.decompress (D:\video_capturer\chromeNode\node_modules\ws\lib\Receiver.js:354:40)
    at _inflate.flush (D:\video_capturer\chromeNode\node_modules\ws\lib\PerMessageDeflate.js:279:12)
    at afterWrite (_stream_writable.js:452:3)
  code: -32602,
  data: 'clip.x: double value expected; clip.y: double value expected'

(6) Rerun with expected params

const screenshot = await Page.captureScreenshot({
                format,
                fromSurface: true,
                quality: 1,
                clip: {
                    width: 1440,
                    height: 900,
                    x: 0,
                    y: 0,
                    scale: 1
                }
            });


What is the expected result?
The screenshot was taken.

What happens instead?
The execution just froze.

 
Accidentally missed (4) in steps to reproduce
Cc: einbinder@chromium.org lushnikov@chromium.org
cc'ing @lushnikov and @einbinder since this seems relevant to Puppeteer.
Labels: Needs-Triage-M61 TE-NeedsTriageHelp
Unable to triage this issue from TE-End, hence adding TE-NeedsTriageHelp label for further triage.
Reproduced on Windows 10, Chrome 61.0.3163.91, using chrome-remote-interface 0.24.5. No error - execution just hangs. Chrome 60 worked as expected.
Also reproduced in chromium-browser 61 on Ubuntu 14.04.
Owner: einbinder@chromium.org
Status: Assigned (was: Unconfirmed)

Sign in to add a comment