nylas / nylas-mail

:love_letter: An extensible desktop mail app built on the modern web. Forks welcome!
https://nylas.com/nylas-mail/
MIT License
24.81k stars 1.38k forks source link

Nylas stuck on loading screen on macOS due to malformed database #3344

Closed mollierobbert closed 7 years ago

mollierobbert commented 7 years ago

Nylas is stuck at the loading splash screen on macOS. Console says:

Apr  2 23:57:52 M84803 Nylas Mail[26914]: { Error: SQLite: database disk image is malformed
        at Error (native)
        at DatabaseStore._executeLocally (/src/flux/stores/database-store.es6:368:19)
        at Promise (/src/flux/stores/database-store.es6:328:30)
        at Promise._execute (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/debuggability.js:300:9)
        at Promise._resolveFromExecutor (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:481:18)
        at new Promise (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:77:14)
        at DatabaseStore._query (/src/flux/stores/database-store.es6:294:12)
        at _waiting.push (/src/flux/stores/database-store.es6:296:39)
        at /src/flux/stores/database-store.es6:140:11
        at /src/flux/stores/database-store.es6:137:12
        at next (<anonymous>)
        at step (/src/flux/stores/database-store.es6:16:1)
        at /src/flux/stores/database-store.es6:16:1
        at tryCatcher (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/util.js:16:23)
        at Promise._settlePromiseFromHandler (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:510:31)
        at Promise._settlePromise (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:567:18)
        at Promise._settlePromise0 (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:612:10)
        at Promise._settlePromises (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:691:18)
        at Async._drainQueue (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:133:16)
        at Async._drainQueues (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:143:10)
        at Async.drainQueues (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:17:14) message: 'SQLite: database disk image is malformed' } { pluginIds: [] }

Unlike issue #3343, my Macbook didn't crash this time - it just ran out of battery, and when I started my Macbook up again this issue started.

Showing an error in the user interface and some repair options (reset the database, attempt to repair it, et cetera), would greatly improve the user experience.

Are there any related issues?

Yes, #3343 (also reported by me).

What operating system are you using?

macOS 10.12.3

What version of Nylas Mail are you using?

10.0.48

Do you have any third-party plugins installed? If so, which ones?

No.

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

No.

Is the issue reproducible with a particular attachment, message, signature, etc?

No.

mollierobbert commented 7 years ago

Although this issue seemed to have a different cause than #3343, it appears it's a duplicate after all.