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

You can only save 5MB of settings to Local Storage #126

Closed
Tsuyuri opened this issue Jan 12, 2013 · 14 comments
Closed

You can only save 5MB of settings to Local Storage #126

Tsuyuri opened this issue Jan 12, 2013 · 14 comments

Comments

@Tsuyuri
Copy link

Tsuyuri commented Jan 12, 2013

I usually add my own mascots using 'Add Mascot' but this time, it only saved the first one I added.
When I try to add another one, it doesn't show up in the mascot menu even though it confirmed that the mascot was saved.

@Mtay
Copy link

Mtay commented Jan 12, 2013

Do you have any categories hidden?

@GrimFunction
Copy link

On a related issue, I can't import Mascots without getting an error.

@Tsuyuri
Copy link
Author

Tsuyuri commented Jan 13, 2013

No, categories aren't hidden.

@yekyau
Copy link

yekyau commented Jan 28, 2013

you might have run out of local storage if you imported the image rather than hosting it somewhere. Firefox limits it to like 5mb

@seaweedchan
Copy link
Collaborator

Firefox can use up to 50 MB of local storage but it should ask for permission.

@zixaphir
Copy link
Owner

Firefox has a soft limit of 5MB, and apparently a hard one of 50MB. Chrome's limit is a hard limit of 5MB, unless you're using TamperMonkey, from what I hear. Opera has no limit that I know of and allocates memory as it's needed.

@Tsuyuri
Copy link
Author

Tsuyuri commented Feb 19, 2013

I tried to import the image from a website but it still doesn't work.
Also, whenever I change something in the mascot tab, like hiding a categories, it doesn't save changes.

@zixaphir
Copy link
Owner

Are you importing or are you adding?

On Tue, Feb 19, 2013 at 3:54 PM, Tsuyuri notifications@github.com wrote:

I tried to import the image from a website but it still doesn't work.
Also, whenever I change something in the mascot tab, like hiding a
categories, it doesn't save changes.


Reply to this email directly or view it on GitHubhttps://github.com//issues/126#issuecomment-13805218.

@Tsuyuri
Copy link
Author

Tsuyuri commented Feb 20, 2013

Adding. I tried importing and I get this error: SyntaxError: JSON.parse: unexpected character

@zixaphir
Copy link
Owner

When you try to add a mascot, does it throw any errors in the JS console?

@Tsuyuri
Copy link
Author

Tsuyuri commented Mar 2, 2013

Yes, it does.

@zixaphir
Copy link
Owner

zixaphir commented Mar 2, 2013

What are they? :3

@Tsuyuri
Copy link
Author

Tsuyuri commented Mar 3, 2013

I get: Persistent storage maximum size reached

@zixaphir
Copy link
Owner

zixaphir commented Mar 4, 2013

In firefox, you'll have to go into about:config and change dom.storage.default_quota

Default is 5120, which means you're storing 5MB of mascots. You can also upload your mascots to a site like Minus or imgur to decrease the storage-per-mascot required, as opposed to using the internal upload tool.

In chrome, this limit can be bypassed by using TamperMonkey, I think. Chrome has it's own weird policies for Extension Storage. http://developer.chrome.com/extensions/storage#properties

Opera doesn't have a hard-cap. Opera follows Chrome's policies.

@zixaphir zixaphir closed this as completed Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants