Vencord / Vesktop

Vesktop is a custom Discord App aiming to give you better performance and improve linux support
GNU General Public License v3.0
3.04k stars 148 forks source link

Vesktop suspends when not focused #320

Open s-cd opened 6 months ago

s-cd commented 6 months ago

When you have vesktop unfocused on fedora sliverblue 39 after a few minutes the program seems to "hibernate" and disconnects from any calls until i refocus again and it reloads. After checking this doesn't seem to happen with the official app.

Vendicated commented 6 months ago

please provide more info

how did you install vesktop what desktop environment do you use what vesktop version

s-cd commented 6 months ago

Flatpak Hyprland Vencord 5dee2e8 (Vesktop V0.4.4)

Curve commented 6 months ago

I have the same issue on Arch Linux (with KDE) with vesktop from the aur - I can't seem to reproduce this consistently though, however it happens fairly often and always when Vesktop is minimized or sometimes even when it's merely unfocused.

When regaining focus (or being restored) the discord (re-)loading screen is shown and shortly after I'm thrown back into discord as if it just started

I've been having this issue with any vesktop version as well

Vendicated commented 6 months ago

this is really strange because i've never had this happen. likely related to power saving. we should check what flags Discord passes and see if any of them could relate to this issue. but it's very hard (impossible) for me to debug because i cant reproduce

Madmaxispog commented 6 months ago

im having the same issue

dowttie commented 6 months ago

same issue here. i'm on arch, kde plasma, got vesktop from the aur. it seems to happen inconsistently as described before. worth mentioning that i started using vesktop last week and i had this with vencord on regular discord before as well.

Noden2048 commented 6 months ago

Same issue here Everything goes quiet and after refocusing, the connection status says something along the lines of "Reconnecting...", logo then flashes and then it reconnects to the call

x11 Debian, Vesktop (version 1.5.0 4bb0db5), installed the Vesktop app from the .deb

purepani commented 5 months ago

I used to have this not happening, but after updating to the most recent plasma6 rc, ive had this issue. Just thought I'd give some more info in case it's helpful. I wasn't on wayland until then, so that might be part of it.

s-cd commented 5 months ago

okay i thought this problem solved itself but I realized that this only happens in calls, maybe try that?

QuietTR55 commented 4 months ago

I have the same issue, I Use Pop_os and I have enabled "Run in background" for this app but still, it still suspends when out of focus.

Curve commented 4 months ago

I have the same issue on Arch Linux (with KDE) with vesktop from the aur - I can't seem to reproduce this consistently though, however it happens fairly often and always when Vesktop is minimized or sometimes even when it's merely unfocused.

When regaining focus (or being restored) the discord (re-)loading screen is shown and shortly after I'm thrown back into discord as if it just started

I've been having this issue with any vesktop version as well

Managed to reproduce this on my desktop as well, when minimized vesktop will silently hibernate it seems, when restored it shortly shows "No Route" and reloads.

I doubt this is related to power saving as my desktop has any options related to that disabled. Interesting to note may be that I seem to encounter this issue a lot more frequently since switching from mainline to linux-tkg (this may be entirely unrelated though, I've made a lot of changes to my system lately and can't quite remember all of them) - Normal discord does not suffer from this issue

RafaelJust commented 4 months ago

I have exactluy the smae issue here. I use Linux mint (Cinnamon DE), and installed it via the .deb file.

0xAnansi commented 4 months ago

After a lot of tries, seems that adding the following while starting Vesktop drastically reduced the number of crashes.

--enable-features=UseOzonePlatform --ozone-platform=wayland

This is obviously only an option if you run Wayland and not X11.

My full options chain, for transparency, is:

--enable-features=UseOzonePlatform,VaapiIgnoreDriverChecks,VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization,UseMultiPlaneFormatForHardwareVideo --ozone-platform=wayland

which also solves a few issues with streaming on my setup.

enscott89 commented 2 months ago

After a lot of tries, seems that adding the following while starting Vesktop drastically reduced the number of crashes.

--enable-features=UseOzonePlatform --ozone-platform=wayland

This is obviously only an option if you run Wayland and not X11.

My full options chain, for transparency, is:

--enable-features=UseOzonePlatform,VaapiIgnoreDriverChecks,VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization,UseMultiPlaneFormatForHardwareVideo --ozone-platform=wayland

which also solves a few issues with streaming on my setup.

Thank you SOOOO much! This fixed my issues!

Vendicated commented 2 months ago

anyone experiencing this issue, try running vesktop with --disable-renderer-backgrounding and see if it fixes it

Vendicated commented 2 months ago

please see https://github.com/Vendicated/Vencord/issues/2478, specifically https://github.com/Vendicated/Vencord/issues/2478#issuecomment-2118886403

Tiagoquix commented 2 months ago

Running Vesktop on Fedora Linux 40 KDE on X11 with the command-line option --disable-renderer-backgrounding seems to fix my issues regarding messages "hibernating"/having a delay (only sending when Vesktop is focused). I don't use Disable Call Idle.

(By the way: https://github.com/Vencord/Vesktop/commit/d3b94fc4df6eec3f93a0689309760e2bb3e96249#commitcomment-142196978)

Vendicated commented 1 month ago

flags disabling backgrounding have been added now, so please test with the latest commit (instructions for running from source are provided in the README) and report back if it is fixed for you

lucasreis1 commented 1 month ago

Still facing this issue with --disable-renderer-backgrounding