vladimiry / ElectronMail

Unofficial ProtonMail Desktop App
GNU General Public License v3.0
1.49k stars 96 forks source link

Logged out on most of my accounts #541

Open Uj947nXmRqV2nRaWshKtHzTvckUUpD opened 2 years ago

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented 2 years ago

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

Did any1 else experienced this recently?

vladimiry commented 2 years ago

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.

arch-btw commented 2 years ago

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

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented 2 years ago

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:

Update: I was looking into C:\Users\\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'
}
Uj947nXmRqV2nRaWshKtHzTvckUUpD commented 2 years ago

might be related to #524 ?

vladimiry commented 2 years ago

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.