We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f462e61 commit 91b34d0Copy full SHA for 91b34d0
1 file changed
src/main/integrations/gpu-context.ts
@@ -55,8 +55,14 @@ export const gpuContextIntegration = defineIntegration((options: Options = { inf
55
name: 'GpuContext',
56
processEvent: async (event): Promise<Event> => {
57
if (gpuContexts === undefined) {
58
- const result = (await app.getGPUInfo(options.infoLevel)) as GpuInfoResult;
59
- gpuContexts = result.gpuDevice.map(gpuDeviceToGpuContext);
+ try {
+ const result = (await app.getGPUInfo(options.infoLevel)) as GpuInfoResult;
60
+ gpuContexts = result.gpuDevice.map(gpuDeviceToGpuContext);
61
+ } catch {
62
+ // getGPUInfo can throw on Linux when hardware acceleration is disabled (Electron v40+)
63
+ // In this case, we just don't add GPU context to events
64
+ gpuContexts = [];
65
+ }
66
}
67
68
if (gpuContexts.length === 1) {
0 commit comments