-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bug: application crashes when creating database, using Electron #59
Comments
It seems that this issue is due to better-sqlite3 directly. Using another package (enmap) which also uses better-sqlite3, crashes when creating database, again with a SIGEGV. |
Same here, #57 after upgrading to electron v26. |
There are third-party issues being tracked regarding this bug. WiseLibs/better-sqlite3#1042 Will keep this issue open till those are addressed. |
I got the same issue with @capacitor-community/sqlite which use better-sqlite3-multiple-ciphers for the Electron part of the plugin capacitor-community/sqlite_issue#474. The plugin work fine with Electron 25.8.4 and better-sqlite3-multiple-ciphers 8.4.0 but when i upgrade Electron to 26.1.0 it failed:
|
Any updates? |
from this issue, Updating to Electron 27 solves the issue. It's not totally resolving the real issue, but at least there's a workaround. |
Upgrade to v27 solved it. |
Closing this issue since this is as far as we're going to get to a fix until |
@m4heshd any idea on the plan date? |
@jepiqueau As far as I know, there are no plans in place yet. It's ultimately up to @JoshuaWise to decide since it's gonna be a massive refactor. |
@m4heshd @JoshuaWise OK thanks keep me aware when the decision will happen |
Hello,
Tech :
Node v18.13.0
npm v9.2.0
Electron v26.0
Javascript (not Typescript)
Linux Ubuntu 23.04.
From my researches on StackOverflow and Github, the versions I mentionned above are not relevant.
Minimal node version from my researches : 14
Minimal Electron version from my researches : 11
Javascript & Typescript.
All OS.
In my case, I needed to
electron-rebuild -f -w better-sqlite3-multiple-ciphers
because of my node version before using this library.This code is sufficient to cause a crash.
This occurs only when this is run through an Electron project.
Execute without Electron, all is working well.
The crash message :
A lot of issues are opened in a lot of other library's repositories with the same behavior, always
lambda library + Electron = SIGSEGV from Electron
.I don't know if it is to Electron's team to do something or the other library's team to find an alternative, and what us, end users, can do (because we would like to use both. Personnally I don't see other lib for database encryption and I don't know how to do myself, and of course keep electron for the main purpose of the application).
The text was updated successfully, but these errors were encountered: