-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
Service Worker has a memory leak and crashes the tab #54584
Comments
Any news? have a similar issue |
Sorry for the non update. And since the service-worker proxies the http request for SW stuff, it was the service worker which was appearing to be the culprit while having nothing to do with it. TL;DR: The SW is almost never the issue. |
It seems very similar to my problem, I have a lot of logout, but only in prod. |
On my side I understand that the problem caused by this code probably
And for some reason it goes in a loop in prod |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
pwa
Is this a regression?
The previous version in which this bug was not present was
It used to work but I couldn't pin point any specific changes related to the Service Worker
Description
Hi,
For a while now I have been having a pretty random and weird issue with my service worker / angular app.
Sometimes, users will be stuck on a blank page while their RAM is getting eaten until crash from the Angular tab.
From what I can see it is related to the service worker, which I only uses for the SwUpdate feature.
I've been trying multiple version, configurations and I can't really seem to find a permanent solution given there is no log, no memory dump, nothing and it is randomly appearing on clients.
The only info I have is that it clears itself if you empty the storage of the app which uninstalls the service worker + removes its cache. Also if you manage to open the task manager, you can see the tab with Service Worker under it, not the regular thread.
Also I can not access the ngsw/state when this occurs.
Any idea to solve this nightmare which has been haunting me for months at this point... I'm open to any suggestion at this point.
Minimal Reproduction
Package.json
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: