Metamask-extension: Errors on localStorage write crash MetaMask

Created on 23 Mar 2018  路  15Comments  路  Source: MetaMask/metamask-extension

  • When I click MetaMask I expect to be prompted for a password.
  • Right now when I click MetaMask its a blank window
  • Chrome Latest Updates
  • Windows 10 Latest Updates

image

T00-bug

Most helpful comment

@hanoncs I've found the root of your bug. Before I explain that (so we can fix it), here is your workaround: If you have your seed phrase backed up, just uninstall & reinstall for now. If you don't have your seed phrase backed up, let us know and we'll explain how to get it before you uninstall.

Hanocs' bug is that while we've moved to the new storage.local API, we still initially write to localStorage on app boot, and we don't catch its errors, so when there is a storage overflow error, it crashes start-up.

We could fix this either by:

  • Adding proper error handling around our localStorage usage.
  • Removing our localStorage usage entirely, since the new method seems to be working for our users just fine.

All 15 comments

The error shows that the web page has lost connection to MetaMask, doesn't help to determine why the extension is not working. Please provide error messages from the extension and the background process. Here's a guide: https://metamask.helpscoutdocs.com/article/21-how-to-get-logs-and-help-metamask-support-and-diagnose-your-issue

Ok. Background Page:
metamask_error2_background_page
Popup Log:
metamask_error3 popup log

MetaMask version?

I installed it for the first time just a few days ago. It worked last night when I went to bed.
metamaskversion

In that background log, could you click the top "url link", and then screen shot the code it shows?

I'm talking about this part:
code link

No problem.
metamask_error4_background_pagelink

@hanoncs I've found the root of your bug. Before I explain that (so we can fix it), here is your workaround: If you have your seed phrase backed up, just uninstall & reinstall for now. If you don't have your seed phrase backed up, let us know and we'll explain how to get it before you uninstall.

Hanocs' bug is that while we've moved to the new storage.local API, we still initially write to localStorage on app boot, and we don't catch its errors, so when there is a storage overflow error, it crashes start-up.

We could fix this either by:

  • Adding proper error handling around our localStorage usage.
  • Removing our localStorage usage entirely, since the new method seems to be working for our users just fine.

@danfinlay I removed and reinstalled. Back working now. That was scary. Thanks.

same issue...do not have my private key handy...

Hm, im kinda scared of uninstalling even though i have most of my private keys backed up.
How long do these fixes usually take?

@danfinlay i have the same problem and i don't have my seed phrase backed up help me please!

@lazaridiscom clearing cache doesn't WORK! please don't recommend it

So, what should I do?

We are currently writing a hot-fix. Sorry for not responding over the weekend.

If you have a MetaMask with this problem, you can just leave it alone for a day or two, and the hotfix should fix this.

If you need to rush, if you have your seed phrase, you can uninstall & reinstall.

If you need to rush and don't have your seed phrase, you need to figure out how to get your vault data out of the extension's storage.local storage area. We don't have a guide on this yet.

When the browser reaches the maximum limit of local storage it will show those errors
Empty cache and hard reload it
Right clicking in refresh button when the browser is in inspect mode And Empty cache and hard reload it

this solves the problem for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danfinlay picture danfinlay  路  3Comments

BMillman19 picture BMillman19  路  3Comments

aecc picture aecc  路  3Comments

dpazdan picture dpazdan  路  3Comments

rossbulat picture rossbulat  路  3Comments