Skip to content
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

Crash running under electron 14+ using large blobs and each or all functions #94

Open
MrPrimate opened this issue Dec 16, 2021 · 1 comment

Comments

@MrPrimate
Copy link

I have a weird issue that I think is to do with a change that must have been made in electron 14+, but unsure.

When accessing tables with a blob field, where the blob is a large text object, say 50000+ characters, then when using the .each method (or .all) causes an Electron exited with signal SIGTRAP. error. Sometimes it can seem to semi process some of the rows.

If I reduce the rows in a table it gets to a point eventually where it will process them. The same code works perfectly when run directly under the same version of node that electron is using, and in Electron 12 and 13. Within Electron sqlcipher is called from within the main process. If I switch out node-sqlcipher for sqlite3 package then it works fine.

I was hoping you might have some insight into what might be causing this?

I have a fiddle of some code that can reproduce it here: https://gist.github.com/MrPrimate/4ca99a5672411166cf5eb92d7a3f4e3a

MrPrimate added a commit to MrPrimate/ddb-adventure-muncher that referenced this issue Apr 14, 2022
@yykoypj
Copy link

yykoypj commented May 22, 2023

I'm having the same problem.Is there any way to solve it rather than switch to better-sqlite3?

Electorn 22.3.9
sequenlize 6.12.2
@journeyapps/sqlcipher 5.3.1
Node 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants