Skip to content
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

Videos freeze while audio continues to play in Chrome, Videos, etc. [$10] #121

Closed
cassidyjames opened this issue Oct 5, 2018 · 64 comments
Closed
Labels
Bounty Solve this and claim the bounty! Priority: High To be addressed after any critical issues Status: Confirmed Verified by someone other than the reporter

Comments

@cassidyjames
Copy link
Contributor

cassidyjames commented Oct 5, 2018

From @pbirkbeck on July 9, 2018 4:1

On elementary OS Juno beta videos freeze while watching netflix, youtube etc. Audio continues to play. When I move the mouse around the video resumes playing but freezes a few seconds later without any mouse movement.


There is a $10 open bounty on this issue. Add to the bounty at Bountysource.

@cassidyjames
Copy link
Contributor Author

From @maylton on September 20, 2018 18:44

I've been facing the very same problem. Also, it happens not only while streaming videos, but in vlc and default video player too.

@cassidyjames
Copy link
Contributor Author

From @peteruithoven on September 21, 2018 17:20

There also is a Videos specific issue for this: elementary/videos#93
I personally haven't seen this happen on Youtube, what browser and video did you use?

@cassidyjames
Copy link
Contributor Author

From @irineubruno on September 22, 2018 0:4

Estou com mesmo problema, não pode ser o driver de vídeo ?

@cassidyjames
Copy link
Contributor Author

From @Philip-Scott on September 22, 2018 4:15

I can confirm, but I don't think it's Gala's fault. If we search for "videos freeze until mouse movement" you will find that it's a driver problem :/

@cassidyjames
Copy link
Contributor Author

Can confirm here on two Intel systems. One with 5th gen and the other with I believe 8th gen.

@cassidyjames
Copy link
Contributor Author

From @sebasvisser on October 5, 2018 9:5

Can confirm this also happens on 7th gen i7 on chrome browser

@cassidyjames cassidyjames added this to To Do in Juno Regression Tracking via automation Oct 5, 2018
@cassidyjames cassidyjames changed the title videos freeze while audio continues to play on chrome Videos freeze while audio continues to play in Chrome, Videos, etc. Oct 5, 2018
@kubaplas
Copy link

kubaplas commented Oct 9, 2018

I have the same issue on 6th gen Intel laptop with Youtube on Chrome browser.
4.15.0-36-generic kernel

@Djaler
Copy link

Djaler commented Oct 13, 2018

Same thing with Bomi video player. But only when it in non-fullscreen mode

@PNunesDev
Copy link

I can also confirm that this also happens to me on youtube or any video.
i5 4200u with Intel HD.
Elementary OS Juno 0.5
Kernel: 4.15.0-36-generic

I've started to use Linux recently, but I'm aware Elementary don't usually push kernel updates.
so, this is issue is going to stay in here for the rest of the 2 years of the 0.5 version, or will I need to force a kernel update just like the PRO linux users :P?

@cassidyjames
Copy link
Contributor Author

@PNunesDev elementary OS uses the Ubuntu kernel, which gets frequent updates gets upgraded to newer versions along with the rolling "HWE" stack.

@otavioschwanck
Copy link

Confirm here too.

image

@azhar25git
Copy link

Same here on core-i7 3rd gen...

@otavioschwanck
Copy link

Update:
If you keep moving the mouse, the video don't freeze. Only happens when mouse is stopped.

@kubaplas
Copy link

I've updated the kernel to 4.18.15, didn't help.

@jorge-aparicio
Copy link

I tried updating to the latest mesa drivers also didn't help

@otavioschwanck
Copy link

otavioschwanck commented Oct 18, 2018

Update:
if mouse is out of video, the freeze doesn't happen

@PNunesDev
Copy link

PNunesDev commented Oct 18, 2018

I've updated the kernel to 4.18.15, didn't help.

Well, that's not good, probably the issue is related with intel mesa drivers.
Does intel contain any easy update system for their GPU drivers?

EDIT: Nevermind, somebody replied that updating Mesa didn't helped either.

@otavioschwanck
Copy link

I have ubuntu 18.04 and mint 19 (same base, kernel and drivers), and this issue occurs.

@leonidasv
Copy link

leonidasv commented Oct 18, 2018

Core 7th gen, HD graphics 620 here, same issue.

Tried upgrading to kernel 4.18.0 and 4.18.15 but this same issue continues haunting me.

I think it's not a driver problem, but Gala's compositor one. I've never had this issue using Gnome.

For example:
I managed to make a video stop freezing by holding a Terminal window in front of it, with the beam animation. While the animation was playing on the Terminal window, the video on the browser behind it played smoothly. But, once the beam animation stopped (it automatically pauses after some seconds), almost instantly, the video also froze.

I think it's related to the Gala screen refresh rate. If there's no event coming from the system UI to force it redraw the screen every 1/60 second (in a 60hz display) for quite some time, it freezes and await for the next system event forcing it to redraw. This looks like a trick to save power, but this side-effect is annoying.

I opened an issue on Gala repo: elementary/gala#368

@danirabbit danirabbit changed the title Videos freeze while audio continues to play in Chrome, Videos, etc. Videos freeze while audio continues to play in Chrome, Videos, etc. [$10] Oct 18, 2018
@danirabbit danirabbit added the Bounty Solve this and claim the bounty! label Oct 18, 2018
@jorge-aparicio
Copy link

Update videos play perfectly for some reason in firefox not sure what makes it different but its a temporary solution for online video at least

@otavioschwanck
Copy link

Confirmed: On firefox, all works well.

@touchwood99
Copy link

Issue exists for me in Firefox - not in Chromium.
When selecting full screen in Youtube, display freezes. Audio continues playing.
Escape key has the screen flashing.
Its as though the GPU is not being used.

