Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Everything about using Adblock Plus on Google Chrome
Post Reply
Noggie
Posts: 82
Joined: Tue Mar 29, 2011 12:46 pm

Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by Noggie »

Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Code: Select all

Uncaught Error: QUOTA_EXCEEDED_ERR: DOM Exception 22 - options.html:140
saveOptions - options.html:140
addTypedFilter - options.html:173
(anonymous function) - options.html:449
onclick - options.html:450
I have just 18 rules

Should move them all to a custom filter instead ?
Do adblock even support local filters (as in "c:\bla\filter.txt") ?
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by Michael »

There are no limits (as far as I am aware) to the number of custom filters that the extension can handle. What version of Adblock Plus do you use? Does chrome://adblockplus/content/errors.html display anything?
Noggie
Posts: 82
Joined: Tue Mar 29, 2011 12:46 pm

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by Noggie »

I'm using Version: 1.1.3

"chrome://adblockplus/content/errors.html"
Doesn't work. (net::ERR_INVALID_URL)

There's a limit when using localstorage (5 mb).
Using database sql have no file size limit
ttjoseph
Posts: 79
Joined: Sat Dec 04, 2010 4:12 am

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by ttjoseph »

Yes, this is most likely a localStorage limitation, which has become problematic in this - hopefully rare - because all locally-cached filter lists count toward this limit, and deselected ones are not deleted. We don't currently use the unlimitedStorage manifest.json permission, which would solve this (but I don't know if enabling it result in a potentially confusing 'new permissions' dialog box in Chrome - Wladimir, any thoughts?).

Here is a workaround: Tools -> Extensions -> Developer mode, then under the ABPC entry, click "background.html". Then in the window that comes up, click Resources, Local Storage, then the entry under that that just appeared, then delete all the local storage entries that start with "http". Sorry this workaround is so convoluted...
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by Michael »

Sorry, I mistakenly posted information pertaining to the Firefox version of Adblock Plus - I had forgotten the forum that I was in and how different the Chrome extension is.
Noggie
Posts: 82
Joined: Tue Mar 29, 2011 12:46 pm

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by Noggie »

hm.. I get this error when updating (Update Now button) the filter list too :evil:

Code: Select all

filterupdate.js:152
Uncaught Error: QUOTA_EXCEEDED_ERR: DOM Exception 22
FilterListFetcher.xhr.onreadystatechange
Image

Any chance you will go over to the other limitless storage system ?
Noggie
Posts: 82
Joined: Tue Mar 29, 2011 12:46 pm

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by Noggie »

ttjoseph
Posts: 79
Joined: Sat Dec 04, 2010 4:12 am

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by ttjoseph »

OK, I went ahead and added this permission. It should show up shortly in the development version.

https://hg.adblockplus.org/adblockplusc ... 4b123a0d09
Noggie
Posts: 82
Joined: Tue Mar 29, 2011 12:46 pm

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by Noggie »

Did you not read the page ?

From the site (http://code.google.com/chrome/extension ... ermissions):
"unlimitedStorage": "Note: This permission applies only to Web SQL Database and application cache (see issue 58985)."

So you will need to switch to sql db to make it work.
ttjoseph
Posts: 79
Joined: Sat Dec 04, 2010 4:12 am

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by ttjoseph »

Guess I missed that part, sorry. I suppose we'll need it at some point though, or hopefully the Chrome folks will allow it to apply to localStorage at some point in the future.
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Getting QUOTA_EXCEEDED_ERR when trying to add a custom rule

Post by lewisje »

Also you might not want to use multiple overlapping lists, or copies thereof (like both the built-in and manually-added Fanboy lists).
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Post Reply