MetaMask / MetaMask/metamask-extension

[Bug]: Extension 13.20.0 - Not able to send TRC20 token - Snap crashes

Open
#40,378 0 comments 0 reactions 0 assignees View on GitHub
needs-triage regression-RC-13.20.0 type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

Send TRC20 (USDT) on Tron crashes the Snap

### Expected behavior

Should be able to send USDT on TRON

### Screenshots/Recordings

### Steps to reproduce

1. Select TRON network
2. Send USDT
3. Select a value lesser than Max available
4. Click Continue

### Error messages or log output

```shell
sentry-install.js:1 "npm:@metamask/tron-wallet-snap" crashed due to an unhandled error: (Error#126)
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
error @ runtime-lavamoat.js:9311
error @ runtime-lavamoat.js:14887
(anonymous) @ common-6.js:1
handleRequest @ background-4.js:1
await in handleRequest
(anonymous) @ background-4.js:1
e @ common-4.js:1
call @ common-4.js:1
handleSnapRequest @ background-5.js:1
(anonymous) @ background-2.js:1
(anonymous) @ common-10.js:1
j @ common-4.js:1
S @ common-4.js:1
E.push @ common-4.js:1
_write @ common-4.js:1
S @ common-4.js:1
(anonymous) @ common-4.js:1
E.write @ common-4.js:1
f @ common-12.js:23
(anonymous) @ common-10.js:1
Y @ common-12.js:23
G @ common-12.js:23
(anonymous) @ common-12.js:23
(anonymous) @ common-10.js:1Understand this error
sentry-install.js:1 Error#126: npm:@metamask/tron-wallet-snap failed to respond to the request in time.
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
logError @ runtime-lavamoat.js:9263
logSubErrors @ runtime-lavamoat.js:9204
error @ runtime-lavamoat.js:9314
error @ runtime-lavamoat.js:14887
(anonymous) @ common-6.js:1
handleRequest @ background-4.js:1
await in handleRequest
(anonymous) @ background-4.js:1
e @ common-4.js:1
call @ common-4.js:1
handleSnapRequest @ background-5.js:1
(anonymous) @ background-2.js:1
(anonymous) @ common-10.js:1
j @ common-4.js:1
S @ common-4.js:1
E.push @ common-4.js:1
_write @ common-4.js:1
S @ common-4.js:1
(anonymous) @ common-4.js:1
E.write @ common-4.js:1
f @ common-12.js:23
(anonymous) @ common-10.js:1
Y @ common-12.js:23
G @ common-12.js:23
(anonymous) @ common-12.js:23
(anonymous) @ common-10.js:1Understand this error
sentry-install.js:1 at te.handleRequest (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-4.js:1:16909)
at async en.handleSnapRequest (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-5.js:1:56776)
at async s. (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-2.js:1:58247)

(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
logError @ runtime-lavamoat.js:9285
logSubErrors @ runtime-lavamoat.js:9204
error @ runtime-lavamoat.js:9314
error @ runtime-lavamoat.js:14887
(anonymous) @ common-6.js:1
handleRequest @ background-4.js:1
await in handleRequest
(anonymous) @ background-4.js:1
e @ common-4.js:1
call @ common-4.js:1
handleSnapRequest @ background-5.js:1
(anonymous) @ background-2.js:1
(anonymous) @ common-10.js:1
j @ common-4.js:1
S @ common-4.js:1
E.push @ common-4.js:1
_write @ common-4.js:1
S @ common-4.js:1
(anonymous) @ common-4.js:1
E.write @ common-4.js:1
f @ common-12.js:23
(anonymous) @ common-10.js:1
Y @ common-12.js:23
G @ common-12.js:23
(anonymous) @ common-12.js:23
(anonymous) @ common-10.js:1Understand this error
sentry-install.js:1 An error occurred while executing an event for Snap "npm:@metamask/tron-wallet-snap": (Error#127)
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
error @ runtime-lavamoat.js:9311
error @ runtime-lavamoat.js:14887
(anonymous) @ common-6.js:1
(anonymous) @ background-3.js:1
Promise.catch
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25
setTimeout
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
resume @ background-4.js:1
start @ background-4.js:1
A @ background-3.js:1
j @ background-3.js:1
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25Understand this error
sentry-install.js:1 Error#127: npm:@metamask/tron-wallet-snap was stopped and the request was cancelled. This is likely because the Snap crashed.
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
logError @ runtime-lavamoat.js:9263
logSubErrors @ runtime-lavamoat.js:9204
error @ runtime-lavamoat.js:9314
error @ runtime-lavamoat.js:14887
(anonymous) @ common-6.js:1
(anonymous) @ background-3.js:1
Promise.catch
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25
setTimeout
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
resume @ background-4.js:1
start @ background-4.js:1
A @ background-3.js:1
j @ background-3.js:1
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25Understand this error
sentry-install.js:1 at te.handleRequest (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-4.js:1:16909)

(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
logError @ runtime-lavamoat.js:9285
logSubErrors @ runtime-lavamoat.js:9204
error @ runtime-lavamoat.js:9314
error @ runtime-lavamoat.js:14887
(anonymous) @ common-6.js:1
(anonymous) @ background-3.js:1
Promise.catch
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25
setTimeout
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
resume @ background-4.js:1
start @ background-4.js:1
A @ background-3.js:1
j @ background-3.js:1
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25Understand this error
sentry-install.js:1 An error occurred while executing an event for Snap "npm:@metamask/tron-wallet-snap": (Error#128)
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
error @ runtime-lavamoat.js:9311
error @ runtime-lavamoat.js:14887
(anonymous) @ common-6.js:1
(anonymous) @ background-3.js:1
Promise.catch
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25
setTimeout
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
resume @ background-4.js:1
start @ background-4.js:1
A @ background-3.js:1
j @ background-3.js:1
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25
setTimeout
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
resume @ background-4.js:1
start @ background-4.js:1
A @ background-3.js:1
j @ background-3.js:1
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25Understand this error
sentry-install.js:1 Error#128: npm:@metamask/tron-wallet-snap was stopped and the request was cancelled. This is likely because the Snap crashed.
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
logError @ runtime-lavamoat.js:9263
logSubErrors @ runtime-lavamoat.js:9204
error @ runtime-lavamoat.js:9314
error @ runtime-lavamoat.js:14887
(anonymous) @ common-6.js:1
(anonymous) @ background-3.js:1
Promise.catch
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25
setTimeout
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
resume @ background-4.js:1
start @ background-4.js:1
A @ background-3.js:1
j @ background-3.js:1
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25
setTimeout
(anonymous) @ sentry-install.js:1
(anonymous) @ sentry-install.js:25
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
(anonymous) @ runtime-lavamoat.js:14887
resume @ background-4.js:1
start @ background-4.js:1
A @ background-3.js:1
j @ background-3.js:1
O @ background-3.js:1
(anonymous) @ background-3.js:1
onFinish @ background-4.js:1
(anonymous) @ background-4.js:1
(anonymous) @ sentry-install.js:1
o @ sentry-install.js:25Understand this error
sentry-install.js:1 at te.handleRequest (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-4.js:1:16909)
```

### Where was this bug found?

Internal release testing

### Version

13.20.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

Research direction

Reproduce the failure by selecting TRON, sending USDT for less than the maximum available amount, and clicking Continue. Start by examining the npm:@metamask/tron-wallet-snap timeout and crash reported in the logs; done means the USDT transfer proceeds without the Snap crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.