Void Beta Release v1.0.0 for Linux(x64) bundles incorrect vscode-sqlite3.node binary (incorrect architecture)
Release URL: https://github.com/voideditor/void/releases/download/v1.0.0/Void-Installer-linux-x64.zip
Downloading and running the current beta release of void results in high CPU usage. Upon further investigation, you can see the following error message every few seconds in the stdout/log:
[main 2025-01-28T06:06:32.859Z] Error: /home/wulgaru/Void-linux-x64/resources/app/node_modules/@vscode/sqlite3/build/Release/vscode-sqlite3.node: invalid ELF header
at process.func [as dlopen] (node:electron/js2c/node_init:2:2214)
at Module._extensions..node (node:internal/modules/cjs/loader:1470:18)
at Object.func [as .node] (node:electron/js2c/node_init:2:2214)
at Module.load (node:internal/modules/cjs/loader:1215:32)
at Module._load (node:internal/modules/cjs/loader:1031:12)
at c._load (node:electron/js2c/node_init:2:13801)
at Module.require (node:internal/modules/cjs/loader:1240:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/home/wulgaru/Void-linux-x64/resources/app/node_modules/@vscode/sqlite3/lib/sqlite3-binding.js:4:17)
at Module._compile (node:internal/modules/cjs/loader:1373:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
at Module.load (node:internal/modules/cjs/loader:1215:32)
at Module._load (node:internal/modules/cjs/loader:1031:12)
at c._load (node:electron/js2c/node_init:2:13801)
at Module.require (node:internal/modules/cjs/loader:1240:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/home/wulgaru/Void-linux-x64/resources/app/node_modules/@vscode/sqlite3/lib/sqlite3.js:2:17)
at Module._compile (node:internal/modules/cjs/loader:1373:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
at Module.load (node:internal/modules/cjs/loader:1215:32)
at Module._load (node:internal/modules/cjs/loader:1031:12)
at c._load (node:electron/js2c/node_init:2:13801)
at cjsLoader (node:internal/modules/esm/translators:352:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:297:7)
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) {
code: 'ERR_DLOPEN_FAILED'
}
The reason for this error seems to be that the binary vscode-sqlite3.node is the incorrect architecture for that Release:
$ file void
void: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=40a7f6aca47219048c11deb5ab517b7b11419c0a, not stripped
$ file resources/app/node_modules/@vscode/sqlite3/build/Release/vscode-sqlite3.node
resources/app/node_modules/@vscode/sqlite3/build/Release/vscode-sqlite3.node: Mach-O 64-bit arm64 bundle, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|BINDS_TO_WEAK>
As you can see the main binary of void is x86-64, but the vscode-sqlite.node is arm64 for MacOS.
Sidenote: It dosen't look like that sqlite3 is actully bundled with Void.
The sqlite3 module that you have installed appears to be compiled for arm64 devices:
The version of Void you have is for x86-64 devices:
Something in the build process must be bundling that sqlite3 file. I assume it comes from "base" VSCode.
I am not building Void by myself. I just unpacked the ZIP file from the URL above and vscode-sqlite3.node with the wrong architecture is inside that ZIP for Linux-x64.
Thanks for the report, will look into this on Linux
After looking to the same problems over internet, it seems that you have to install sqlite on your computer.
Here is the explanation : https://www.reddit.com/r/vscode/comments/nrxpo1/comment/h0kp1i0/
We redid our build pipeline, so this is no longer relevant!
Unfortunately our Linux build pipeline was killed by a GitHub Actions deprecation of Ubuntu20.04, but we're going to be rebasing soon. Until then, here's a download link: https://github.com/voideditor/binaries/releases/tag/1.2.1.25105