dhowe / AdNauseam

AdNauseam: Fight back against advertising surveillance
GNU General Public License v3.0
4.51k stars 189 forks source link

Settings and Vault pages don't load #2314

Open ghostebony opened 1 year ago

ghostebony commented 1 year ago

Describe the issue

The settings page doesn't load properly (unresponsive). The vault page doesn't load. But the adblocking works. I can't update the settings but I can update: filter lists, my filters, my rules, etc

I enable to collect errors, and I got these:

Error in event handler: TypeError: Error in invocation of webRequestInternal.eventHandled(string eventName, string subEventName, string requestId, integer webViewInstanceId, optional webRequest.BlockingResponse response): Error at parameter 'response': Error at property 'responseHeaders': Invalid type: expected webRequest.HttpHeaders, found object.

Context:
extension://mlojlfildnehdpnlmpkeiiglhhkofhpb/background.html

Stack Trace:
extensions::webRequestEvent:1 (subEventCallback)
Known error #2195 Error in event handler: TypeError: Cannot read properties of null (reading 'name') Context: extension://mlojlfildnehdpnlmpkeiiglhhkofhpb/background.html Stack Trace: js/vapi-background.js:856 (Object.onPortDisconnect) js/vapi-background.js:1041 (CallbackWrapper.proxy) js/vapi-background.js:1099 (Object.onPortMessage) js/vapi-background.js:866 (anonymous function)

Screenshot in which the issue can be seen

stay like this forever image

always like this, doesn't matter if I change anything image

this buttons don't do anything image

Steps for anyone to reproduce the issue

unknown

Your settings

mneunomne commented 1 year ago

Was not able to reproduce on edge on this particular version. https://github.com/dhowe/AdNauseam/issues/2195 shouldn't be the cause of it.

Can you maybe check the pages themselves for error, for example open the developer console on the vault page and check what error is occurring?

mneunomne commented 1 year ago

Maybe try to export your data and install the application again?

ghostebony commented 1 year ago

Was not able to reproduce on edge on this particular version. #2195 shouldn't be the cause of it.

Can you maybe check the pages themselves for error, for example open the developer console on the vault page and check what error is occurring?

no errors on console window.

Maybe try to export your data and install the application again?

that's the thing, I can't, the buttons don't do anything

I'm starting to think that the javascript isn't loading for some reason, only plain html vault and settings pages

ghostebony commented 1 year ago

@mneunomne is there a way to make a backup without using the export button?

ghostebony commented 1 year ago

I tried to move the database files to a new installation and got the same issues, probably database corruption

ghostebony commented 1 year ago

I have found the culprit; the database (~148MB) got too big and corrupted itself. (probably) At around 75k ads on vault, the extension stopped working correctly.

mneunomne commented 1 year ago

Hey @ghostebony, sorry for massive delay. Interesting this info you share about the database getting corrupted after a certain number of ads. @dhowe what do you think we can do about this? I guess this will be a pain to reproduce.

dhowe commented 1 year ago

We've done some testing with very large adsets, but I'm not sure the max that we tested (I've just done a quick test here with 32k ads and no issue). Perhaps you can dig up the ticket(s) where this is discussed?

Here is an adset for which the json is 60mb.