8

wsl2 无法使用terminalizer 渲染gif图片

 2 years ago
source link: https://www.80shihua.com/archives/2781
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

wsl2 无法使用terminalizer 渲染gif图片

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);

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK