electron andmin 权限独显闪退
github 暂无解决,只能关闭GPU。或者停止使用管理员权限。
·
github 暂无解决,只能关闭GPU。或者停止使用管理员权限
app.commandLine.appendSwitch('no-sandbox');
app.commandLine.appendSwitch('disable-gpu');
app.commandLine.appendSwitch('disable-software-rasterizer');
app.commandLine.appendSwitch('disable-gpu-compositing');
app.commandLine.appendSwitch('disable-gpu-rasterization');
app.commandLine.appendSwitch('disable-gpu-sandbox');
app.commandLine.appendSwitch('--no-sandbox');
app.disableHardwareAcceleration();
https://github.com/electron/electron/issues/32074
独显使用管理员权限时electron拿不到显卡信息
app
.getGPUInfo('complete')
.then(info => {
Logger.info('gpuInfo')
{
auxAttributes:
{
amdSwitchable: false,
canSupportThreadedTextureMailbox: false,
dx12FeatureLevel: "Not supported",
glImplementationParts: "(gl=none,angle=none)",
glResetNotificationStrategy: 0,
inProcessGpu: true,
initializationTime: 0,
isAsan: false,
isClangCoverage: false,
jpegDecodeAcceleratorSupported: false,
optimus: false,
overlayInfo:
{
bgra8OverlaySupport: "NONE",
directComposition: false,
nv12OverlaySupport: "NONE",
rgb10a2OverlaySupport: "NONE",
supportsOverlays: false,
yuy2OverlaySupport: "NONE",
},
passthroughCmdDecoder: false,
sandboxed: false,
subpixelFontRendering: true,
supportsD3dSharedImages: false,
supportsDx12: false,
supportsVulkan: false,
targetCpuBits: 64,
visibilityCallbackCallCount: 0,
vulkanVersion: "Not supported",
},
gpuDevice:
[
{
active: false,
cudaComputeCapabilityMajor: 0,
deviceId: 0,
gpuPreference: 0,
revision: 0,
subSysId: 0,
vendorId: 0,
},
],
}
昇腾计算产业是基于昇腾系列(HUAWEI Ascend)处理器和基础软件构建的全栈 AI计算基础设施、行业应用及服务,https://devpress.csdn.net/organization/setting/general/146749包括昇腾系列处理器、系列硬件、CANN、AI计算框架、应用使能、开发工具链、管理运维工具、行业应用及服务等全产业链
更多推荐

所有评论(0)