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

Video only shows single frame #69

Open
dylanmtaylor opened this issue Aug 13, 2014 · 88 comments
Open

Video only shows single frame #69

dylanmtaylor opened this issue Aug 13, 2014 · 88 comments
Assignees
Labels
Milestone

Comments

@dylanmtaylor
Copy link

@dylanmtaylor dylanmtaylor commented Aug 13, 2014

OS: Linux Mint 17 Qiana 64-bit Cinnamon edition
GPU: Geforce 550M

The video for the songs playing only show a single frame, which is the first frame received. When the video is resized, the frame is updated every part of the resize animation, and once after it is resized. The frame is not updated while the size of the video is not being refreshed, if that makes any sense.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/3695416-video-only-shows-single-frame?utm_campaign=plugin&utm_content=tracker%2F3178491&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F3178491&utm_medium=issues&utm_source=github).
@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Aug 13, 2014

I'm facing the same issue. Wasn't the case before, it started recently.
I am sure this is Linux specific

@5punk 5punk added Linux labels Aug 13, 2014
@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Aug 14, 2014

Same issue here. Ubuntu Gnome 14.04, Nvidia GTX 660Ti.

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Aug 15, 2014

@EragonJ here

@5punk 5punk added the Urgent label Aug 15, 2014
@C3realGuy

This comment has been minimized.

Copy link

@C3realGuy C3realGuy commented Aug 19, 2014

Same here, Ubuntu 14.04.

@5punk 5punk added this to the 0.7.0 milestone Aug 21, 2014
@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Aug 21, 2014

@C3realGuy @Rknqnk
Can anyone here confirm that they see this in the developer console?
(process:13448): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
or something?

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Aug 21, 2014

I can't see that message but I have other 4 errors on the console:
When playing a video:

VIDEOJS: 
DOMException {message: "Failed to set the 'currentTime' property on 'HTMLM…ement': The element's readyState is HAVE_NOTHING.", name: "InvalidStateError", code: 11, stack: "Error: Failed to set the 'currentTime' property on…mium.Ivpd1M/js/vendor/jquery-2.1.1.min.js:3:3179)", INDEX_SIZE_ERR: 1…}
code: 11
message: "Failed to set the 'currentTime' property on 'HTMLMediaElement': The element's readyState is HAVE_NOTHING."
name: "InvalidStateError"
stack: "Error: Failed to set the 'currentTime' property on 'HTMLMediaElement': The element's readyState is HAVE_NOTHING.↵    at Error (native)↵    at t.Kd (file:///tmp/.org.chromium.Chromium.Ivpd1M/js/vendor/video-js/video.js:105:92)↵    at V (file:///tmp/.org.chromium.Chromium.Ivpd1M/js/vendor/video-js/video.js:59:80)↵    at t.currentTime (file:///tmp/.org.chromium.Chromium.Ivpd1M/js/vendor/video-js/video.js:60:150)↵    at PlayTrack (file:///tmp/.org.chromium.Chromium.Ivpd1M/js/app.js:1:14449)↵    at HTMLDivElement.<anonymous> (file:///tmp/.org.chromium.Chromium.Ivpd1M/js/app.js:1:22921)↵    at HTMLDivElement.n.event.dispatch (file:///tmp/.org.chromium.Chromium.Ivpd1M/js/vendor/jquery-2.1.1.min.js:3:6404)↵    at HTMLDivElement.r.handle (file:///tmp/.org.chromium.Chromium.Ivpd1M/js/vendor/jquery-2.1.1.min.js:3:3179)"
__proto__: DOMException
 Video is not ready. (Video.js)

and these three are always there:

This module is meant to be used by cli. If you want to use ytdl programmatically, visit https://github.com/fent/node-ytdl-core
Failed to load resource: net::ERR_FILE_NOT_FOUND file:///tmp/.org.chromium.Chromium.Ivpd1M/featured-music/spain.json
failed to fetch spain.json app.js:1

Hope that helps.
Let me know if I can do anything else to help.

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Aug 22, 2014

Unfortunately, these are exceptions and log messages. They dont have anything to do with the current issue. I am continuously looking at how and why this must be happening. please report any other symptoms / evidence you come across.

@MintyX

This comment has been minimized.

Copy link

