-
Notifications
You must be signed in to change notification settings - Fork 278
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
TST Sync Error (Insufficient Storage) #2623
Comments
The helper addon looks to be unrelated to the problem. The error you saw is returned by the sync server hosted by Mozilla, and it means that TST stores too large data via |
The error message you saw says that it exceeds 16KB, but it is mysterious for me why the sync server returns the error, because the API document https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/sync says that the maximum data size for sync is 100KB... |
I've introduced some changes to drop some temporary config data from sync keys. These changes should reduce such a sync error...maybe. |
@piroor with my high level review of the issue, it looks like it is 100k for the total storage and 8k for "The maximum size (in bytes) of each individual item in sync storage, as measured by the JSON stringification of its value plus its key length." (link) I also saw comments that Firefox based their specs on Chrome, but increased the size from 8k to 16k as they store it base64. In my case, it looks like it isn't the total size that is exceeded, but just something at the individual item storage level. Obviously the size is close to the limit, so maybe dropping the temporary config data might be enough. |
@piroor I know what is causing my issue. It is my TST CSS. With it in, I must be over the individual item limit, but when I clear it out sync works properly. I will try clearing out my documentation\comments in my CSS to see if that gets me below the threshold as I do have a fair amount of information as to where I got some of the customizations. MS Word tells me there are 10,101 characters (no spaces) and 11,441 characters (with spaces) ... the helper addon also adds some additional CSS. It does look like Mozilla will likely add some client side checking at some point around sync quotas. (link) |
Thank you for the research! I've added a note about the limitation. I hope it will help other people who see same troubles. |
Short description
Firefox Sync looks to be trying to sync a TST object that is larger than the allowed 16384 Bytes.
Steps to reproduce
Not sure yet. It appears to be dependent on the number of tabs, but it could also be related to a TST helper addon which creates a new state for the tab. (#2104) I had a larger session of tabs (around 750) and started seeing this error. Once I closed some tabs (still 700+ tabs) this error went away. From the sync log error, the object being synced was only a little over the maximum.
Is there anything you can think of that I can explore to determine what information is being synchronized or if there is anything I can do? I have had 1000+ tabs in the past and don't recall hitting this limitation.
Expected result
No sync errors.
Actual result
Entire error sync log:
Environment
The text was updated successfully, but these errors were encountered: