wsl2 无法使用terminalizer 渲染gif图片

作者: dreamfly 分类: linux 发布时间: 2021-12-28 19:17

wsl上使用terminizer需要通过xrdp远程登录使用,在使用的时候,可能会曝出下面的错误。

ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL comman

可以通过下面的方式进行解决

找到terminalizer的安装目录,然后添加app.disableHardwareAcceleration();

//- /home/barbossa/.nvm/versions/node/v10.13.0/lib/node_modules
//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);

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

评论已关闭!