MetaMask / MetaMask/metamask-extension

[Bug]: Send flow QR Code reader is no longer working

Open
#22,048 4 comments 0 reactions 0 assignees View on GitHub
ready-for-dev regression-prod-11.5.1 Sev3-low 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

The QR Code reader in the send flow is no longer working

### Expected behavior

The camera is shown and the user can successfully scan an address QR code

### Screenshots/Recordings

QR code

### Steps to reproduce

1. Open the extension
2. Click on the `Send` button on the overview page
3. Click the `QR code icon` to the right of the address input
4. Click the `Allow` button when the browser prompts you for Camera access

### Error messages or log output

```shell
sentry-install.js:1 TypeError#1: this.codeReader.stop is not a function
e. @ sentry-install.js:1
(anonymous) @ sentry-install.js:1
logError @ runtime-lavamoat.js:6791
logSubErrors @ runtime-lavamoat.js:6734
error @ runtime-lavamoat.js:6832
(anonymous) @ runtime-lavamoat.js:7118

```

```
at _.teardownCodeReader (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-5.js:1:200871)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-5.js:1:200240
at onClick (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:386138)
at e. (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sentry-install.js:1:693)
at Object.m (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:1548)
at e. (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sentry-install.js:1:693)
at k (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:1691)
at e. (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sentry-install.js:1:693)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:1837
at _ (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:1923)
at P (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:2372)
at S (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:2184)
at C (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:2532)
at En (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:29575)
at le (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:115262)
at Cn (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:30190)
at Mn (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:31147)
at Rn (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:30435)
at n.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:491157)
at Qo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46225)
at ue (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:115029)
at jn (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:29858)
```

### Version

11.5.1

### 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

Research direction

Reproduce the issue in the Send flow on Chrome and inspect the teardownCodeReader entry point identified in the stack trace. Confirm that granting camera access opens the camera, scans an address QR code successfully, and no longer reports the codeReader.stop error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.