-
Notifications
You must be signed in to change notification settings - Fork 280
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
Excessive storage.sync activity after VT switch on X server #3057
Comments
I think this is not a TST specific issue. TST calls |
And TST is designed to suppress API call of |
I've implemented a new secret option |
@WGH- Could you confirm that the reproducibility of this problem with another addon using same sync policy? For example these my addons use same sync policy and their options page contains text input fields:
If you see same problem with these addons, it looks should be tracked at bugzilla.mozilla.org as a problem of WebExtensions API. |
I'm still in process of reproducing it, as it doesn't happen immediately. In the meantime, some clues:
|
This issue has been labeled as "stale" due to no response by the reporter within 1 month (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded. |
Reproducing this isn't really that easy as I said in the original report. There must be some other factors. I don't always leave my computer "locked" for a while, so it's taking some time to reproduce. Additionally, I tried to set a JS debug breakpoint on some of the functions related to config syncing, and I couldn't reproduce it that way even once. |
I have managed to capture a profile when this happened (usually the browser is completely unresponsive when this happens). It's Shift+F5 profile. I'll try to get Firefox Profiler profile next time. |
I managed to capture full Firefox profile when this happens. https://share.firefox.dev/354uEnu Not sure if there's really anything useful in it. The process that contains TST is mostly idle, and there's a thread in the main process that's stuck in SQLite. |
@wgh I am sure @piroor will weigh in on this, but given SQLite is used by Firefox for profile storage, I am wondering if something in your SQLite DB is corrupt. One thing I was thinking you could try is to go to "about:support" and go down to the section "Places Database" and click on the "Verify Integrity" button to see if it reports any problems. |
A separate SQLite3 database file is used for the And I can't even imagine what kind of database corruption could lead to SQLite3 updates piling up when VT is inactive... The database opens just fine using standalone |
This issue has been labeled as "stale" due to no response by the reporter within 1 month (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded. |
This issue has been closed due to no response within 14 days after labeled as "stale", 7 days after last reopened, and 7 days after last commented. |
Short description
After unlocking desktop session on Linux, TreeStyleTab inserts large amount of data into storage.sync. Presumably, it tries to insert all the inserts that were missed when the desktop was locked, even if nothing's really changed except data timestamps.
Steps to reproduce
dm-tool lock
(I'm using LightDM, this might be reproducible with other session managers) for a while, a day or sostorage-sync-v2.sqlite
. You can useinotifywait
to see it:If you look into the data, you'll see the same data being rewritten with updated timestamp:
It'll eventually catch up, but that takes a while. On my system, a bit less than 1 minute worth of updates is inserted in 1 second (yes, timestamps are less than 1 wall clock minute apart). It obviously wears down the disk considerably.
Environment
I have Sync disabled (
about:preferences#sync
asks to sign in).The text was updated successfully, but these errors were encountered: