Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class WebSwapCGLLayer is implemented in both... error #21615

Closed
tit opened this issue May 24, 2022 · 13 comments · Fixed by #22607
Closed

Class WebSwapCGLLayer is implemented in both... error #21615

tit opened this issue May 24, 2022 · 13 comments · Fixed by #22607
Assignees
Labels
OS: mac pkg/electron This is due to an issue in the packages/electron directory type: bug

Comments

@tit
Copy link

tit commented May 24, 2022

Current behavior

npx cypress run

objc[29971]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb503e3948) and /Users/tit/Library/Caches/Cypress/9.7.0/Cypress.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x111fa89c8). One of the two will be used. Which one is undefined.
node --version
# v18.1.0

npm --version
# 8.8.0

cypress --version
# Cypress package version: 9.7.0
# Cypress binary version: 9.7.0
# Electron version: 18.0.4
# Bundled Node version: 16.13.2

Chrome: Version 101.0.4951.64 (Official Build) (arm64)

Desired behavior

No warning :)

Test code to reproduce

Install last Cypress version
npx cypress run

Cypress Version

9.7.0

Other

No response

@cypress-bot cypress-bot bot added the stage: investigating Someone from Cypress is looking into this label May 24, 2022
@mschile
Copy link
Contributor

mschile commented May 24, 2022

I was able to reproduce the warning on Cypress 9.7.0. Downgrading to Cypress 9.6.1 did not reproduce the warning. I believe it's related to the electron upgrade and this issue electron/electron#33685

@mjhenkes
Copy link
Member

@tit, Is this warning causing any issues in cypress that you can see?

@mjhenkes mjhenkes added OS: mac pkg/electron This is due to an issue in the packages/electron directory labels May 25, 2022
@cypress-bot cypress-bot bot added stage: awaiting response Potential fix was proposed; awaiting response and removed stage: investigating Someone from Cypress is looking into this labels May 25, 2022
@tit
Copy link
Author

tit commented May 26, 2022

@mjhenkes, no, apart from this warning, I didn't notice any other problems. Moreover, the tests are run in the Chrome browser.

@CyrilKrylatov
Copy link

CyrilKrylatov commented Jun 15, 2022

Hello everyone,

I might have the same issue with a very new just freshly install of Cypress:

❯ yarn cy:gui
yarn run v1.22.5
$ node_modules/.bin/cypress open --config-file "assets/frontend/tests/cypress/cypress.config.js"
It looks like this is your first time using Cypress: 10.1.0

✔  Verified Cypress! /Users/cyrilkrylatov/Library/Caches/Cypress/10.1.0/Cypress.app

Opening Cypress...
objc[16715]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb41da6948) and /Users/cyrilkrylatov/Library/Caches/Cypress/10.1.0/Cypress.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10a69f9c8). One of the two will be used. Which one is undefined.

with :

❯ node --version
v18.3.0

❯ yarn --version
1.22.5

❯ ./node_modules/.bin/cypress --version
Cypress package version: 10.1.0
Cypress binary version: 10.1.0
Electron version: 18.0.4
Bundled Node version: 16.13.2

Please do tell me if I can provide you further informations.

Thank you for your time!

@splincode
Copy link

I have the same issue

@chynamyerz
Copy link

Experiencing the same issue as defined by @CyrilKrylatov, is there anyone who has figured out how to resolve the issue?

@darcyadams
Copy link

I started seeing this warning after upgrading from 8.x to 10.1. Have not found a solution.

@splincode
Copy link

fixed by 10.2

@sheecegardezi
Copy link

Hello,

I encountered same isssue will followign this tetorial https://medium.com/nerd-for-tech/setting-up-cypress-193166f85b33. Freshly install of Cypress version 10.2.0 on Mac:

npx cypress open

objc[XYZ]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (XYZ) and /Users/sasuperdev/Library/Caches/Cypress/10.2.0/Cypress.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (XYZ). One of the two will be used. Which one is undefined.

Please do tell me if I can provide you further informations.

Thank you for your time!

@id-dan
Copy link

id-dan commented Jun 28, 2022

I got the same issue on macOS with cypress v10.2
Screenshot 2022-06-28 at 08 54 00

@ZachJW34 ZachJW34 self-assigned this Jun 28, 2022
@liuyafei0228
Copy link

liuyafei0228 commented Jun 29, 2022

is that sort of solution ?

I had this problem

image

  • step 1

image

  • step 2

image

  • and I got the old version successfully

image

@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review stage: review and removed stage: in progress stage: needs review The PR code is done & tested, needs review labels Jun 29, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 30, 2022

The code for this is done in cypress-io/cypress#22607, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jul 19, 2022

Released in 10.3.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v10.3.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jul 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
OS: mac pkg/electron This is due to an issue in the packages/electron directory type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.