krita-rpc icon indicating copy to clipboard operation
krita-rpc copied to clipboard

Krita hangs at launching when offline

Open ravener opened this issue 1 year ago • 3 comments

I can't work offline with this extension enabled, if I'm online it launches quickly, but if I turn off wifi, krita seems to just hang in the loading screen and even the operating system starts reporting that the application is not responding, turn on wifi and it immediately continues. maybe the code needs to handle connection errors more gracefully to allow offline work? If it matters I'm on Debian 12 using Krita 5.2.2 AppImage.

ravener avatar Feb 19 '24 08:02 ravener

actually this only seems to happen when i forgot i had discord open after going offline, close discord entirely and it works, it just seems that if discord is still on and exposing the sockets, it'd hang until discord regains connection again, i'll let you decide if that's also a bug because for example other apps like VSCode rich presence would instead throw an RPC Timeout and fail to connect instead of hanging until discord is reconnected.

ravener avatar Feb 19 '24 08:02 ravener

I think that we shouldn't block entire Krita if we can't connect to discord :sweat_smile: I'll fix it in the meantime and notify you.

Firstbober avatar Feb 19 '24 10:02 Firstbober

while you are at it I would also suggest adding an option on this menu to Reconnect to Discord so for example if I reopen discord later after an offline session I can reconnect it back.

image

ravener avatar Feb 20 '24 10:02 ravener