You are not logged in.
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
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
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
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
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
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
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
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
The problem does seem to persist ...
Offline
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
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
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
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
Solved: I had to install gst-libav (opt dep of webkitgtk2 for nonfree media decoding)
Offline
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
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