Skip to content

Conversation

@BOT-Man-JL
Copy link

Description of Change

Updated behavior for app.getGpuInfo to always fetch latest GPU info.

Close electron/electron#49108

Checklist

  • This PR was not created with AI. (PRs created mainly with AI will be closed. They waste our team's time. We ban repeat offenders.)

Updated behavior for app.getGpuInfo to always fetch latest GPU info.
@BOT-Man-JL BOT-Man-JL requested a review from a team as a code owner November 29, 2025 10:38
@BOT-Man-JL BOT-Man-JL changed the title Document changes of app.getGpuInfo('complete') fix: Document changes of app.getGpuInfo('complete') Nov 29, 2025
Copy link
Member

@nikwen nikwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening the PR!

In my opinion, this is not a breaking change that we should list.

Whether or not the information is cached should be an implementation detail that shouldn't matter to the application that calls the function.

As it came up on the issue, it seems like the real bug that makes this problematic is the following:

The issue occurred when using app.getGpuInfo('complete') in periodic metrics reporting. After upgrading Electron from v28 to v37, some users experienced severe GPU process memory leaks and OOM crashes. The WPR traces pinpointed the cause to gpu::CollectDawnInfo and its internal Vulkan driver calls.

That's what we should actually fix.

EDIT: More information on the upstream bug here: electron/electron#49115

Copy link
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @nikwen above, let's track the crash not report the internal behavior as a change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unmentioned breaking change of app.getGpuInfo() from Electron 30.0

3 participants