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]: Polling initiated in UI sometimes continues when the UI is closed #29699

Closed
Gudahtt opened this issue Jan 14, 2025 · 3 comments
Closed
Labels
Sev2-normal Normal severity; minor loss of service or inconvenience. team-assets team-extension-platform Extension Platform team type-bug Something isn't working

Comments

@Gudahtt
Copy link
Member

Gudahtt commented Jan 14, 2025

Describe the bug

Polling initiated in the UI sometimes continues when the UI is closed. Specifically this was encountered with the account-tracker-controller, but it may impact other token-based polling controllers as well.

We have UI code to unregister polling tokens on unmount, but this doesn't always work when the window itself is closed. The process is terminated before the on unmount code finishes.

Expected behavior

When a polling token is registered by a specific UI instance, it should be automatically unregistered when the UI instance closes.

Screenshots/Recordings

No response

Steps to reproduce

This is not a minimal reproduction, but I was able to reproduce this by following the reproduction steps in this issue: #28868

Error messages or log output

Detection stage

On main branch

Version

main

Build type

None

Browser

Other (please elaborate in the "Additional Context" section)

Operating system

Other (please elaborate in the "Additional Context" section)

Hardware wallet

No response

Additional context

I haven't investigated which release this was introduced in. I repro'd it on main, but I expect it impacts prod as well, and has for some time.

Severity

No response

@Gudahtt Gudahtt added the type-bug Something isn't working label Jan 14, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Jan 14, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Jan 14, 2025
@Gudahtt Gudahtt added team-extension-platform Extension Platform team team-assets Sev2-normal Normal severity; minor loss of service or inconvenience. labels Jan 14, 2025
@Gudahtt
Copy link
Member Author

Gudahtt commented Jan 16, 2025

I found a block tracker error that is also causing the polling to continue indefinitely in some cases: MetaMask/eth-block-tracker#301

Not creating a separate issue yet because I am not sure how to repro it without fixing the account tracker controller issue first 😅

@bergeron
Copy link
Contributor

Hoping this will be fixed by #29707

@alfeng6
Copy link

alfeng6 commented Jan 24, 2025

should be fixed by the PR mentioned above. If it does not, we can reopen

@alfeng6 alfeng6 closed this as completed Jan 24, 2025
@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by team Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sev2-normal Normal severity; minor loss of service or inconvenience. team-assets team-extension-platform Extension Platform team type-bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

4 participants
@Gudahtt @bergeron @alfeng6 and others