vladimiry / ElectronMail

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

Getting invocation timeout error after a few days with the app open #648

Open armanatz opened 8 months ago

armanatz commented 8 months ago

I receive this error message after the app has been running for a couple of days. The error notification shows up around 20 times and clearing all of the notifications just shows a gray screen.

Restarting the app resolves the issue.

I am on Windows 10 running the latest version of ElectronMail and I have persistent sessions enabled but not "auto-login into the app".

Uncaught (in promise): Error: Invocation timeout of calling "resolveLiveProtonClientSession" method on "electron-mail:webview-api:primary" channel with 25000ms timeout
Error: Invocation timeout of calling "resolveLiveProtonClientSession" method on "electron-mail:webview-api:primary" channel with 25000ms timeout
at <anonymous>:965:24
at Observable.init [as _subscribe] (<anonymous>:5216:35)
at Observable._trySubscribe (<anonymous>:3231:25)
at <anonymous>:3225:121
at Object.errorContext (<anonymous>:10349:16)
at Observable.subscribe (<anonymous>:3223:26)
at doInnerSub (<anonymous>:6939:58)
at outerNext (<anonymous>:6933:40)
at OperatorSubscriber._this._next (<anonymous>:5391:15)
at Subscriber.next (<anonymous>:3637:123)

Do let me know what other info is needed from me.

vladimiry commented 8 months ago

I run the app on Linux for weeks without restart and have not faced this issue yet. Apparently the issue is linked to some sort of sleep state switch or/and interrupted internet connection which affects the webview's ipc-message event getting through. There is no fancy stuff in resolveLiveProtonClientSession implementation, as it simply works with window.sessionStorage. Labeling it as "glitch" for now.