-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: App stops playing (pauses) when it goes to background #4899
Comments
Same here on Ubuntu 22.04 and with Freetube v0.20.0 Beta installed from official download (https://github.com/FreeTubeApp/FreeTube/releases/download/v0.20.0-beta/freetube_0.20.0_amd64.deb). The pausing does not occur instantly, it takes sometimes a few dozens of seconds, but it always stops. The pausing does not occur if there is a Freetube window not in background, even if it is not the window which is playing. |
Can confirm the same in the snap package with the latest version. Terminal logs,maybe relevant ?
|
I also do not know if those errors are relevant or not. But I'm seeing a similar error messages as well:
(in my case: Flatpak version of Freetube 0.20 Beta installed, on Linux (Fedora 40 Beta and Gnome 46) A little searching gave me the impression these messages relate to an upstream issue in Electron and/or Chromium. |
Same bug here. Ubuntu 23.04, installed from the download page (AppImage version)
These are still showing up when the window is visible but unfocused (on a second monitor) but playback is NOT interrupted These also show up on a single-monitor setup when the app loses focus. In that case, it does stop playback |
@JoshuaMacklin could you maybe look into this? There have been allot of bug reports opened since release that are all linux (some also exclusive to flatpak) related. To see all the issue use label filter OS: linux |
I can take a look into this next week when I am free, I also only noticed this after the 0.20 update, can’t believe it’s anything related to the flathub version changes we’ve recently made as I’ve had them back ported to 0.19 for months
|
I'm on latest release from flatpak and am having same issue on fedora 39, app stops playing until it is focused. |
Hello, I have the same problem on arch linux with the AUR package. |
Just wanted to confirm that I'm experiencing the same issue. This can be easily reproduced on KDE by switching to another virtual desktop, which would cause the video to stop playing after a while (and sporadically play-stop-play), despite it being on the foreground in the other virtual desktop. |
Very well could be originating from upstream electron as more people on linux specifically are commenting on it recently. However I did notice on Bazzite Gnome (Gaming oriented Fedora Silverblue w/ extra packages) is not affected even in background and another workspace for an hour. However they do add extra VRR / Video Syncing packages that may be fixing the vsync / sync issues that are arising for others on more stock linux operating systems. My ask to the others that are running into this problem, are you all getting the same https://github.com/FreeTubeApp/FreeTube/actions/runs/8753729711 |
Could you give more details? |
Well, actually. Now I have another problem. When I launch the application, it quits directly. There's this error in the terminal: |
@fadri14 But this is offtopic, could you provide more details on your setup for the main problem discussed here? |
@toby63
Besides, I don’t use desktop environment. I use sway window manager |
In my case no. I'm on a Dell XPS laptop with a 60 hz FHD display. |
experiencing the same issue on Flatpak version on Fedora 40 with Plasma 6. |
experiencing the same issue on Flatpak verision on Manjaro latest with Gnome 46 |
Same here. Been having these issues for weeks, even with the latest FreeTube v0.20.0 Beta (Flatpak). System Details ReportReport details
Hardware Information:
Software Information:
System logsNo related logs in Frontend logsThe only line popping out is:
Not sure if it is related. Frontend eventsLogging events like onvisibilitychange shows that the frontend is not able to use these to distinguish between the window getting minimized or losing focus:
|
Yes to the log question, and yes to owning an HRR screen. However, this issue still occurs when my 165hz monitor is not connected. My laptop's built-in display runs at 60hz Using the build you linked, I am still experiencing the same issues. When the application is in the background, I get long periods of buffering, then a few seconds of audio... then more buffering. In addition, I tried on the most recent build and still get the issue here |
I can confirm that the terminal log shows up. Edit: Just wanted to say, Freetube is a critical software due to my heavy usage for studying. I thank all the contributors and maintainers for developing such a GOATed project :) |
I also think it is most likely the electron version causing this issue. |
Any updates on this? It is so freaking annoying. |
Maybe someone just needs to update the electron version of the Flatpak to 29. Seems to be at 23.08 right now: |
That base version is unrelated to the actual Electron version See documentation: And repo that base version is linked to: |
For other people with this issue who absolutely need freetube, a workaround i am using for now is disabling hardware acceleration. There doesn't seem to be a setting to change this (or at least i haven't found it) so I added It's probably not ideal for less powerful cpus, but at least it works (fedora kde wayland) |
Hello, I’m on arch linux with wayland, I just updated to v0.21.0 Beta. I confirm that the problem persists, namely, the music stops when the application is no longer displayed on the screen. I downloaded the application from the AUR. |
Hi, I am sorry. |
Could you please explain this process a little more? |
@fernandobom92 |
The same thing happens here on Ubuntu 24.04, it stops after a while, over and over again. Downloaded from the Ubuntu App Center. |
Thank you my friend, I will do that! |
I'm on Fedora KDE 40, if I do this the application won't start, running it from the terminal says |
@gianmarcogg03 |
You mean my desktop? It's Plasma 6.1 so it is Wayland.
The application starts but the player pause problem isn't solved, likely because it's still using X11 since it has access to it. |
Sorry I don’t know how to help you. |
I just found a solution myself: leave only the Wayland socket on and add an environment variable called |
Found a new problem: now when I want to fullscreen a video, FreeTube crashes. |
Same underlying issue as #5304 |
This fixed it for me. Installed flatseal with-- It's not perfect, though. Mouse is incredibly small when in the window. And in full-screen mode, it doesn't quite get the window right. Neither are show stoppers and much prefer having FT being able to play in the background. |
Snap maintainer here, The fix will be pushed to stable channel soon. Tested, it does solve the problem in my use-case, any queries & issues regarding snap version are welcome at: https://bugs.launchpad.net/freetube |
Fedora 40 running Gnome on my laptop (Wayland) and Fedora 38 running Plasma on my desktop (X11). On F40 Gnome/Wayland On F38 KDE/X11. This looks like it confirms that the bug is Wayland related. But again, even on Wayland, Freetube works in the background, with multiple windows over it, as long as it is in the same workspace. Hope it helps, thank you for the terrific work, this app is the best thing since the invention of the holes in the Emmental cheese. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Appears too in Fedora 40/wayland/gnome with the Flatpak version v0.21.3 Bêta |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
The problem persists while running on X11/Xwayland. By forcing the app to run on Wayland, it does the trick but all Freetube windows (including in full screen) get offset. Using PIP mode also works on both X11and Wayland. |
I have been experiencing this issue too. The workaround is not working anymore. Is there any plan for Wayland support? |
I can confirm that this still happens on Wayland on freetube v0.22 |
It starts after several minutes and shows only white screen, although audio runs with Wayland only socket enabled. |
Guidelines
Describe the bug
Expected Behavior
app should not stop playing but it does
Issue Labels
feature stopped working
FreeTube Version
v0.20.0 Beta
Operating System Version
Debian testing
Installation Method
Flathub
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
No response
Additional Information
No response
Nightly Build
The text was updated successfully, but these errors were encountered: