MetaMask / MetaMask/metamask-extension

[Bug]: Absurd Periodic IndexedDB Activity

Open
#33,161 6 comments 1 reaction 0 assignees View on GitHub
external-contributor regression-prod-12.17.3 Sev2-normal team-core-platform type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

When the extension is enabled and doing nothing, there is an absurd amount of burst IndexedDB activity causing high CPU.

When disabled, my idle Firefox energy impact is reduced over 100x.

### Expected behavior

_No response_

### Screenshots/Recordings

_No response_

### Steps to reproduce

1. Launch FF
2. Enable MM extension
3. Observe `Activity Monitor.app` and `Firefox: Task Manager`

### Error messages or log output

```shell

```

### Detection stage

In production (default)

### Version

12.17.3

### Build type

None

### Browser

Firefox

### Operating system

MacOS

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file or test is identified in the report. Reproduce on macOS with MetaMask 12.17.3 in Firefox, using Activity Monitor and Firefox Task Manager while the extension is idle; done means identifying the source of the periodic IndexedDB activity and verifying that idle CPU usage is substantially reduced.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.