MetaMask / MetaMask/metamask-extension

[Bug]: Platform - `ExtensionPortStream postMessage failed` `Could not serialize message.`

Open
#40,675 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

regression-RC-13.22.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

Minting a huge number of NFTs throws errors ExtensionPortStream postMessage failed Could not serialize message. , then I cannot Confirm or Reject that tx (maybe wallet is frozen bc of performance? or bc of that error? unsure)

Expected behavior

No response

Screenshots/Recordings
Image

https://github.com/user-attachments/assets/67271677-7ab2-49e8-beec-16fa96688fc6

Steps to reproduce
  1. Go to the test dapp
  2. Deploy an ERC7212 contract
  3. Mint 500 tokens
  4. Confirm
  5. Mint again 500 tokens
  6. See error port stream
  7. Click Confirm Cancel --> nothing happens
Error messages or log output

Where was this bug found?

Internal release testing

Version

13.22.0 (but may be in prod too--checking)

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 with the test dapp and reproduce the issue by deploying an ERC7212 contract, minting 500 tokens twice, and confirming the transaction in Chrome on macOS. Trace the ExtensionPortStream serialization failure and determine why Confirm or Cancel stops responding. Done means the reported error no longer blocks the transaction flow under this reproduction.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.