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

OpenGL error in electron 2.0.0 #25

Closed
itshaadi opened this issue May 3, 2018 · 9 comments
Closed

OpenGL error in electron 2.0.0 #25

itshaadi opened this issue May 3, 2018 · 9 comments

Comments

@itshaadi
Copy link
Contributor

itshaadi commented May 3, 2018

electron 2.0.0 was released yesterday and I tried it with mpv.js. everything looks fine but I get this Error message in my console. it doesn't seems to be affecting the player functionality but nevertheless it's an error.

os: windows 10_x64 build 16299
electron: 2.0.0

[11664:0503/170106.364:ERROR:texture_manager.cc(2437)] [.PPAPIContext]GL ERROR :GL_INVALID_VALUE : glTexImage2D: invalid internal_format GL_RGBA16_EXT
[opengl-cb] after creating texture: OpenGL error INVALID_VALUE.
[opengl-cb] Error: framebuffer completeness check failed (error=36054).
[opengl-cb] Error: texture could not be created.
@xaiki
Copy link

xaiki commented Jun 6, 2018

getting the same error, but can't make mpv.js do anything on electron 2.0.2, the example doesn't work if updated.

@Kagami
Copy link
Owner

Kagami commented Jul 21, 2018

Can reproduce it. Probably Chrome broken something in PPAPI implementation.

@Kagami
Copy link
Owner

Kagami commented Jul 21, 2018

Though plugins seems to be working normally in latest Chromium.
Might be something electron-related.

@Kagami
Copy link
Owner

Kagami commented Jul 21, 2018

Tested a bit more.

  • Works fine with electron 1.x
  • Shows error for electron 2.0.x
  • Works fine with electron 3.0.0-beta.x

Seems to be either regression in Electron or Chrome 61. Does anyone know for how long electron 2.x is going to be supported? I.e. is it worth the efforts.

@Kagami
Copy link
Owner

Kagami commented Jul 21, 2018

Might be related electron/electron#12937

@Kagami
Copy link
Owner

Kagami commented Jul 21, 2018

Tested Chrome 61÷66, issue seems to be fixed somewhere between 64 and 65.

@Kagami
Copy link
Owner

Kagami commented Jul 21, 2018

@Kagami
Copy link
Owner

Kagami commented Jul 22, 2018

Closing because it was fixed in latest electron/Chrome (3+/65+) and doesn't affect functionality.
As far as I can understand it happens because Chrome reports support for 16bit textures, mpv tries to create 16bit FBO and that fails, so it fallbacks to usual dumb mode.

There is one more issue which I thought was related to this one, but it seems to be happen only on Linux: electron/electron#13624

@itshaadi
Copy link
Contributor Author

on 2.0.x ARM releases for raspberry pi you can fix this issue by enabling hardware graphics acceleration.

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