WiseLibs / better-sqlite3

The fastest and simplest library for SQLite3 in Node.js.
MIT License
5.23k stars 390 forks source link

Modifying the database causes electron application to crash #1118

Closed Solitario119 closed 3 months ago

Solitario119 commented 6 months ago

I used Electron v25.6.0 and better-sqlite3 v9.1.1 and everything was fine. But when I upgraded to Electron v26.6.2 and better-sqlite3 v9.2.2, modification of the database in the main process caused the Electron application to crash. Like this : [24052:1219/124218.753:ERROR:crashpad_client_win.cc(844)] not connected. And I tried to remove the node_modules folder and package-lock.json and run npm i but occured the same problem.

So I degraded Electron to v25.6.0 and it's OK now. I am wondering what causes this problem and how to fix it? how can I use the new edition of Electron with better-sqlite3?

Prinzhorn commented 6 months ago

https://github.com/WiseLibs/better-sqlite3/issues/1044 https://github.com/WiseLibs/better-sqlite3/issues/1053

Electron 27 should work again