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

My page loads frequently keep hanging forever when I enable offline content #8022

Open
3 tasks done
jespertheend opened this issue Jan 23, 2023 · 4 comments
Open
3 tasks done
Assignees
Labels
🐛 bug Something isn't working, or isn't working as expected idle plus:offline

Comments

@jespertheend
Copy link

Summary

Once every few page loads, the page just keeps hanging indefinitely. My fans start spinning like crazy and activity monitor reports a cpu of 100%.

URL

Any https://developer.mozilla.org/ url

Reproduction steps

  1. Go to your profile settings and enable offline content
  2. Visit https://developer.mozilla.org/

Expected behavior

The page loads

Actual behavior

It keeps hanging forever

Device

Desktop

Browser

Chrome

Browser version

Stable

Operating system

Mac OS

Screenshot

No response

Anything else?

No response

Validations

@jespertheend
Copy link
Author

Restarting my browser fixes the issue but only temporarily. Disabling offline storage is the only real workaround.

I tried debugging this, but I think it might be a bug in Chrome, the await caches.match in the service worker never seems to resolve.

const r = await caches.match(e.request);
if (r) {
return r;
}

@jespertheend
Copy link
Author

I've opened up https://crbug.com/1409648

@bsmth bsmth added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. and removed needs-triage labels Mar 3, 2023
@Christopher-Hayes
Copy link

Same issue with offline storage in MDN running on Chrome. Seemed like offline data was not staying up-to-date. In the settings it said last update was Feb 22 (today is March 9th). I left the settings tab open since it said it was downloading and unpacking offline data. It got stuck at "100%" for unpacking. Refreshing the browser rendered MDN unusable (white screen, MDN would not load) for a period of 5 minutes or so. But, it appears to be working again and it's now saying the offline data is up-to-date.
Not sure if related to Chrome's new memory-saving feature that automatically sleeps tabs you haven't opened in a while.

@jespertheend
Copy link
Author

I can’t imagine it being an intentional feature. In my case the hanging goes paired with high cpu load and a trace revealed it was performing a lot of database operations.

@mirunacurtean mirunacurtean added plus:offline 🐛 bug Something isn't working, or isn't working as expected and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Apr 3, 2023
@github-actions github-actions bot added the idle label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working, or isn't working as expected idle plus:offline
Projects
Development

No branches or pull requests

5 participants