error code:
error:angle_platform_impl.cc[44] renderegl_utils.cpp:188 (ClearErrors): Preexisring GL error
0x00000500 as of ../../third_party/angle/src/libangle/renderer/gl/textureGl.cpp, setImageHelper
:256. error:gpu_memory_buffer_support_x11.cc(44) dri3 extension not supported.
Abnormal behavior:
Electron's hardware acceleration function, on win7 or Linux system, is prone to black screen or freeze.
Solution:
app.disableHardwareAcceleration ()
Disables hardware acceleration for the current application.
This method can only be called before the application is ready.
If you are using the electron-egg framework
So, add pseudocode to the ready() method of the main.js file:
const isWin7 = os.release ().startsWith ('6.1');
const isLinux = true;
if (isWin7 || isLinux)
{
app.disableHardwareAcceleration ();
}