You are not logged in.

#1 2013-04-28 21:28:55

gothmog123
Member
Registered: 2012-10-31
Posts: 81

gtk crashes html5 youtube (webkit)

I have a weird problem, all webkit browsers crash when I try to watch html5 youtube videos.

First I thought it was just webkitgtk, as qtwebkit browsers behaved normally. Then I exported gtkrc (gtk look for qt  - export GTK2_RC_FILES="$HOME/.gtkrc-2.0") and qtwebkit started crashing as well.

Basically something is seriously wrong in gtk... but what could it be?

Last edited by gothmog123 (2013-04-28 21:30:49)

Offline

#2 2014-08-24 16:40:18

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

Re: gtk crashes html5 youtube (webkit)

It's cairo creating empty boxes or something and it finally got fixed today. Quoting my other post about it:

shutdown -h now wrote:

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

#3 2014-08-24 17:20:58

okubax
Member
From: London
Registered: 2010-04-24
Posts: 186
Website

Re: gtk crashes html5 youtube (webkit)

confirming the patch works. no crashes on dwb thus far

Last edited by okubax (2014-08-24 17:21:13)

Offline

Board footer

Powered by FluxBB