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

bug:maximum call stack size exceeded #26

Open
sid1006 opened this issue Sep 23, 2021 · 1 comment
Open

bug:maximum call stack size exceeded #26

sid1006 opened this issue Sep 23, 2021 · 1 comment

Comments

@sid1006
Copy link

sid1006 commented Sep 23, 2021

I experienced an error (maximum call stack size exceeded ) while trying to access the database using SQL-cipher to open an electron js(version:13.4.0) app. The main.js is given below

const electron= require('electron');
const url= require('url');
const path= require('path');
var sqlite = require('sqlite-cipher'); //requiring

const{
app,BrowserWindow
}=electron;
app.on('ready',()=>{

//Connecting - (databaseFile, [password], [algorithm])
 sqlite.connect('sample','password','aes-256-ctr');



new_window= new BrowserWindow({});
preload:path.join(__dirname,'preload.js')
new_window.loadURL(url.format({
pathname:path.join(__dirname,'/dist/index.html'),
protocol:'file',slashes:true
}));

});

Screenshot (95)_LI

@chris3eleven
Copy link

@sid1006 did you manage to resolve this? I'm having the same problem.

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