question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron (desktop) error: GL_INVALID_FRAMEBUFFER_OPERATION ?

See original GitHub issue

Hello,

after updating from IndigoEngine 0.7.1 to 0.9.2 and along with it from Scala 2.13.1 to Scala 3.1.0, ScalaJS 1.7.1. I get the following errors:

indigo-runner@1.0.0 start target/indigoRun
> electron .

[21781:1105/121117.365903:ERROR:gles2_cmd_decoder.cc(4968)] [.RendererMainThread-0x7f95c5810000]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawArrays: framebuffer incomplete
oder.cc(4968)] [.RendererMainThread-0x7f95c5810000]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawArrays: framebuffer incomplete
[21781:1105/121117.625685:ERROR:gles2_cmd_decoder.cc(4968)] [.RendererMainThread-0x7f95c5810000]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawArrays: framebuffer incomplete
(... more of the same with every frame)

In the electron window everything seems rendered fine though. Not sure if this is a concern, but I haven’t seen this before.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
laurensdvcommented, Nov 16, 2021

Hello,

I confirm indeed this resolves the issue.

0reactions
davesmith00000commented, Nov 15, 2021

Ah ha! It’s your electron version (which will be using an older Chrome version).

To replicate the problem:

  1. I ran fastOptJS then indigoRun as normal (or runGame if you’ve got the aliases set up), which ran the game on my machine with no errors.
  2. Then I navigated to the target/indigoRun directory containing package.json.
  3. yarn add electron (can also use npm) to add a local version of electron
  4. I edited the package.json file to have the same electron version as you("electron": "^10.1.1").
  5. yarn install which installs the specified version of electron.
  6. yarn start which runs the game - everything appears fine, but the terminal is flooded with:
[45439:1115/210530.270483:ERROR:gles2_cmd_decoder.cc(4968)] [.RendererMainThread-0x7f9cb200da00]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete

So the fix is to upgrade electron, npm update -g electron I imagine. I did also test it with the latest electron, and that seemed to work just fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GL_INVALID_FRAMEBUFFER_...
GL_INVALID_FRAMEBUFFER_OPERATION: Framebuffer is not complete or incompatible with command · I have few questions: 1. · extension is jpg and size ...
Read more >
[webgl] invalid framebuffer operation · Issue #807 · Kode/Kha
It maybe non-power-of-2 and have incompatible texture filtering. Graphics.hx:137: WebGL error: Invalid framebuffer operation [.Offscreen-For- ...
Read more >
OpenGL Error: 1286 (Invalid framebuffer operation)
From Googling around, it appears this error should be somewhat ancient history... I just updated to Forge 1.7.10 10.13.2.1291 (from ...
Read more >
invalid framebuffer operation - Graphics and GPU Programming
I've never seen this problem before. The following is my OpenGL initialization code: GLenum err = glewInit(); glClearColor(0.8, 0.8, 0.8 1.0);
Read more >
GL ERROR ; 1286: Invalid framebuffer operation - Support
Whenever I try and play minecraft, I get an unresponsive black screen that just hangs until I interact with it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found