sitespeedio / browsertime

Measure and Optimize Web Performance
https://www.sitespeed.io/documentation/browsertime/
Apache License 2.0
608 stars 137 forks source link

Chrome 119+ fails to start #1997

Closed soulgalore closed 11 months ago

soulgalore commented 1 year ago

It seems like something changed in upcoming versions of Chrome. Our GitHub actions have stoped to work where we run tests against future versions. The errors looks like this:

chrome failed to start, trying 0 more time(s): session not created
from unknown error: result.webdriverValue.value list is missing or empty in Runtime.callFunctionOn response
  (Session info: chrome=119.0.6045.10)

Looking in the Chromedriver log the interesting entries look like:

[1697021068.344][DEBUG]: DevTools WebSocket Command: Runtime.callFunctionOn (id=15) (session_id=9337C225C091AFB9F7E3039FC1E9295D) 960A30D9B802225032C5134867AE3B08 {
   "arguments": [  ],
   "awaitPromise": true,
   "functionDeclaration": "function(){ return (function() { // Copyright 2012 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum for WebD...",
   "generateWebDriverValue": true,
   "objectGroup": "9f2ee338-32ca-420b-baad-d8beb88fca92",
   "uniqueContextId": "3918417324110589730.-8634711170600083567"
}
[1697021068.345][DEBUG]: DevTools WebSocket Response: Runtime.callFunctionOn (id=15) (session_id=9337C225C091AFB9F7E3039FC1E9295D) 960A30D9B802225032C5134867AE3B08 {
   "result": {
      "className": "Array",
      "description": "Array(1)",
      "objectId": "-1324948504497931544.1.1",
      "subtype": "array",
      "type": "object"
   }
}
[1697021068.348][DEBUG]: DevTools WebSocket Command: Runtime.releaseObjectGroup (id=16) (session_id=9337C225C091AFB9F7E3039FC1E9295D) 960A30D9B802225032C5134867AE3B08 {
   "objectGroup": "9f2ee338-32ca-420b-baad-d8beb88fca92"
}
[1697021068.404][INFO]: [8a356ea96ab8bfdf06eced6abfe9b1c7] RESPONSE InitSession ERROR session not created
from unknown error: result.webdriverValue.value list is missing or empty in Runtime.callFunctionOn response
  (Session info: chrome=119.0.6045.10)
soulgalore commented 1 year ago

This has been fixed in Chromedriver 119 so ... lets remember to upgrade when it comes out as stable.