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 during render #79

Closed
cjayross opened this issue Dec 9, 2019 · 13 comments
Closed

OpenGL error during render #79

cjayross opened this issue Dec 9, 2019 · 13 comments

Comments

@cjayross
Copy link

cjayross commented Dec 9, 2019

When doing the command:

terminalizer render example.yml

I receive this error:

Error: 
  Error: [31871:1208/233517.072099:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command


Hint:
  Use the --help option to get help about the usage

Here is my OS info:

Linux 4.19.85-1-MANJARO x86_64 GNU/Linux

I'm also running an AMD card with mesa 19.2.6-0.1

@wangfpp
Copy link

wangfpp commented Dec 11, 2019

@cjayross resolve this?

@cjayross
Copy link
Author

I don't quite understand what I'm looking at here. Though, it seems it might actually be a result of my compositor? I have no idea.

@barbossa
Copy link

I have the same problem. Does someone know how to fix this?

@barbossa
Copy link

barbossa commented Dec 15, 2019

I've found a quick temporary solution.

  1. You need find the folder where terminalizer have been installed. In my case it was - /home/barbossa/.nvm/versions/node/v10.13.0/lib/node_modules
  2. Open terminalizer/render/index.js and before this line app.on('ready', createWindow); you need add new line: app.disableHardwareAcceleration();

After this edits, your file will be look like this:

// Hide the Dock for macOS
if (os.platform() == 'darwin') {
  app.dock.hide();
}

app.disableHardwareAcceleration(); // <-- new code line

// When the app is ready
app.on('ready', createWindow);

This option disabled GPU areacceleration, more info here https://electronjs.org/docs/api/app#appdisablehardwareacceleration.

But I think we should find more elegant solution

@lukehinds
Copy link

Thanks, this solved the error not happening. Now however render just hangs and does not do anything.

Seems like a lot of issues trying just trying to get this to work.

@faressoft
Copy link
Owner

The tool requires a GUI os

@cjayross
Copy link
Author

cjayross commented Jan 3, 2020

@faressoft What do you mean a GUI OS? That's not a thing. I was having this issue using Manjaro which uses Xorg.

@ljesparis
Copy link

should be an option to desable hardware acceleration, don't you think? =)

@piotros
Copy link

piotros commented Apr 15, 2020

Thanks @barbossa for this workaround. Works for me on Linux Ubuntu 👍

@miraclx
Copy link
Contributor

miraclx commented May 4, 2020

The underlying issue is described here
#102

And fixed on PR #97

@reflexdemon
Copy link

I've found a quick temporary solution.

1. You need find the folder where terminalizer have been installed. In my case it was - `/home/barbossa/.nvm/versions/node/v10.13.0/lib/node_modules`

2. Open `terminalizer/render/index.js` and before this line `app.on('ready', createWindow);` you need add new line: `app.disableHardwareAcceleration();`

After this edits, your file will be look like this:

// Hide the Dock for macOS
if (os.platform() == 'darwin') {
  app.dock.hide();
}

app.disableHardwareAcceleration(); // <-- new code line

// When the app is ready
app.on('ready', createWindow);

This option disabled GPU areacceleration, more info here https://electronjs.org/docs/api/app#appdisablehardwareacceleration.

But I think we should find more elegant solution

Every time when I was switching my node environment using nvm had to do this again and again. I wrote a 1 liner and paste it on my terminal whenever I get this error. Just thought of putting it here as this is where google search puts us when we encounter this issue.

RENDER_FILE="$(which terminalizer | sed 's|/[^/]*$||')/../lib/node_modules/terminalizer/render/index.js"; grep -c disableHardwareAcceleration $RENDER_FILE || sed -i '32i app.disableHardwareAcceleration(); // <-- new code line' $RENDER_FILE

@Waxxx333
Copy link

@barbossa's fix worked on this issue for me, but now it's saying The display compositor is frequently crashing. Goodbye..

@faressoft
Copy link
Owner

The issue appears to have been resolved and released in the new version v0.10.0 by #97. If you believe that there is still something missing or unresolved, please feel free to reopen it.

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

10 participants