Closed valentinbonneaud closed 2 years ago
There is not enough information to say something specific.
log.log
file's lines related to the error. The file located in the settings folder? You can either attach the log file here or send it privately to the email specified in https://github.com/vladimiry/ElectronMail/blob/master/package.json (author
field).database.bin
file size (located in the settings folder)?Sure, let me know if you need more information!
Thanks for the details. The log file was helpful in detecting the issue cause. The error gets triggered in the _vacuumIndex function of the https://github.com/ndx-search/ndx library used for indexing the mails for local search. The function uses a recursion technique and the recursion depth has a limit in JavaScript runtime and you hit the limit with so large dataset so the error occurs.
I will see what I can do about that. The simplest option is to stop using the "vaccum" feature of "ndx" library which will end up with the data related to the removed mails to remain in the memory/search-index. The search index is not stored on ssd/hdd but in-memory only so I think this option is acceptable. The more time-consuming option is to rewrite the "_vacuumIndex" function so it doesn't use the recursion technique (recursion algorithms are normally not a great option if scaling matters).
According to the code logic, you should get the error when you remove emails.
The error should go away if you disable the "Full-text search" toggle in the "General" app section.
Hi! I'm on the latest MacOS build and I get the following error message every now and then
Maximum call stack size exceeded
.I've multiple accounts set up in my client, let me know if you want more details.