You are not logged in.

#1 2014-05-07 23:06:14

MegaLoler
Member
Registered: 2012-06-15
Posts: 16

Luakit and Uzbl crash on Youtube with HTML5

I open Uzbl or Luakit, go to youtube, find a video that works with the HTML5 player, and try to play it.  First off, the video is black, although there is sound.  The player controls, the loading circle in the middle, and clicking to pause/play work fine, but the video itself is black.  After about 10 seconds, it segmentation faults.

However, it works fine using the regular flash player.
And it happens with both Uzbl and Luakit but not with Chromium, so maybe it's not webkit related.
I'm totally new to these browsers, and I have never seen either of them play the videos properly on my machine.

gdb backtrace: http://pastebin.com/q1XckXW7  It ends with libcairo.so.2.

Other bits of info in case it might have anything to do with anything:
Running linux kernel 3.14.1-1-ARCH.
I'm using Nouveau graphics drivers.
According to pacman, I have cairo-1.12.16-1.
I use xcompmgr.
My window manager is i3.

Offline

#2 2014-05-08 00:17:43

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Luakit and Uzbl crash on Youtube with HTML5

The bug was reported to the webkit people, who in turn told the reporter to report it to the cairo people, and I have no idea who is doing anything about it. It did start around the last webkit upgrade in Arch.

Offline

#3 2014-05-08 02:13:50

MegaLoler
Member
Registered: 2012-06-15
Posts: 16

Re: Luakit and Uzbl crash on Youtube with HTML5

Oh okay, thank you.

In the meantime, is there any way I can downgrade to a version that works?  I messed around with older versions of webkit and luakit from the Arch Rollback Machine, but I still had problems.  Is there any idea of which versions of which packages I should specifcally downgrade to?

Offline

#4 2014-05-08 02:23:50

henriqueleng
Member
Registered: 2014-02-18
Posts: 77

Re: Luakit and Uzbl crash on Youtube with HTML5

The same problem happem with me. Whit any webkit web browser.

I already created a topic https://bbs.archlinux.org/viewtopic.php?id=179876 and i didn't solved the problem.

I can't found a lightweight web browser that don't use webkit.

Please, if you solve the problem, tell me!


Emacs - tmux - Cmus - Mutt - Lynx/w3m - ....

Offline

#5 2014-05-08 02:41:00

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Luakit and Uzbl crash on Youtube with HTML5

MegaLoler wrote:

In the meantime, is there any way I can downgrade to a version that works?  I messed around with older versions of webkit and luakit from the Arch Rollback Machine, but I still had problems.  Is there any idea of which versions of which packages I should specifcally downgrade to?

It seems like it started when Arch went from the 1.10.x series to the current series of webkit.  Although, I rarely watch anything on youtube, so my timing may be off.

**EDIT**

This is a huge edit. The 1.10.x upgrade happened for the GTK2 series, but GTK3 was already in the newer branches. So my best guess right now is at one of the last two updates, which would mean the 2.4.x series.

Last edited by skottish (2014-05-08 02:47:02)

Offline

#6 2014-05-08 04:13:16

MegaLoler
Member
Registered: 2012-06-15
Posts: 16

Re: Luakit and Uzbl crash on Youtube with HTML5

