MetaMask / MetaMask/metamask-extension

[Bug]: QR code scanner flow is no longer working

Open
#29,241 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

regression-prod-12.7.0 Sev2-normal team-extension-platform type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

QR code reader from send flow is no longer working starting with V12.7.1 (working in versions prior to this) - up until 12.10.0.

In v12.7.1, the scanner asks permission for camera usage, but there is a prompt (visible in the recording) that pops up before we even get a chance to allow camera permission. Then, if you press "try again", it gives infinite loading. Upon exiting the prompt, you click back on the QR code scanner and try to scan the QR code, it is not picking it up. Then, trying to scan another QR code (secondary MM account) right after that, displays error mentioned in repro steps.

### Expected behavior

QR code is successfully scanned and address field populated.

### Screenshots/Recordings

Recording:
https://github.com/user-attachments/assets/0e1885e8-9fd4-486a-bbae-f6553821b84a

![Image](https://github.com/user-attachments/assets/5927a1b4-8aa9-4698-9ebb-353faa66cd80)

### Steps to reproduce

1. Load MetaMask
2. Go to the send flow
3. Attempt to scan QR code after allowing camera permission
4. Notice the QR code is not identified, and nothing happens.
5. Close the prompt, and re-open the scanner
6. Scan another QR code (secondary account in MM mobile)
7. Notice error: **We couldn't identify that QR code**

### Error messages or log output

```shell

```

### Detection stage

In production (default)

### Version

12.7.1, 12.8.0, 12.9.0, 12.10.0

### Build type

None

### Browser

Chrome

### Operating system

MacOS

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the send-flow QR scanner failure in Chrome on macOS using the listed MetaMask versions, following the provided recording and reproduction steps. Trace the scanner flow after camera permission and after reopening it; done means a QR code is recognized and the address field is populated without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
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.