electron: [Bug]: Warning: Class WebSwapCGLLayer is implemented in both system library and electron distribution
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
18.0.0
What operating system are you using?
macOS
Operating System Version
12.3.1
What arch are you using?
x64
Last Known Working Electron version
17.3.1
Expected Behavior
Starting electron using the npm script "app": "electron ."
starts the app with no warnings.
Actual Behavior
Electron starts normally, but with the following warning:
Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffa5a006318) and /{path/to/app}/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10f8a89c8). One of the two will be used. Which one is undefined.
({path/to/app}
has been substituted for the actual path to the app on my system.)
Testcase Gist URL
No response
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 27
- Comments: 32 (8 by maintainers)
I have the same problem
@miniak When fix will be available as built in electron package?
@codebytere LOL, we’ll just need to change it to yet another name here to avoid the conflict then.
Hi! electron@20.0.1 the same problem
need to add tag 20.x.y
Commenting is a way to bring attention. Sorry if this is not allowed, will subscribe now.
it can be fixed by applying this patch in third_party/angle
I think no~ because, i still console that with using the latest version, just now now now
@miniak any news? Issue is blocking update on current supported version. 17 is last working version, but not supported by electron team.
Does this warning cause any actual problems? I’m on a Mac and get this in my console, but it still seems to work fine. The warning says “which one is undefined” which seems to imply it could be using the wrong one, but so far the Electron app runs OK for me.