Skip to content

[Bug]: Wallet details crash after being backgrounded #17522

@owencraston

Description

@owencraston

Describe the bug

Testing RC 7.52.0 (2149) multi-chain accounts state 1, the wallet details screen seems to crash if you background the app/let your phone auto lock and then try and re open the app. This crash seems to only occur if you originally navigate to the wallet details screen from an account details page. I was unable to reproduce this crash when navigating from the account list. This may have something to due with the time being backgrounded surpassing the lock timer in Metamask/settings.

The error that is thrown is Cannot read property 'accounts' of undefined

Expected behavior

The phone should re open, ask for authentication (if lock time has passed) and navigate you back to the wallet details screen.

Screenshots/Recordings

Image

Steps to reproduce

  • import a wallet
  • click on the selected account
  • the account list should open
  • click the three dots beside any of your accounts
  • the account details page should open
  • click on the wallet section of the account details page
  • the wallet details page should open
  • do not touch the screen and let your phone screen auto lock
  • wait a few more seconds while the phone is unlocked
  • re open your phone
  • you will see the following error screen
  • Note, this behaviour does not seem to happen when you navigate to wallet details from the accounts list via "details". It only occurs when you navigate from account details.

Error messages or log output

View: Root

TypeError: Cannot read property 'accounts' of undefined

Detection stage

During release testing

Version

7.52.0

Build type

None

Device

iPhone 16 pro, Google Pixel 6

Operating system

iOS, Android

Additional context

No response

Severity

This is a critical bug that must be fixed before release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sev1-highAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingregression-RC-7.52.0Regression bug that was found in release candidate (RC) for release 7.52.0release-7.52.0Issue or pull request that will be included in release 7.52.0release-7.53.0Issue or pull request that will be included in release 7.53.0release-blockerThis bug is blocking the next releaseteam-accounts-frameworkAccounts Framework teamtype-bugSomething isn't working

    Type

    Projects

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions