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

"failed to initialize mpv GL context" since chromium 89 (electron 13.0.0 or nw 0.52.0) #101

Open
nonesand opened this issue Jul 12, 2022 · 4 comments

Comments

@nonesand
Copy link

nonesand commented Jul 12, 2022

There have some windows 11 computers cannot load mpv.js since chromium 89 (electron 13.0.0 or nw 0.52.0), the error message is :

[libmpv_render] glGetString(GL_VERSION) returned NULL.
[libmpv_render] OpenGL not initialized. 
[cplayer] failed to initialize mpv GL context

I tried the newest mpv-1.dll library, and recompiled mpv.node, but I got the same error.
I also tried mpv-2.dll, and got the following error:

[12948:0712/085649.515:ERROR:ppapi_thread.cc(271)] Failed to load Pepper module from mpvjs.node (error: 126)
@nonesand
Copy link
Author

nonesand commented Jul 12, 2022

I tried every chromium-args that related to gpu, and finally I find one can solve this problem, --use-gpu-in-tests

@qsniyg
Copy link
Contributor

qsniyg commented Jan 13, 2023

How did you get electron 13 to work? Electron 12+ for me just returns "Couldn't load plugin."

@drakonkat
Copy link

I get the same error @nonesand how did you passed "--use-gpu-in-tests"? Actually i cannot start it at all

@qsniyg
Copy link
Contributor

qsniyg commented Jan 24, 2023

@drakonkat app.commandLine.appendSwitch("use-gpu-in-tests");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants