aaFn / Bookmark-search-plus-2

Displays and filters bookmarks on search string, show parent folders. This is a Web Extension add-on version of the old "Bookmark search plus" XUL extension published by Alice0775, not working anymore in latest Firefox, and which was very useful.
117 stars 11 forks source link

Stuck in Wait background load in Firefox 130 #313

Closed nton closed 2 months ago

nton commented 2 months ago

This wonderful tool stopped workin on Firefox 130. "Wait background load.." is the message and a small icon showing a circle keeps working for hours. At first I thought its because of my work environment - FF is under corporate IT. But then in my home PC, same windows 10 - ff 130 version, the same thing happened. I have thousands of bookmarks and now I feel helpless ... Please take a look !!!

Thank you so much for all these years of support !!!

aaFn commented 2 months ago

Hello @nton , can you apply the procedure here https://github.com/aaFn/Bookmark-search-plus-2/wiki/Getting-and-providing-logs-for-debugging-BSP2, and place the output in this thread ?

Also, you if can activate traces in the BSP2 options, and copy the content of the little trace text area here ..

Let's see what is happening on your side, all is ok on my FF 130.0, whether Win11, Win10, Linux or MacOS.

nton commented 2 months ago

Hello, thank you for your reply and instructions. I'm attaching the file of console:

console-export-2024-9-19_13-0-39.txt

aaFn commented 2 months ago

Bad news, your local storage is corrupted in some way, external to BSP2, and BSP2 cannot do anything about it, it tried all it could, including clearing the local storage. => you have to clear the BSP2 add-on storage yourself ... and the only way I know of is to remove the add-on (here BSP2), and to reinstall it 😢

I will modify the code to add a notification popup instructing the user on what to do when reaching such a case, to make that more explicit.

libstore error on loading from local storage 3 : Error: An unexpected error occurred (retries left: 1) libstore.js:462:13
fileName:   undefined libstore.js:466:14
lineNumber: 0 libstore.js:467:14
uncaught exception: null
IndexedDB UnknownErr: ActorsParent.cpp:575
UnknownError: The operation failed for reasons unrelated to the database itself and not covered by any other error code. ExtensionStorageIDB.sys.mjs:841
    normalizeStorageError resource://gre/modules/ExtensionStorageIDB.sys.mjs:841
    method chrome://extensions/content/child/ext-storage.js:286
    AsyncFunctionThrow self-hosted:811
libstore error on loading from local storage 3 : Error: An unexpected error occurred (retries left: 0) libstore.js:462:13
fileName:   undefined libstore.js:466:14
lineNumber: 0 libstore.js:467:14
Attempting to clear local storage, which will reset all values to default ! libstore.js:479:15
uncaught exception: null
IndexedDB UnknownErr: ActorsParent.cpp:575
UnknownError: The operation failed for reasons unrelated to the database itself and not covered by any other error code. ExtensionStorageIDB.sys.mjs:841
    normalizeStorageError resource://gre/modules/ExtensionStorageIDB.sys.mjs:841
    method chrome://extensions/content/child/ext-storage.js:286
    AsyncFunctionThrow self-hosted:811
Clear of  local storage failed : Error: An unexpected error occurred - ending there :-( libstore.js:490:17
Error on loading from local storage : undefined background.js:3586:10
IndexedDB UnknownErr: ActorsParent.cpp:575
aaFn commented 2 months ago

An additional thought: if the error appeared in two different FF instances at around the same time, in two different environments, look for some common external factor which could provoke that .. (external = outside of BSP2)

nton commented 2 months ago

Hi, thank you very much. Re-installing solved the issue. Lost favicons is a temp collateral loss -slowly fetching 23k icons. Would 'Dual save' option help in re-installing?

-I'm not sure if I can comment on the RC of local storage corruption: It was not about the same time, different days for sure. What is in common is the quite strict antivirus pkgs and rules; both in my corporate laptop (win defender/antimalware) and home pc (kaspersky). I experience sporadic timeouts openning e.g. the downloads folder in the former and issues/delays on the protected FF instance in the latter. Not sure if it could be related at all though..

Once again thank you for this wonderful application. Not many people keep a structured Bookmark Content Sidebar but those who do really appreciate the unparalleled functionality of BSP2 !!

aaFn commented 2 months ago

I now added a notification popup in 2.0.130 to let the user know of the situation, and to advise directly on the uninstall/reinstall method to cure the problem.

image

aaFn commented 2 months ago

Closing since the problem is now fixed.