Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suckless surf browser freezes when playing youtube videos
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
hariskar
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 168

PostPosted: Fri Sep 28, 2018 1:07 pm    Post subject: Suckless surf browser freezes when playing youtube videos Reply with quote

Any idea why I can't play youtube videos? Sometimes I can hear sound but the whole system freezes and I have to press the off button, sometimes I can close the window..
Thank you!

Code:
sudo emerge -av webkit-gtk
[ebuild   R    ] net-libs/webkit-gtk-2.20.5:4/37::gentoo  USE="X egl geolocation gstreamer introspe
ction jit libnotify opengl spell webgl (-aqua) -coverage -doc -gles2 -gnome-keyring -nsplugin -test
 -wayland"



Code:
$ sudo emerge -av www-client/surf
[ebuild   R    ] www-client/surf-2.0::gentoo


Code:
equery list gst-plugins\*
 * Searching for gst-plugins* ...
[IP-] [  ] media-libs/gst-plugins-bad-0.10.23-r4:0.10
[IP-] [  ] media-libs/gst-plugins-bad-1.14.3:1.0
[IP-] [  ] media-libs/gst-plugins-base-0.10.36-r2:0.10
[IP-] [  ] media-libs/gst-plugins-base-1.14.3-r1:1.0
[IP-] [  ] media-libs/gst-plugins-good-1.14.3:1.0
[IP-] [  ] media-libs/gst-plugins-ugly-0.10.19-r1:0.10
[IP-] [  ] media-libs/gst-plugins-ugly-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-a52dec-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-alsa-0.10.36-r1:0.10
[IP-] [  ] media-plugins/gst-plugins-cdparanoia-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-dts-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-dvdread-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-faad-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-flac-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-gtk-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-libav-1.14.2:1.0
[IP-] [  ] media-plugins/gst-plugins-mad-0.10.19-r1:0.10
[IP-] [  ] media-plugins/gst-plugins-meta-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-mpeg2dec-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-mpg123-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-opus-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-pulse-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-resindvd-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-x264-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-x265-1.14.3:1.0
[IP-] [  ] media-plugins/gst-plugins-xvid-0.10.23-r1:0.10


Code:

~ $ sudo emerge --info
Portage 2.3.50 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop, gcc-8.2.0, glibc-2.27-r6, 4.18.10-gentoo x86_64)
=================================================================
System uname: Linux-4.18.10-gentoo-x86_64-Intel-R-_Core-TM-_i3-4330_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:     8091908 total,   6675904 free
KiB Swap:    5857276 total,   5857276 free
Timestamp of repository gentoo: Thu, 27 Sep 2018 14:30:01 +0000
Head commit of repository gentoo: 37267a0171bfbc04b8abf2334bd7d203bbc301fc
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            8.2.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

localrepo
    location: /usr/local/portage
    masters: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=haswell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv jpeg lcms ldap libnotify libtirpc mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds readline sdl seccomp spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Fri Sep 28, 2018 4:07 pm    Post subject: Reply with quote

Can help this?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
hariskar
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 168

PostPosted: Fri Sep 28, 2018 4:17 pm    Post subject: Reply with quote

Unfortunately no. I have libav already installed, but the problem exists.. Thank you!
Back to top
View user's profile Send private message
hariskar
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 168

PostPosted: Fri Sep 28, 2018 8:27 pm    Post subject: Reply with quote

This is an error I get in the console:
Code:
WebKitWebProcess: ../libdrm-2.4.94/nouveau/pushbuf.c:723: nouveau_pushbuf_data: Assertion `kref' failed.


Is that the cause of freezing?

:?
Back to top
View user's profile Send private message
hariskar
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 168

PostPosted: Mon Oct 01, 2018 5:32 am    Post subject: Reply with quote

After this error I change to nvidia drivers. Now videos play in youtube, but when they start for 1-2 seconds video and backgorund from youtube page is red, then it continues normally. Any idea what could be the caus of this?
Thank you!
Back to top
View user's profile Send private message
saturnalia0
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2016
Posts: 136

PostPosted: Thu Oct 04, 2018 1:20 am    Post subject: Reply with quote

As a workaround you can `mpv youtube_url`, possibly configuring some kind of shortcut to it.
Back to top
View user's profile Send private message
hariskar
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 168

PostPosted: Fri Oct 05, 2018 4:12 am    Post subject: Reply with quote

I am back on nouveau drivers to see if I manage to overcome the problems here..

Here is a new error message when trying to play a youtube video:

Code:
 $ surf
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
WebKitWebProcess: /var/tmp/portage/x11-libs/libX11-1.6.6/work/libX11-1.6.6/src/xcb_io.c:259: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Back to top
View user's profile Send private message
posmotret
n00b
n00b


Joined: 29 Apr 2019
Posts: 2

PostPosted: Mon Apr 29, 2019 3:09 pm    Post subject: Reply with quote

hariskar wrote:
I am back on nouveau drivers to see if I manage to overcome the problems here..

Here is a new error message when trying to play a youtube video:

Code:
 $ surf
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
WebKitWebProcess: /var/tmp/portage/x11-libs/libX11-1.6.6/work/libX11-1.6.6/src/xcb_io.c:259: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.


Hi, did you find solution ? I have same problem with luakit browser. I use temporary solution with software render:
Code:
LIBGL_ALWAYS_SOFTWARE=1 luakit


But it strong loads my CPU on sites wich uses animations.
Back to top
View user's profile Send private message
hariskar
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 168

PostPosted: Mon Apr 29, 2019 3:17 pm    Post subject: Reply with quote

I use nvidia drivers now and youtube videos play without freezing, but before each video starts the whole screen becomes instantly red...
Back to top
View user's profile Send private message
posmotret
n00b
n00b


Joined: 29 Apr 2019
Posts: 2

PostPosted: Mon Apr 29, 2019 3:30 pm    Post subject: Reply with quote

Do you have more then 1 monitor ?
Back to top
View user's profile Send private message
hariskar
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 168

PostPosted: Mon Apr 29, 2019 3:33 pm    Post subject: Reply with quote

No, just 1 monitor.
Back to top
View user's profile Send private message
nubiocicarini
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2019
Posts: 80
Location: Brazil

PostPosted: Mon May 13, 2019 6:08 pm    Post subject: Reply with quote

I also have the same problem with the nouveau. Any other clues?
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 975
Location: The Village, Portmeirion

PostPosted: Mon May 13, 2019 7:01 pm    Post subject: Reply with quote

Anyone run anything that uses gstreamer that didn't lock up at random?
Back to top
View user's profile Send private message
AWarmJicama
n00b
n00b


Joined: 12 Feb 2020
Posts: 1

PostPosted: Wed Feb 12, 2020 11:43 am    Post subject: A bad compromise made YouTube work again Reply with quote

I was also facing the problem, where surf froze when YouTube played a video. But then I removed my user from "video" groups by doing
Code:
gpasswd -d <user> video
. Now YouTube works, but I am not sure about whether Nouveau works without "video" group or not. Most probably not.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum