mpv.js icon indicating copy to clipboard operation
mpv.js copied to clipboard

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

Open nonesand opened this issue 2 years ago • 4 comments

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 avatar Jul 12 '22 04:07 nonesand

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

nonesand avatar Jul 12 '22 07:07 nonesand

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

qsniyg avatar Jan 13 '23 19:01 qsniyg

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

drakonkat avatar Jan 24 '23 11:01 drakonkat

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

qsniyg avatar Jan 24 '23 17:01 qsniyg