Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Importing an Account from a JSON file causes MM to freeze and eventually crash #17274

Open
seaona opened this issue Jan 18, 2023 · 8 comments
Labels
INVALID-ISSUE-TEMPLATE Issue's body doesn't match any issue template. needs-research Sev2-normal Normal severity; minor loss of service or inconvenience. team-accounts type-bug

Comments

@seaona
Copy link
Contributor

seaona commented Jan 18, 2023

Describe the bug

Problem: when I am trying to import an account from a JSON file, MetaMask get's frozen and it eventually crashes.
Might be that the JSON file is not 100% correct, so we should handle these situations without causing MM to crash.

import-acct-from-json.mp4

Steps to reproduce

  1. On your computer, create a file and save it as test.json containing this:

{"version":3,"id":"812dc267-b20e-4df4-bb7b-f0c9bb413976","address":"67d30ef950015ab1a03e30ed5d5f2a26de196c4d","crypto":{"ciphertext":"4523eecd6ec040dabe718554b3a8fbd3075452963221d7bba1d406507b481bf5","cipherparams":{"iv":"657b767dfbb92ddce660e079d4408572"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"1fb3047dac934d1da0293f3c71ac201b49a5f777294b95cb1502616130f54bcd","n":262144,"r":8,"p":1},"mac":"84fca73cc93bccaffdbee739314af5ad3c2f8492bc82b8366dac86541e02b71a"}}

  1. Go to MM
  2. Click Import Account
  3. Select JSON File that you just created
  4. Insert password. For this case it's: 123
  5. Click Import -- see how MM freezes

Error messages or log output

No response

Version

10.24.0

Build type

None

Browser

Chrome
ADDED 09/13/2023: Firefox 117

Operating system

Linux
ADDED 09/13/2023: Mac w/Firefox

Hardware wallet

No response

Additional context

No response

@plasmacorral
Copy link
Contributor

Able to reproduce this on Mac M1 running Ventura 13.3.1 with production v10.30.4. On relaunch, imported account did appear.

Screen.Recording.2023-05-24.at.4.28.19.PM.mov

@plasmacorral plasmacorral added the Sev2-normal Normal severity; minor loss of service or inconvenience. label Jun 8, 2023
@danroc danroc self-assigned this Jun 8, 2023
@gantunesr
Copy link
Member

Possible fix is an UI/UX update to indicate the account is "loading"

@plasmacorral
Copy link
Contributor

This is confirmed to also impact Firefox 117 on Mac Ventura 13.5.2 in versions 10.34, 10.35.1 and 11.0.0 #20837

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Dec 12, 2023
Copy link
Contributor

This issue was closed because there has been no follow up activity in the last 45 days. If you feel this was closed in error, please reopen and provide evidence on the latest release of the extension. Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Apr 18, 2024
@gantunesr gantunesr reopened this Jul 17, 2024
@github-actions github-actions bot removed the stale issues and PRs marked as stale label Jul 17, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Jul 17, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Jul 17, 2024
@gantunesr gantunesr assigned plasmacorral and unassigned danroc Jul 19, 2024
@gantunesr
Copy link
Member

@plasmacorral to validate if the issue persists

@plasmacorral
Copy link
Contributor

plasmacorral commented Jul 19, 2024

Retested today with the same test.json file in Firefox 128.0.0 on Mac Sonoma 14.5 with version v11.16.5, issue persists. Firefox appears to not respond at all or ask for the password when I attempt to import. The account does not appear on the account list and no obvious console errors observed.

@AlexJupiter AlexJupiter changed the title [Bug]: Importing an Account from a JSON file causes MM to froze and eventually crash [Bug]: Importing an Account from a JSON file causes MM to freeze and eventually crash Jul 22, 2024
@metamaskbot metamaskbot added the INVALID-ISSUE-TEMPLATE Issue's body doesn't match any issue template. label Jul 22, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Oct 20, 2024
@danroc danroc removed the stale issues and PRs marked as stale label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INVALID-ISSUE-TEMPLATE Issue's body doesn't match any issue template. needs-research Sev2-normal Normal severity; minor loss of service or inconvenience. team-accounts type-bug
Projects
Status: To be fixed
Status: To be fixed
Development

No branches or pull requests

7 participants