Well I tried every version of webkitgtk2 (seeing as that's the one luakit has listed under dependencies) that was in the Arch Rollback Machine, and none of them worked.  The oldest version acted differently, simply freezing on the youtube page.  I wanted to try downgrading gtk2 and glib2, but pacman gave me errors when I tried that.

Offline

#7 2014-05-08 05:08:09

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Luakit and Uzbl crash on Youtube with HTML5

Try to downgrade gstreamer and maybe cairo, too.

Last edited by progandy (2014-05-08 05:08:39)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#8 2014-05-27 00:21:51

Devcon
Member
Registered: 2010-03-07
Posts: 9

Re: Luakit and Uzbl crash on Youtube with HTML5

I don't have much of use to add, but I'm experiencing the same with Dwb/Surf.  I've tried with both webkit 2.2.6 as well as 2.4.1.

I did get a bit further with 2.4 in that Youtube videos begin to play for a few seconds before the crash.  I'll update this post with more if I discover anything that might help.

Last edited by Devcon (2014-05-27 00:22:04)

Offline

#9 2014-08-19 12:37:20

dejot
Member
From: Osnabruck
Registered: 2007-04-02
Posts: 12

Re: Luakit and Uzbl crash on Youtube with HTML5

The problem does seem to persist ...

Offline

#10 2014-08-24 16:04:13

shutdown -h now
Member
Registered: 2012-11-07
Posts: 18

Re: Luakit and Uzbl crash on Youtube with HTML5

It's fixed! Finally.

Get the proposed patch from this bugreport. Save it as cairo_webkit.patch. And compile cairo-git with the following PKGBUILD (I've only added the patch):

# Contributor: dx <dx@dxzone.com.ar>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=cairo-git
pkgver=1.12.16.164.g13a0952
pkgrel=1
pkgdesc="Cairo vector graphics library (git version)"
arch=(i686 x86_64)
license=('LGPL' 'MPL')
url="http://cairographics.org/"
depends=('libpng>=1.4.0' 'libxrender' 'fontconfig>=2.8.0' 'pixman>=0.18.4' 'xcb-util>=0.3.6' 'glib2>=2.24.0')
makedepends=('gtk-doc' 'git')
options=('!libtool')
provides=('cairo=$pkgver' 'cairo-xcb=$pkgver')
conflicts=('cairo' 'cairo-xcb')
source=('git://anongit.freedesktop.org/git/cairo' 'cairo-1.10.0-buggy_gradients.patch' 'cairo_webkit.patch')
sha1sums=('SKIP'
          '8b843a9934e5112b6188e5bcf4adfc1fdaf9fa04'
          'SKIP')
_gitname='cairo'

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --always | sed 's|-|.|g'
}

prepare() {
  cd "${srcdir}/${_gitname}"
  patch -Np1 -i "$srcdir/cairo-1.10.0-buggy_gradients.patch"
  patch -Np1 --ignore-whitespace -i "$srcdir/cairo_webkit.patch"
}

build() {
  cd "${srcdir}/${_gitname}"
  ./autogen.sh --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --enable-xcb --disable-static
  make
}

package(){
  cd "${srcdir}"/${_gitname}
  make DESTDIR="${pkgdir}" install
}

Tested it with dwb for about 5 videos and haven't had a segfault yet.

Offline

#11 2015-01-29 21:01:20

asdil12
Member
Registered: 2012-04-10
Posts: 19

Re: Luakit and Uzbl crash on Youtube with HTML5

I have the same problem (black html5 video on youtube) but no problems playing webm/ogg videos on http://www.quirksmode.org/html5/tests/video.html using luakit.
The browser doesn't seem to crash but I only have sound on youtube - no video.

@shutdown -h now: I tried the path on cairo-git but it didn't help.

Last edited by asdil12 (2015-01-29 21:06:27)

Offline

#12 2015-01-30 11:30:30

shutdown -h now
Member
Registered: 2012-11-07
Posts: 18

Re: Luakit and Uzbl crash on Youtube with HTML5

Are you sure it's the same cairo segfault? You want to run it in a terminal and try another webkit browser to rule out luakit. I'm actually not having this problem anymore without the patch, so it seems to be fixed in cairo.

EDIT: Seems like this patch (among others) was committed only 3 days after my posting. So your problem should be something else unless you are using cairo < 1.12.16 [actually I'm not sure about the version].

Last edited by shutdown -h now (2015-01-30 11:39:35)

Offline

#13 2015-01-30 12:38:42

asdil12
Member
Registered: 2012-04-10
Posts: 19

Re: Luakit and Uzbl crash on Youtube with HTML5

I think I found the issue: Youtube seems to use mp4 videos but luakit can only play the mp4 audio.
Using websites with ogg/theora or webm videos works fine.

Is there a way to allow mp4 playback?

Offline

#14 2015-01-30 12:44:10

asdil12
Member
Registered: 2012-04-10
Posts: 19

Re: Luakit and Uzbl crash on Youtube with HTML5

Solved: I had to install gst-libav (opt dep of webkitgtk2 for nonfree media decoding)

Offline

#15 2015-05-20 02:17:20

adeadcat
Member
Registered: 2012-10-31
Posts: 1

Re: Luakit and Uzbl crash on Youtube with HTML5

For those who may come across this thread in the future, I also had to install gst-plugins-good (uzbl + webkitgtk2 version 2.4.8-2).  gst-plugins-base did not seem to effect YouTube playback, but I did not test many videos.

Offline

#16 2015-05-21 18:24:07

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Luakit and Uzbl crash on Youtube with HTML5

shutdown -h now wrote:

It's fixed! Finally.

Get the proposed patch from this bugreport. Save it as cairo_webkit.patch. And compile cairo-git with the following PKGBUILD (I've only added the patch):

# Contributor: dx <dx@dxzone.com.ar>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=cairo-git
pkgver=1.12.16.164.g13a0952
pkgrel=1
pkgdesc="Cairo vector graphics library (git version)"
arch=(i686 x86_64)
license=('LGPL' 'MPL')
url="http://cairographics.org/"
depends=('libpng>=1.4.0' 'libxrender' 'fontconfig>=2.8.0' 'pixman>=0.18.4' 'xcb-util>=0.3.6' 'glib2>=2.24.0')
makedepends=('gtk-doc' 'git')
options=('!libtool')
provides=('cairo=$pkgver' 'cairo-xcb=$pkgver')
conflicts=('cairo' 'cairo-xcb')
source=('git://anongit.freedesktop.org/git/cairo' 'cairo-1.10.0-buggy_gradients.patch' 'cairo_webkit.patch')
sha1sums=('SKIP'
          '8b843a9934e5112b6188e5bcf4adfc1fdaf9fa04'
          'SKIP')
_gitname='cairo'

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --always | sed 's|-|.|g'
}

prepare() {
  cd "${srcdir}/${_gitname}"
  patch -Np1 -i "$srcdir/cairo-1.10.0-buggy_gradients.patch"
  patch -Np1 --ignore-whitespace -i "$srcdir/cairo_webkit.patch"
}

build() {
  cd "${srcdir}/${_gitname}"
  ./autogen.sh --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --enable-xcb --disable-static
  make
}

package(){
  cd "${srcdir}"/${_gitname}
  make DESTDIR="${pkgdir}" install
}

Tested it with dwb for about 5 videos and haven't had a segfault yet.

This fixed the peroblem for me, when I used the webkit-based browser of emacs' xwidget branch.

Offline

Board footer

Powered by FluxBB