SB 3.6.6 error: 103948101: openDatabase is not defined - for local modified version

1,634 views
Skip to first unread message

nsms

unread,
Nov 1, 2023, 8:14:30 AM11/1/23
to Session Buddy Discussion
Hi! This is related to the modification request I made about a year ago:
https://groups.google.com/g/sessionbuddy-discuss/c/vHu6uqlygNY

After I've updated Chrome today, I can no longer use my local modified Session Buddy version (3.6.6), where I have it bumped past 500 previous sessions. Now I get a red SB icon, and upon clicking on it I get this:

Session Buddy seems to have encountered an error preventing it from starting.

Chrome: 119.0.6045.105 (Official Build) (64-bit) (cohort: M119 Rollout)
OS: Windows 10 Version 21H2 (Build 19044.2788)

Upon checking the SB errors in the Extensions tab, I found these ones in the attachments.

It seems the openDatabase error is related to deprecating and removing Web SQL https://developer.chrome.com/blog/deprecating-web-sql/, which got in action since Chromium 119 (October 31, 2023), respectively yesterday.

I'm using the same Session Buddy version that you updated to on  November 1, 2023, respectively today. It's interesting that the webstore version works, but not the local modified one.

Is there an easy fix that I can do on my side?

Thanks!

chrome_WGKah3sPnP.png
chrome_tIf1Zhu7t6.png
chrome_nTfzcWjeWh.png
chrome_SSim85mS2P.png
chrome_5s9eneYnfD.png

Session Buddy Support

unread,
Nov 1, 2023, 1:05:32 PM11/1/23
to sessionbud...@googlegroups.com
When copying the extension code, did you modify manifest.json at all?

For DB access, it's important for the key prop to match.

Hans


--
You received this message because you are subscribed to the Google Groups "Session Buddy Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sessionbuddy-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sessionbuddy-discuss/e1f43e40-ef72-4b6c-9d89-03462b2868bfn%40googlegroups.com.

nsms

unread,
Nov 3, 2023, 2:40:02 PM11/3/23
to Session Buddy Discussion
Thank you a lot! That worked! Also thank you a lot for making this great extension!

I got the previous error because I used a Chrome extension to download SB as .crx, but it seems the manifest.json didn't have the key entry containing the public key.

In case someone else stumbles upon the same error, here's what I did:
1. Close Chrome
2. Go to C:\Users\[your_username]\AppData\Local\Google\Chrome\User Data\Default\databases\chrome-extension_edacconmaakjimmfgnblocblbcdcpbko_0
3. Copy the numbered file to, for example, C:\Users\[your_username]\Downloads, as a backup
4. Go to C:\Users\[your_username]\AppData\Local\Google\Chrome\User Data\Default\Extensions\edacconmaakjimmfgnblocblbcdcpbko
5. Copy the folder named 3.6.6 to, for example,  C:\Users\[your_username]\Downloads
6. Open folder 3.6.6 within C:\Users\[your_username]\Downloads
7. In the folder 3.6.6  you can find background.bundle.js, open it and replace the 2 occurrences of 500 of

var PREVIOUS_SESSION_QUEUE_SIZE = 500;

with any numerical value you want, to change how many previous sessions should be stored.
8. Save the file
9. Open Chrome
10. Enable developer mode in Chrome for extensions
11. Hit "Load unpacked" and select folder 3.6.6 , within C:\Users\[your_username]\Downloads
12. Enjoy

Have a nice day!

nsms

unread,
Nov 3, 2023, 2:49:43 PM11/3/23
to Session Buddy Discussion
P.S:
I'm sorry, about a year ago, when I made the request about modifying the number of previous sessions I forgot about the issue with importing a large export / backup, since it would lead to a freeze for Chrome and since it would not allow for the import to complete. By bumping up the number it would've only caused more problems by using the SB interface for importing.
Message has been deleted
Message has been deleted

Wayne

unread,
Nov 4, 2023, 2:22:38 PM11/4/23
to Session Buddy Discussion
I'm having the same error with some Chromium forks since version 119. Sessionbuddy doesn't start, red icon and this is the log:

background.bundle.js:12226 LOAD 19:04:29
background.bundle.js:12227 -----------------------------
background.bundle.js:10071 103948101: openDatabase is not defined
reportException @ background.bundle.js:10071

Any clue?

Jolly

unread,
Nov 4, 2023, 4:31:23 PM11/4/23
to sessionbud...@googlegroups.com, wayn...@gmail.com
I seem to be having problems posting but just flip this flag to enabled and it'll work:

chrome://flags/#web-sql-access


You received this message because you are subscribed to a topic in the Google Groups "Session Buddy Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sessionbuddy-discuss/OsPa31kg6Cs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sessionbuddy-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sessionbuddy-discuss/d0db606d-6abd-4962-b36b-245d5161f787n%40googlegroups.com.

nsms

unread,
Nov 7, 2023, 8:28:24 AM11/7/23
to Session Buddy Discussion
@Wayne
Sorry, I don't know anything about that.

@Jolly
Thanks, your method worked and it's a lot easier than my method!

I have a feeling this flag won't be around for a long time.

Session Buddy Support

unread,
Nov 7, 2023, 1:06:54 PM11/7/23
to Session Buddy Discussion
>  I have a feeling this flag won't be around for a long time. 

Yep, Session Buddy is participating in the WebSQL deprecation trial, which expires in March.

v4 will be released before that and include automatic data migration to IndexedDB.

Hans


nsms

unread,
Nov 8, 2023, 5:29:03 AM11/8/23
to Session Buddy Discussion

Thanks for the clarification!
Reply all
Reply to author
Forward
0 new messages