电子修复程序“ ERROR:buffer_manager.cc(488)] [.DisplayCompositor] GL错误:GL_INVALID_OPERATION:glBufferData:<-来自先前GL命令的错误” [英] Electron fix "ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command"

查看:450
本文介绍了电子修复程序“ ERROR:buffer_manager.cc(488)] [.DisplayCompositor] GL错误:GL_INVALID_OPERATION:glBufferData:<-来自先前GL命令的错误”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近辞职了,删除了 knex sqlite 的电子应用程序,因为在此基础上进行重建非常麻烦当我为Windows sqlite 数据库创建可执行文件时,Windows似乎也不起作用。 Linux可执行文件在 sqlite 与Mac相同的情况下工作正常。

I recently stepped down my electron application removed knex and sqlite since it was painfully complicated to creating a rebuild on windows also when i made an executable for windows sqlite database didn't seem to work. Linux executable worked fine with sqlite guessing the same with mac.

要使用 sqlite 我已经使用 electron-rebuild 重建了应用程序。为了清除重建,我做了 rm -rf node_modules&& npm install

To use sqlite i had rebuilt the application using electron-rebuild. In order to clear the rebuild i did rm -rf node_modules && npm install

我最终决定使用 dexie 使用IndexDB。

I have eventually decided to use IndexDB using dexie.

但是现在,当我尝试从npm运行程序时,我会得到


ERROR:buffer_manager.cc(488)] [.DisplayCompositor] GL错误:GL_INVALID_OPERATION:glBufferData:<-先前GL命令的错误

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

我该如何解决,为什么会发生?

How do i fix this, why is it happening ?

NB:应用程序运行正常,但终端上的此错误令人讨厌而且我不知道为什么会这样

推荐答案

做一个测试,

电子/ path / to / the / app [您将得到该错误]

electron /path/to/the/app [You will get that Error]

尝试

electron --disable-gpu / path / to / the / app [您可能无法理解错误]

electron --disable-gpu /path/to/the/app [You mayn't get that Error]


解决方法是在命令行中添加 --disable-gpu以强制执行
Web视图不要使用GPU功能。通过在应用程序根目录中编辑package.json文件,并将
更改为 start: electron这样的行,我能够在
电子应用程序中完成此操作。到开始:电子。
--disable-gpu

The fix was to add "--disable-gpu" to the command-line to force the web view not to use gpu features. I was able to accomplish this in an electron app by editing the package.json file in app root and changing the line like "start": "electron ." to "start": "electron . --disable-gpu"

引用 https://github.com/electron/electron/issues/7834#issuecomment-275802528

这篇关于电子修复程序“ ERROR:buffer_manager.cc(488)] [.DisplayCompositor] GL错误:GL_INVALID_OPERATION:glBufferData:&lt;-来自先前GL命令的错误”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