@MintyX MintyX commented Aug 23, 2014

I am having the same issue on Arch 64-bit and I installed it via the AUR. Here is what I get in the terminal:

[5308:0823/121210:INFO:CONSOLE(1)] ""This module is meant to be used by cli. If you want to use ytdl programmatically, visit https://github.com/fent/node-ytdl-core"", source: /tmp/.org.chromium.Chromium.Du017e/node_modules/ytdl/index.js (1)
[5308:0823/121213:INFO:CONSOLE(23)] ""VIDEOJS:" {"message":"Failed to set the 'currentTime' property on 'HTMLMediaElement': The element's readyState is HAVE_NOTHING.","name":"InvalidStateError","code":11,"stack":"Error: Failed to set the 'currentTime' property on 'HTMLMediaElement': The element's readyState is HAVE_NOTHING.\n    at Error (native)\n    at t.Kd (file:///tmp/.org.chromium.Chromium.Du017e/js/vendor/video-js/video.js:105:92)\n    at V (file:///tmp/.org.chromium.Chromium.Du017e/js/vendor/video-js/video.js:59:80)\n    at t.currentTime (file:///tmp/.org.chromium.Chromium.Du017e/js/vendor/video-js/video.js:60:150)\n    at PlayTrack (file:///tmp/.org.chromium.Chromium.Du017e/js/app.js:1:6869)\n    at HTMLDivElement.\u003Canonymous\u003E (file:///tmp/.org.chromium.Chromium.Du017e/js/app.js:1:17837)\n    at HTMLDivElement.n.event.dispatch (file:///tmp/.org.chromium.Chromium.Du017e/js/vendor/jquery-2.1.1.min.js:3:6404)\n    at HTMLDivElement.r.handle (file:///tmp/.org.chromium.Chromium.Du017e/js/vendor/jquery-2.1.1.min.js:3:3179)"} "Video is not ready. (Video.js)"", source: file:///tmp/.org.chromium.Chromium.Du017e/js/vendor/video-js/video.js (23)

Not sure how relevant this output is.

@stevedude

This comment has been minimized.

Copy link

@stevedude stevedude commented Aug 28, 2014

Similar to MintyX and Rknqnk code examples, a VIDEO.JS error, however mine begins with a "Failed to set CurrentTime on the HTMLMediaElement. It then restates the error at the HTMLDivElement as shown below:

""VIDEOJS:" {"message":"Failed to set the 'currentTime' property on 'HTMLMediaElement': The element's readyState is HAVE_NOTHING.","name":"InvalidStateError","code":11,"stack":"Error: Failed to set the 'currentTime' property on 'HTMLMediaElement': The element's readyState is HAVE_NOTHING.\n at Error (native)\n at t.Kd (file:///tmp/.org.chromium.Chromium.Wl6oDL/js/vendor/video-js/video.js:105:92)\n at V (file:///tmp/.org.chromium.Chromium.Wl6oDL/js/vendor/video-js/video.js:59:80)\n at t.currentTime (file:///tmp/.org.chromium.Chromium.Wl6oDL/js/vendor/video-js/video.js:60:150)\n at PlayTrack (file:///tmp/.org.chromium.Chromium.Wl6oDL/js/app.js:1:6869)\n at HTMLDivElement.\u003Canonymous\u003E (file:///tmp/.org.chromium.Chromium.Wl6oDL/js/app.js:1:17837)\n at HTMLDivElement.n.event.dispatch (file:///tmp/.org.chromium.Chromium.Wl6oDL/js/vendor/jquery-2.1.1.min.js:3:6404)\n at HTMLDivElement.r.handle (file:///tmp/.org.chromium.Chromium.Wl6oDL/js/vendor/jquery-2.1.1.min.js:3:3179)"} "Video is not ready. (Video.js)"", source: file:///tmp/.org.chromium.Chromium.Wl6oDL/js/vendor/video-js/video.js (23)

@Eskorpio

This comment has been minimized.

Copy link

@Eskorpio Eskorpio commented Aug 29, 2014

Same issue here. Ubuntu Gnome 14.04, Intel HD Graphics 4600.

@EragonJ

This comment has been minimized.

Copy link
Member

@EragonJ EragonJ commented Aug 30, 2014

@5punk does this still happen on linux there with latest build ? I can't see this and there is no user complaining this on Mac

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Aug 30, 2014

Same error with the latest build 0.6.5 (Ubuntu Gnome 14.04, GTX 660Ti).

VIDEOJS: 
DOMException
code: 11
message: "Failed to set the 'currentTime' property on 'HTMLMediaElement': The element's readyState is HAVE_NOTHING."
name: "InvalidStateError"
stack: "Error: Failed to set the 'currentTime' property on 'HTMLMediaElement': The element's readyState is HAVE_NOTHING.↵    at Error (native)↵    at t.Kd (file:///tmp/.org.chromium.Chromium.HdhjjE/js/vendor/video-js/video.js:105:92)↵    at V (file:///tmp/.org.chromium.Chromium.HdhjjE/js/vendor/video-js/video.js:59:80)↵    at t.currentTime (file:///tmp/.org.chromium.Chromium.HdhjjE/js/vendor/video-js/video.js:60:150)↵    at PlayTrack (file:///tmp/.org.chromium.Chromium.HdhjjE/js/app.js:1:6869)↵    at HTMLDivElement.<anonymous> (file:///tmp/.org.chromium.Chromium.HdhjjE/js/app.js:1:17837)↵    at HTMLDivElement.n.event.dispatch (file:///tmp/.org.chromium.Chromium.HdhjjE/js/vendor/jquery-2.1.1.min.js:3:6404)↵    at HTMLDivElement.r.handle (file:///tmp/.org.chromium.Chromium.HdhjjE/js/vendor/jquery-2.1.1.min.js:3:3179)"
__proto__: DOMException
 Video is not ready. (Video.js) 
@EragonJ

This comment has been minimized.

Copy link
Member

@EragonJ EragonJ commented Aug 30, 2014

@Rknqnk i didn't mean 0.6.5 but the one built from latest source code from our repo, did you build with latest source code ?

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Aug 30, 2014

I'm going to and let you know.

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Aug 30, 2014

Just build from source, still the same error.

@EragonJ

This comment has been minimized.

Copy link
Member

@EragonJ EragonJ commented Aug 30, 2014

ok thanks @Rknqnk. @5punk & @avihaymenahem please give it a check when you guys have time.

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Aug 30, 2014

I've recorded a video to show you the behaviour:

Frozen Video BUG

Hope it helps.

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Aug 30, 2014

@EragonJ this still happens, and only on linux.
I made a new test project with webkit and my thoughts are the new version of chromium for the latest nodewebkit might not be handling html5 videos properly :/

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Aug 30, 2014

nwjs/nw.js#2181 video issue is only for linux users. chromium messed up :/
any thoughts guys?

@EragonJ

This comment has been minimized.

Copy link
Member

@EragonJ EragonJ commented Aug 31, 2014

If this is confirmed, does it work well on 0.10.2 ? if not, let's keep this open and for next release after nw fixed this.

@Werner1201

This comment has been minimized.

Copy link

@Werner1201 Werner1201 commented Sep 2, 2014

guys i'm having the same problem but I fixed using the developer tool and mark the option on the rendering tab enable continuous page repainting and the video will play the whole video BUT DON'T CLOSE because if you close will stop to play the video ,here the screenshot
captura de tela de 2014-09-02 14 55 05

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 2, 2014

@Werner1201 Dude, thats really interesting. Let's see how we can programmatically do it.

@Werner1201

This comment has been minimized.

Copy link

@Werner1201 Werner1201 commented Sep 2, 2014

Sure, just a thing (I'm not american so my english is bad ) I was searching into the developer console like a nub when I saw the rendering tab I Thoght was that the problem then a I select everything ,but i saw what I've done to video start to play .I was that if I my explanation was good please tell me

@Werner1201

This comment has been minimized.

Copy link

@Werner1201 Werner1201 commented Sep 2, 2014

I tired this one hour ago

@Werner1201

This comment has been minimized.

Copy link

@Werner1201 Werner1201 commented Sep 2, 2014

enable continuous page repainting I think is that you have to check on the developer tool

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 2, 2014

Holy shit, this kid fixed it!

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 5, 2014

well since Chromium started this new thing against all gpus, rather we have video work for most than none. Video acceleration is needed for Video tags and smooth videos.

@NadyaNayme

This comment has been minimized.

Copy link
Contributor

@NadyaNayme NadyaNayme commented Sep 5, 2014

I'm not going to argue this because I don't think having the flag enabled will affect anyone (again: Based on what I've researched so far and a majority of users having no issues with the flag enabled)

It's just something to keep in mind if X months down the line we have an issue with a user on Linux having their GPU crash/system hang whenever they try to use Atraci.

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Sep 5, 2014

I've downloaded again, latest source, build , but still the same problem. I'm the only one with the issue now? anyone apart from @5punk had success with the latest code and video issue?

If it helps, I'm using Ubuntu GNOME 14.04 x64 , NVIDIA GTX 660 Ti, 3.13.0-12 Kernel.

@5punk could you upload the build you tested and worked?

Thanks in advance.

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 5, 2014

@Rknqnk could you please confirm that the line
--ignore-gpu-blacklist exists in your Gruntfile.json

'./cache/0.10.1/linux32/nw . --debug --ignore-gpu-blacklist',
'./cache/0.10.1/linux64/nw . --debug --ignore-gpu-blacklist'

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Sep 5, 2014

@5punk , yes was the first thing I checked before I build again, Gruntfile.coffee is the file you are referring to isn't it? Lines 42 and 43.

The ones added on this commit:
2f3aa32

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 5, 2014

yes
is it there?

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Sep 5, 2014

Yes there are.

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 5, 2014

Can you delete the folders build and cache and build again?

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Sep 5, 2014

Same result still not working.

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 5, 2014

I don't know how it is working for me :/

@dhead666

This comment has been minimized.

Copy link

@dhead666 dhead666 commented Sep 6, 2014

Initiating Atraci (0.6.5) with --ignore-gpu-blacklist does works for me, video playing fine.

Not sure what details needed but I'm on Arch Linux, kernel 3.17rc3, intel-dri/mesa 10.2.6, xf86-video-intel 2.99.914, Intel Celeron 2955U (Acer C720).

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Sep 6, 2014

@dhead666 It works for me too adding the line manually to the command line or to the shortcut, what we are trying to do is to pass that argument to node-webkit , using package.json or Gruntfile.coffee in order to make it permanent, but apparently there is a bug in node-webkit that make it ignore that argument.

@dhead666

This comment has been minimized.

Copy link

@dhead666 dhead666 commented Sep 6, 2014

@Rknqnk Thanks, I've built the latest commit on master and video is still broken.

A side note: how the hell the git repo is so huge.

@avihaymenahem

This comment has been minimized.

Copy link
Member

@avihaymenahem avihaymenahem commented Sep 7, 2014

The repo is huge because of the commits history, need to check how to remove this crap :)
(By the way, @dhead666 thanks for the review 👍 )

@dhead666

This comment has been minimized.

Copy link

@dhead666 dhead666 commented Sep 7, 2014

@avihaymenahem you'e welcome, thanks for starting this great project. :)

@fancycode

This comment has been minimized.

Copy link

@fancycode fancycode commented Sep 8, 2014

I just added nwjs/nw.js#2311, could you please check if this fixes adding --ignore-gpu-blacklist through the package.json for you?

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 8, 2014

@fancycode OMG
Testing.

@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Sep 15, 2014

FFS!
This is still working for me. I just purged the entire repo and cloned again!!!

@dhead666

This comment has been minimized.

Copy link

@dhead666 dhead666 commented Sep 16, 2014

Doesn't work for me.
Tried both latest commit and 0.6.5 with node-webkit 0.10.5 (bumped in Gruntfile.coffee) and no change.

@dhead666

This comment has been minimized.

Copy link

@dhead666 dhead666 commented Sep 27, 2014

I had some time today to try it again with

  • node-webkit 0.10.5.
  • Atraci latest commit.

Adding --ignore-gpu-blacklist flag via

  • Gruntfile.coffee: video isn't played correctly.
  • package.json: video played correctly.
@5punk

This comment has been minimized.

Copy link
Contributor

@5punk 5punk commented Oct 17, 2014

I can confirm this does not happen anymore on multiple linux systems. 10.1 node webkit is currently being used. Can anyone else confirm this?

@manoflinux

This comment has been minimized.

Copy link

@manoflinux manoflinux commented Oct 19, 2014

here is how I compiled atraci and made a shell script to fix the issue.
even after compiling from source it was still broken and I looked in the gruntbuild.coffee file,
The changes were there they just did not seem to be taking affect.
so I wrote this shell script, it assumes you copied the entire contents of the Atraci-master folder after compiling to ~/atraci

#!/bin/bash
~/atraci/cache/0.10.1/linux64/nw . --debug --ignore-gpu-blacklist

@manoflinux

This comment has been minimized.

Copy link

@manoflinux manoflinux commented Oct 19, 2014

#these instructions are for (k)ubuntu, I used 14.04 64 bit, but it should work with any of them.
#frist install nodejs.

curl -sL https://deb.nodesource.com/setup | sudo bash -

The PPA will be added to your configuration and your local package cache will be updated automatically. After running the setup script from nodesource, you can install the Node.js package in the same way that you did above:

sudo apt-get install nodejs

The nodejs package contains the nodejs binary as well as npm, so you don't need to install npm separately. However, in order for some npm packages to work (such as those that require building from source), you will need to install the build-essentials package:

sudo apt-get install build-essential

#install ruby

#this is a ruby installer called rails ready which takes care of most of it for you. takes awhile to compile ruby.
wget --no-check-certificate https://raw.githubusercontent.com/joshfng/railsready/master/railsready.sh && bash railsready.sh

sudo gem install compass

#then download the lastest atraci master file from github.
wget -O Atraci-master.zip https://github.com/Atraci/Atraci/archive/master.zip
unzip Atraci-master.zip
cd Atraci-master #frist install nodejs.

curl -sL https://deb.nodesource.com/setup | sudo bash -

The PPA will be added to your configuration and your local package cache will be updated automatically. After running the setup script from nodesource, you can install the Node.js package in the same way that you did above:

sudo apt-get install nodejs

The nodejs package contains the nodejs binary as well as npm, so you don't need to install npm separately. However, in order for some npm packages to work (such as those that require building from source), you will need to install the build-essentials package:

sudo apt-get install build-essential

#install ruby

#this is a ruby installer called rails ready which takes care of most of it for you. takes awhile to compile ruby.
wget --no-check-certificate https://raw.githubusercontent.com/joshfng/railsready/master/railsready.sh && bash railsready.sh

sudo gem install compass

#then download the lastest atraci master file from github.
wget -O Atraci-master.zip https://github.com/Atraci/Atraci/archive/master.zip
unzip Atraci-master.zip
cd Atraci-master
npm install -g grunt-cli
npm install
grunt
grunt build

@dhead666

This comment has been minimized.

Copy link

@dhead666 dhead666 commented Oct 19, 2014

@5punk can you please elaborate, with v0.6.5 and node-webkit 10.1 video still not played for me on updated Arch Linux (mesa/mesa-dri 10.3.1, xorg-server 1.16.1, xf86-video-intel 2.99.916).
It didn't worked also last time I checked with master branch.

@manoflinux
I just apply this to v0.6.5.

@Rknqnk

This comment has been minimized.

Copy link

@Rknqnk Rknqnk commented Oct 21, 2014

I still have the same issue, or am I doing something wrong or this is not fixed in the source code.

I clone the latest code from the repo, build as it comes and same issue.

@jedevc

This comment has been minimized.

Copy link

@jedevc jedevc commented Nov 5, 2014

I'm having this problem too. Is there a solution?

@airon90

This comment has been minimized.

Copy link

@airon90 airon90 commented Jan 23, 2015

@jechadwell99 It seems that there is a solution for Ubuntu users, but not for other OS users, like me because I'm using Arch Linux and this bug is still present in Atraci v. 0.7.0.
I hope that the solution will be integrated at least into the next version of Atraci!

@fa7ad

This comment has been minimized.

Copy link

@fa7ad fa7ad commented Jan 27, 2015

I fixed mine by compiling against the latest nwjs (0.12.0-alpha2) and adding

"chromium-args" : "--ignore-gpu-blacklist"

to package.json

BTW, I used the latest version from the git repo (0.7.0) and I'm on Fedora 21 amd64

Feel free to clone my fork and/or merge my pull request (#252) 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.