-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
App is throwing the error while running electron 14.0.0 and better-sqlite3 #694
Comments
I can reproduce this with a vanilla project as well (without all the bells and whistles of create-electron-app). This error seems to come up frequently with other native modules as well https://github.com/search?o=desc&q=_ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE&s=&type=Issues I am kind of confused, because I can't seem to make So I'm not sure on which end this needs to be fixed. |
I might be entirely lost, but maybe this is related to the fact that both Electron 13 and 14 use ABI 89. That means it pulls the prebuild for ABI 89 but it was compiled for Electron 13. The prebuilds need to be for a given Electron version, not ABI version. There needs to be a prebuild for Edit: Currently:
Future?
But I don't really know a lot about this. Maybe the ABI version is the only thing relevant for compatibility? If so, then why doesn't it work? |
Ya, you are right.
|
This could potentially be fixed by upgrading prebuild-install https://github.com/JoshuaWise/better-sqlite3/blob/master/package.json#L14 Because of electron/node-abi#104 but it's not in yet https://github.com/prebuild/prebuild-install/blob/c96c526d360b2e8ce0ece5b9e3c06b13082ea74e/package.json#L29 Manually doing |
Cool, so how can I incorporate the fix at my side so that I can run electron 14 with better-sqlite3?
|
Is there anything that can be done in the meantime? I tried going back to electron@13.2.3 but that doesn't seem to be working now either. |
I have the same problem. When using electron v14 this happens when upgrading better-sqlite3 beyond v7.4.0. |
Still no update on this.
Sadly I can't use electron 14 due to this issue
…On 9/9/21, Alexander Gabriel ***@***.***> wrote:
I have the same problem. When using electron v14 this happens when upgrading
better-sqlite3 beyond v7.4.0.
It seems that adding prebuilt binaries may have caused this:
https://github.com/JoshuaWise/better-sqlite3/releases/tag/v7.4.1
Could it be that a node mismatch is created with electron?
--
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
#694 (comment)
|
@akash07k have you tried using v7.4.0? That is the last version that works for me. |
No, not tried, but going to try now.
|
Yes bro, I tried with 7.4.0.
|
I am not sure if the issue is with better-sqlite3 or with the build tools used with electron. |
yeah
…On 9/10/21, Alexander Gabriel ***@***.***> wrote:
I am not sure if the issue is with better-sqlite3 or with the build tools
used with electron.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#694 (comment)
|
|
No, this is not the way for the users who want to use electron 14 with their apps.
|
Yes definitely, but until the issue is resolved, this is the solution I'm using. |
Yes, better-sqlite3 7.4.0 works well with electron 14.
|
KK.. I will try it out |
I've been trying to integrate better-sqlite3 with Electron, I've found this solution: But, it seems it to work on Windows, but I'm using Linux. I also found this issue posted on electron-rebuild: electron-rebuild properly rebuilds better-sqlite3 on Windows, but skips the rebuild on Linux |
Addresses WiseLibs#692 and WiseLibs#694
@JoshuaWise I poked at this a bit just now.
I cloned better-sqlite3 into a local directory, ran TL;DR: please upgrade your (Also, TIL that |
I adapted renkei's workaround slightly to directly call #!/bin/bash
# Adapted from:
# https://github.com/electron/electron-rebuild/issues/591
# Electron's version.
# example of electron -v --> v15.1.1
export npm_config_target=$(npx electron -v)
# The architecture of Electron, see https://electronjs.org/docs/tutorial/support#supported-platforms
# for supported architectures.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://electronjs.org/headers
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
HOME=~/.electron-gyp npm rebuild better-sqlite3 |
Towards @mceachen 's upgrade fix I am betting build from source being ignored patch was the culprit |
This should be fixed in |
Can anyone confirm this is working for them? For me I still can't get |
Electron 15 is still broken. See #713 (comment) |
@Prinzhorn Scratch that. Just need |
Version 7.4.5 works for me. Thanks! |
Thanks @barbalex. Closing this, but would appreciate more confirmations that it is working for people in |
I recently migrated to Electron 16 and it went smooth. So I can confirm that it works with the latest Electron + better-sqlite3. Can't speak for older combinations. |
I just got this again in two projects after having updated to v7.4.6 and electron 16.0.6. Reverting to v7.4.5 solved the issue |
I just want to add something , it works at build time but in the release didn't work .I'm using electron 15 |
I've encountered this issue with Electron 26 & better-sqlite3 v8.5.x. Going to see which downgrade works again :( |
I just got the same issue with Electron 26.1.0. Had to downgrade to 25.4.0 and it worked again. |
Description:
I'm using electron 14.0.0 and latest version of better-sqlite3 package.
However, when I try to run my app I get the following error:
Compiling Renderer Code[13984:0903/144946.475:ERROR:crashpad_client_win.cc(808)] not connected
And my app exits.
Steps to reproduce:
npx create-electron-app --template="webpack
to create/initialize a fresh new electron app with ElectronForge.npm install better-sqlite3
.Compiling Renderer Code[13984:0903/144946.475:ERROR:crashpad_client_win.cc(808)] not connected
(This error doesn't come if we use Electron 13.3.0)
@JoshuaWise
The text was updated successfully, but these errors were encountered: