Skip to content

Electron v40 app.getGPUInfo() throws error on Linux #1301

@xmedeko

Description

@xmedeko

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Electron SDK Version

7.6.0

Electron Version

40.0.0

What platform are you using?

Linux

Link to Sentry event

No response

Steps to Reproduce

Have an app on Linux (Ubuntu), set app.disableHardwareAcceleration() and use Sentry.

Expected Result

Sentry initialization should not crash the app.

Actual Result

The app crashes with:

Error: GPU access not allowed. Reason: GPU access is disabled in chrome://settings

thrown by app.getGPUInfo used in in the Sentry gpuContextIntegration function.

See Electron issue electron/electron#49530 (Which is closed as won't fix, so the Sentry code should be fixed.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions