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

Storage sometimes not working correctly #4287

Closed
danfinlay opened this issue May 17, 2018 · 8 comments
Closed

Storage sometimes not working correctly #4287

danfinlay opened this issue May 17, 2018 · 8 comments
Labels
area-background Issues relating to the extension background process. area-storage type-bug

Comments

@danfinlay
Copy link
Contributor

We've had a variety of user reports that resemble our storage strategy intermittently failing:

  • New accounts suddenly not existing
  • New transactions disappearing from the list
  • New nicknames reverting to an old state.

We should investigate how storage failures are handled, make them less likely, and maybe fail more gracefully.

@danfinlay danfinlay added type-bug P1-asap area-background Issues relating to the extension background process. labels May 17, 2018
@danfinlay
Copy link
Contributor Author

This could be related to a stream break we saw in the past. If so, this could be reproduced by removing the debouncer from our background.js disk writing stream.

@danfinlay
Copy link
Contributor Author

Aaron has seen the first two bullet points happen live, with the app open, which suggests it may not be a storage bug at all, since we only read from storage when starting up the application.

@danfinlay
Copy link
Contributor Author

Could this be related to #4145?

@MM263
Copy link

MM263 commented May 22, 2018

Hi, I've discovered a behaviour that might be related to this, but might as well be it's own issue.
We were creating a sign-in page, which utilizes Metamask for logging in. That means that we were creating a very large amount of accounts daily (30-100) for testing purposes and after that we were deleting them.

We have discovered that after deleting an account it can be saved by Metamask and instead of generating new wallet when creating a new account Metamask uses an old wallet, that has been removed. Reinstalling Metamask extension removes this behavior, old wallets do not appear when creating a new account after reinstall.

Yesterday I've encountered a bug where 6 accounts just disappeared and after that when I was creating new accounts they had the same wallet addresses.

@frankiebee frankiebee removed their assignment May 23, 2018
@bdresser
Copy link
Contributor

bdresser commented Jun 7, 2018

@danfinlay several user reports of adding tokens then having them disappear, and having transaction history disappear as well. are these handled by the same storage mechanism, or handled separately?

@danfinlay
Copy link
Contributor Author

@bdresser Yes, this is almost definitely a storage failure of some kind.

@danfinlay
Copy link
Contributor Author

Reproduction steps:

  • Add log to our disk writing logic.
  • Remove the debounce from the storage stream in background.js, and go about using the application.
  • Extension seems to silently fail writing to disk.

@kumavis
Copy link
Member

kumavis commented Jun 14, 2018

Fixed by #4570

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-background Issues relating to the extension background process. area-storage type-bug
Projects
None yet
Development

No branches or pull requests

5 participants