-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Attach encrypted database results in Out of Memory Error #1799
Comments
...and I assume opening the second database and performing an integrity check also comes back clean? |
Integrity check on stand alone second database is clean and SQL statements work fine. |
Ouch. Probably better to not generate the 3.11.2 builds today after all. This sounds like a bug of some sort that's likely present in both our release and master branches. 😉 |
The latest build now allows me to Attach a database however Am also now getting a new error when trying to detach the database using The error is (database name is import) Execution finished with errors. |
Is that after running successful SQL statements? |
Hmm, there is something really messed up around Attach and the issuing 'detach database name' UPDATE: - The folllowing only SOMETIMES works. However if I do the following
If I don't do (2) first then any other sql seems to generate the Out Of Memory error... Very strange. |
This is really critical for us - needing to Attach and execute sql statements. Is there a version that does NOT cause the Out of Memory error? Thanks. |
This seems to be related to the database being encrypted. If I decrypted both databases and then tried the above (same version of DB Browser) everything works correctly. Hope this helps... |
(See also #1814) |
@MKleusberg This sounds like it's related to #1758. Maybe the fix for that needs a bit of adjusting? 😉 Note - Am now going through the outstanding GitHub Notifications I've been mostly ignoring for the past 2 weeks, prior to building the 3.11.2 release binaries. I have a feeling this issue might be a release blocker. 😦 |
When attaching an SQLCipher encrypted database we need to set the page size, KDF iterations, and HMAC and KDF algorithms. This needs to be done before actually attaching the database but we tried to do it afterwards which silently fails until the first statement is executed on the attached database. This commit modifies the "default" values for these pragmas in order to make sure SQLCipher uses the correct values right at the beginning. See issue #1799.
This should be fixed too in @justinclift's build 😄 Can you try this as well, @mtissington? |
@MKleusberg waiting in anticipation ... 😄 |
Still getting both errors ... |
@mtissington This is fixed now isn't it? |
When attaching an SQLCipher encrypted database we need to set the page size, KDF iterations, and HMAC and KDF algorithms. This needs to be done before actually attaching the database but we tried to do it afterwards which silently fails until the first statement is executed on the attached database. This commit modifies the "default" values for these pragmas in order to make sure SQLCipher uses the correct values right at the beginning. See issue #1799.
Yes
Michael
|
Thanks @mtissington 😄 Looks like all we're waiting for now, is updated translations for strings. Then we can do the 3.11.2 release. 😄 |
Purposely broke the (spam?) link. Looks like spam but wasn't sure whether to delete or not. Thinking 'yeah' but also 'meh'. Seemed to go to a legit page, but couldn't see the point of it here. |
Using the latest nightly build on Windows 10 (also happening with the release build!)
I have two encrypted databases (same key).
I open the first database, then attach the second database.
If I try to execute any SQL that includes any tables in the attached database I'm getting an Out Of Memory Error.
If I try to browse any of the attached tables - at the bottom of the screen where row count should appear it says "determining count of rows..."
If I try the following "PRAGMA integrity_check;" I get an Out Of Memory Error.
If I execute "DETACH DATABASE database_name" then everything returns to normal.
The text was updated successfully, but these errors were encountered: