cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras

Open Pratap22 opened this issue 2 years ago • 3 comments

Description

When I try to run cypress run --browser chrome, I get the error mentioned in the description.

URL of Issue(s)

No link

Steps to replicate

  1. Install cypress
  2. Write Cypress Test
  3. run cypress run --browser chrome
  4. You will see this warning Cypress Helper (GPU)[18271:268052] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.

It will fail after. Still waiting to connect to Chrome, retrying in 1 second (attempt 62/62)

Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 50 seconds.

This usually indicates there was a problem opening the Chrome browser.

The CDP port requested was 51109.

Error: connect ECONNREFUSED 127.0.0.1:51109
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)

error Command failed with exit code 1.

Screenshot 2023-10-02 at 11 01 23 AM Screenshot 2023-10-02 at 11 01 58 AM

Browser

Chrome Version 117.0.5938.92 (Official Build) (arm64)

Device

  • [X] PC
  • [X] Mac
  • [ ] iPhone
  • [ ] iPad
  • [ ] Android Phone
  • [ ] Android Tablet

Additional Information

Cypress Helper (GPU)[18271:268052] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.

Pratap22 avatar Oct 02 '23 05:10 Pratap22

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        10.3.0                                                                         │
  │ Browser:        Chrome 117 (headless)                                                          │
  │ Node Version:   v16.13.0 (/Users/admin/.nvm/versions/node/v16.13.0/bin/node)                   │
  │ Specs:          1 found (apply-ipo.cy.js)                                                      │
  │ Searched:       cypress/e2e/**/*.cy.{js,jsx,ts,tsx}                                            │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


Pratap22 avatar Oct 02 '23 05:10 Pratap22

@Pratap22

  • This issue list is for documentation errors. Your issue belongs in the https://github.com/cypress-io/cypress/issues list, where you can find your issue also reported and resolved.
  • You can find the resolved issue https://github.com/cypress-io/cypress/issues/27804 regarding:

Error: connect ECONNREFUSED 127.0.0.1:51109 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)

  • You will need to update to Google Chrome 117.0.5938.132 to have the headless bug fixed.https://github.com/cypress-io/cypress/issues/27804#issuecomment-1739677391
  • Node.js v16.13.0 has reached end-of-life and is no longer supported. It is unlikely to be causing your issues, but you should make sure that you are using a supported version of Node.js, which is currently 18 or 20.

MikeMcC399 avatar Oct 02 '23 05:10 MikeMcC399

@Pratap22

Regarding your error in the title: "AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras"

You would need to give more information about which operating system you are running under.

You may find that updating to the latest Cypress version 13.3.0 may solve this issue, as some other gpu-related issues have been resolved by updating. It may also just be a warning which can be ignored after you have updated your Chrome browser.

MikeMcC399 avatar Oct 02 '23 05:10 MikeMcC399