@MichelFrade
Copy link

Same issue here too.
captura de tela de 2018-10-19 18-34-16

@mnavarrocarter
Copy link

@PNunesDev You can just create it :)

@cryptowyrm
Copy link

@mnavarrocarter Your link says to put the file into /usr/share/X11/xorg.conf.d not /etc/X11/xorg.conf.d, and that folder actually exists already and has a few files in it, so might it be better to put the file there? The Linux folder structure is still a mystery to me for the most part so maybe there is a good reason for using /etc instead :)

One concerning issue is that the comments in your link say this increases the CPU load considerably, if true this might not be the perfect solution yet unless it's the only one that ends up working for everyone.

@PNunesDev
Copy link

I've used the /usr/share/X11/xorg.conf.d folder and it worked immediatally.
As for the increased CPU load, it makes sense since GPU decoding probably gets disabled in videos and CPU needs to render it instead which is WAYYY less efficient.

Let's just hope this gets fixed quick.
If this gets fixed in the future, let me us know so we can roll back the changes and take advantage of the GPU decode ... again!
Thanks

@mnavarrocarter
Copy link

AFAIK, X reads from both directories. The usr one is for the default config and the etc one is for custom. That's all I know I'm afraid. 😝

Cannot really comment in your second issue though. I don't have any benchmarks for that.

@yarbsemaj
Copy link

Can confirm that @mnavarrocarter method works however playing a 1080p youtube video causes my cpu to almost top out

@jorge-aparicio
Copy link

Using @mnavarrocarter works somewhat for me the high cpu usage still causes frame drops and stutters on my xps 13 using youtube on chrome

@jeanvcastro
Copy link

I can confirm @mnavarrocarter solution fixed the problem for me.

elementary OS 5.0 Juno (64-bit)
Built on Ubuntu 18.04 LTS
Linux 4.15.0-38-generic
GTK+ 3.22.30

Dual Core Intel® Core™ i5-5300U CPU @ 2.30GHz
Intel Corporation HD Graphics 5500 (rev 09)

@jorge-aparicio
Copy link

After more experimentation I have determined that the high cpu usage of the fix prevents me from playing 1080p 60fps videos on youtube and stutters with 720p fps videos which is not an issue I've had on other distros i.e. manjaro so while this helps a bit I wouldnt call it a fix. XPS 13 9360 7th gen I7 intel 620 graphics

@anarrestee
Copy link

anarrestee commented Nov 11, 2018

Does anyone know if we can expect a permanent fix from stable updates? Or would you advice to use the workarounds available, like the one suggested by @mnavarrocarter?

(Edit) @mnavarrocarter's workaround fixed it for me in Netflix and Youtube (Chrome). But issue persists in elementary's Videos app.

elementary OS 5.0 Juno (64-bit)
Built on Ubuntu 18.04 LTS
Linux 4.15.0-38-generic
GTK+ 3.22.30

Dual-Core Intel® Core™ i7-3537U CPU @ 2.00GHz
NVIDIA Corporation GK107M [GeForce GT 740M] (rev a1)

@belizeno
Copy link

I can confirm this works on my computer. There needs to be a permanent fix though. Elementary Os is as perfect an OS as you can get, with this one tiny glitch messing things up on Intel Graphics HD Machines.

screenshot from 2018-11-13 13-57-48

@anarrestee
Copy link

After installing Firefox and VLC and testing the issue again, I can confirm (in my machine) it persists and seems confined to Videos app, even after using @mnavarrocarter solution.

@okitoxo
Copy link

okitoxo commented Nov 14, 2018

I have the same problem. I found that the video works fluid if i do use Picture in Picture feature over youtube video and the original video is in other working area.

@abdullahgira
Copy link

abdullahgira commented Nov 14, 2018

@mnavarrocarter solution works fine for videos, but this issue is not with videos only, I have this issue while downloading on mega.nz or when loading a website the loading icon stops and doesn't show any content on the page unless I move the mouse, for mega.nz the download progress doesn't show any update unless I move the mose
screenshot from 2018-11-15 00-28-45

@viniciusn
Copy link

viniciusn commented Nov 15, 2018

Same here, doesn't happen on Mozilla or Epiphany. Only Chrome, Chromiun or Opera.

@hunboy723
Copy link

Kaffeine works on the first screen.

@abdullahgira
Copy link

Connecting external monitor with @mnavarrocarter solution doesn't solve the problem.

@Livotch
Copy link

Livotch commented Nov 27, 2018

I had the same problem on Chrome, I disabled "Use hardware acceleration when available" in Chrome settings, it works fine now.

@BoredGitTechie
Copy link

i have the same issue with freezing, did the same as Livotch did a while ago and fixed on steam but found out that it affects games aswell as chrome, cant play some games only using a controller as it freezes and starts moving again when i move the mouse, rendering my controller pointless. do we have any fixes for this or is the freezing a dead end?

@elementary elementary deleted a comment from Victor-Arruda Nov 30, 2018
@elementary elementary deleted a comment from michaelsboost Dec 2, 2018
@elementary elementary deleted a comment from pushqrdx Dec 2, 2018
@elementary elementary deleted a comment from trieutulong89 Dec 2, 2018
@tintou tintou added the Status: Confirmed Verified by someone other than the reporter label Dec 5, 2018
@elementary elementary locked as too heated and limited conversation to collaborators Dec 5, 2018
@elementary elementary deleted a comment from viniciusn Mar 3, 2019
@danirabbit
Copy link
Member

Closing because this appears to have been fixed in Ubuntu

Juno Regression Tracking automation moved this from To Do to Done Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bounty Solve this and claim the bounty! Priority: High To be addressed after any critical issues Status: Confirmed Verified by someone other than the reporter
Projects
No open projects
Development

No branches or pull requests