ElectronMail icon indicating copy to clipboard operation
ElectronMail copied to clipboard

Logged out on most of my accounts

Open Uj947nXmRqV2nRaWshKtHzTvckUUpD opened this issue 2 years ago • 5 comments

Upon opening electronMail i was Logged out on most of my accounts (only 1 was left logged in)

Did any1 else experienced this recently?

Doesn't happen to me.

I assume that you have the "persistent session" feature enabled for the accounts. If those sessions are still open/live (see in the account's settings), then I don't rule out the fact that the app failed to "persist the session" or restore the "persisted" session before the account page/client gets loaded. This is especially relevant if you downgraded the app version and then returned to a more recent one (I normally highlight the settings files format change in the release notes). The "persistent session" is a relatively complex thing, and there still might be room for improvement.

vladimiry avatar Aug 09 '22 13:08 vladimiry

Funny thing,... this happened to me recently in the web client, but not in ElectronMail haha.

arch-btw avatar Aug 09 '22 16:08 arch-btw

Doesn't happen to me.

I assume that you have the "persistent session" feature enabled for the accounts. If those sessions are still open/live (see in the account's settings), then I don't rule out the fact that the app failed to "persist the session" or restore the "persisted" session before the account page/client gets loaded. This is especially relevant if you downgraded the app version and then returned to a more recent one (I normally highlight the settings files format change in the release notes). The "persistent session" is a relatively complex thing, and there still might be room for improvement.

Yes, all of them use persistent session. I did not downgrade recently, just upgraded each time ( i only downgraded long time ago - about an year, when there were issues with electron engine having cpu spikes).

So what happened:

  • i set electronmail to run at all times in background (system tray)
  • upon resuming from hibernate (win 11), i got a biga$$ error on electronmail (unfortunatelly i didn't save it, but i think it was something related to webview), so i closed it
  • restared electronmail, and was logged out on all but one account. all account are configured exactly the same (both in protonmail itself and in electronmail)

Update: I was looking into C:\Users<user>\AppData\Roaming\electron-mail\log.log, and I saw this error which seems to be the one I saw the other day:

[2022-08-05 02:24:38.701] [error] src\electron-preload\webview\lib\const.ts [preload: webview/primary] src\electron-preload\webview\primary\index.ts {
  message: 'ResizeObserver loop limit exceeded',
  filename: 'webclient://mail.proton.me/CocWaJAY9Jl4vGyBPu_eu4Pn_u42WdyBSiyj5UIiI5UZlKOyjWx7Zy_ierqQ9belky3Nzy1mspVkUw-AZoFtDg==/cMYXDleIuUBN73nePjF5Ma2Q-0-IXy-5-IuK2Jvrf9EqMiYqS3_DL9MFJP76a9IAUunvL66A-aSL9xN8LX1pDg==',
  lineno: 0,
  colno: 0,
  error: { message: 'stringified "null"' }
}
[2022-08-06 22:06:20.673] [error] src\electron-main\web-contents.ts {"level":3,"message":"[object Object]","line":9387,"sourceId":"file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs"}
[2022-08-06 22:06:20.689] [error] src\web\browser-window\app\app.error-handler.service.ts {
  name: 'Error',
  message: 'Uncaught (in promise): WebviewPingFailedError: Failed to ping the "webview" backend service (timeout: 7000ms).\n' +
    'WebviewPingFailedError: Failed to ping the "webview" backend service (timeout: 7000ms).\n' +
    '    at file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:8746:83\n' +
    '    at Observable.init [as _subscribe] (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:4032:33)\n' +
    '    at Observable._trySubscribe (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:2948:23)\n' +
    '    at file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:2942:119\n' +
    '    at errorContext (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:5207:14)\n' +
    '    at Observable.subscribe (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:2940:63)\n' +
    '    at doInnerSub (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:4367:52)\n' +
    '    at outerNext (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:4361:38)\n' +
    '    at OperatorSubscriber._this._next (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:4085:13)\n' +
    '    at Subscriber.next (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:3219:97)',
  stack: 'Error: Uncaught (in promise): WebviewPingFailedError: Failed to ping the "webview" backend service (timeout: 7000ms).\n' +
    'WebviewPingFailedError: Failed to ping the "webview" backend service (timeout: 7000ms).\n' +
    '    at file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:8746:83\n' +
    '    at Observable.init [as _subscribe] (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:4032:33)\n' +
    '    at Observable._trySubscribe (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:2948:23)\n' +
    '    at file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:2942:119\n' +
    '    at errorContext (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:5207:14)\n' +
    '    at Observable.subscribe (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:2940:63)\n' +
    '    at doInnerSub (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:4367:52)\n' +
    '    at outerNext (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:4361:38)\n' +
    '    at OperatorSubscriber._this._next (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:4085:13)\n' +
    '    at Subscriber.next (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:3219:97)\n' +
    '    at resolvePromise (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:6612:25)\n' +
    '    at file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:6550:15\n' +
    '    at file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:6562:31\n' +
    '    at asyncGeneratorStep (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:40281:9)\n' +
    '    at _throw (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:40295:13)\n' +
    '    at _ZoneDelegate.invoke (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:6008:164)\n' +
    '    at Object.onInvoke (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:28052:29)\n' +
    '    at _ZoneDelegate.invoke (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:6008:52)\n' +
    '    at Zone.run (file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:5823:41)\n' +
    '    at file:///C:/Users/<user>/AppData/Local/Programs/ElectronMail/resources/app.asar/app/web/browser-window/index.mjs:6654:32'
}

might be related to #524 ?

You likely faced the edge case.

Failed to ping the "webview" backend service

This is a known issue. It's about redundant checks (like pinging online status), which I'm making more relaxed in the next release.

vladimiry avatar Aug 09 '22 18:08 vladimiry