Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401537 - www-client/chromium cannot play html5 video
Summary: www-client/chromium cannot play html5 video
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 16:04 UTC by Sylvain BERTRAND
Modified: 2012-02-03 21:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/proc/cpuinfo (cpuinfo,3.42 KB, text/plain)
2012-02-01 14:27 UTC, Sylvain BERTRAND
Details
gdb bt full (bt_full,2.59 KB, text/plain)
2012-02-01 14:33 UTC, Sylvain BERTRAND
Details
pmap of debugged chromium (single process) (maps,33.07 KB, text/plain)
2012-02-01 14:34 UTC, Sylvain BERTRAND
Details
cdb info regs (regs,886 bytes, text/plain)
2012-02-01 18:08 UTC, Sylvain BERTRAND
Details
gdb bt full (bt_full,2.62 KB, text/plain)
2012-02-01 18:09 UTC, Sylvain BERTRAND
Details
pmap output (pmap,33.05 KB, text/plain)
2012-02-01 18:12 UTC, Sylvain BERTRAND
Details
gdb dis around the $pc (dis,8.71 KB, text/plain)
2012-02-01 18:25 UTC, Sylvain BERTRAND
Details
gdb all regs (all-regs,6.38 KB, text/plain)
2012-02-01 18:31 UTC, Sylvain BERTRAND
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain BERTRAND 2012-01-30 16:04:25 UTC
I get:
[19:30:6123202259:ERROR:platform_thread_posix.cc(252)] Not implemented reached in static void base::PlatformThread::SetThreadPriority(base::PlatformThreadHandle, base::ThreadPriority)

My use flags are:
[ebuild   R   #] www-client/chromium-18.0.1017.2  USE="-bindist -cups -custom-cflags -gnome -gnome-keyring -kerberos (-pulseaudio) -test" LINGUAS="fr -am -ar -bg -bn -ca -cs -da -de -el -en_GB -es -es_LA -et -fa -fi -fil -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW"

emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.14.1-r2, 3.2.2 x86_64)
=================================================================
System uname: Linux-3.2.2-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.1
Timestamp of tree: Fri, 27 Jan 2012 14:15:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.2-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x11 mozilla x-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlays/x11 /usr/local/portage/overlays/mozilla /root/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X amd64 bash-completion bzip2 cli cracklib crypt dri flac gdbm gnutls iconv idn jpeg mmx modules mp3 mudflap ncurses nls nptl nptlonly opengl png pppd readline session sse sse2 ssl sysfs unicode vim-syntax vorbis xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Gilbert gentoo-dev 2012-01-30 17:52:01 UTC
Do you have an example I can use to reproduce this? I'll give it a shot tonight.
Comment 2 Mike Gilbert gentoo-dev 2012-01-31 01:24:34 UTC
The vimeo front page is not a very useful link. All I see is Flash. Please be more specific.

We had another report of h.264 videos on vimeo not working a while back; frankly, I think it is the site since youtube works fine for me.
Comment 3 Mike Gilbert gentoo-dev 2012-01-31 01:43:55 UTC
Heh, it looks like you reported the other bug I was thinking of.

I found the "Switch to HTML5 player" link on vimeo.com. It works just fine for me.

So, I think we need to figure out what is different about your system. Here's my emerge --info for comparison.


Portage 2.2.0_alpha84 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.2, glibc-2.13-r4, 3.2.2 x86_64)
=================================================================
System uname: Linux-3.2.2-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.3
Timestamp of tree: Unknown
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.7-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo mgorny sunrise floppym local
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --with-bdeps=y --quiet-build=n --jobs=7"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs distlocks ebuild-locks fakeroot fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/home/floppym/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/mgorny /home/floppym/overlays/sunrise/sunrise /home/floppym/overlays/floppym /home/floppym/overlays/local"
SYNC="cvs://floppym@cvs.gentoo.org:/var/cvsroot"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 ao bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt css cups cxx dbus declarative device-mapper doc dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran gdbm gdu gif gpm gtk hddtemp iconv imap ipv6 jpeg kde kipi lcms libnotify lm_sensors lzma mad mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 readline samba sdl semantic-desktop session spell sse sse2 sse3 ssl startup-notification suid svg sysfs taglib tcpd theora threads tiff truetype udev unicode usb vaapi vdpau vim-syntax vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib zsh-completion" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 4 Sylvain BERTRAND 2012-01-31 14:27:07 UTC
I tested on youtube:
If I do not touch anything in the player, I can play the videos.
But if I try anything on the player (higher res, bigger player...) I get:
[...ERROR:platform_thread_posix.cc(252)] Not implemented reached
in static void
base::PlatformThread::SetThreadPriority(base::PlatformThreadHandle,
base::ThreadPriority)
Comment 5 Mike Gilbert gentoo-dev 2012-01-31 15:15:27 UTC
(In reply to comment #4)

I get that message in my terminal as well. I'm not sure it is actually relevant.
Comment 6 Sylvain BERTRAND 2012-01-31 15:40:46 UTC
I copy that.

Then, I would need to debug chromium... which is a massive kludge.
I'll try some basic workarounds. If not, I'll stick with firefox waiting the bug to go away, except if there is a simple way to debug chromium.
Comment 7 Sylvain BERTRAND 2012-01-31 19:11:44 UTC
Try to add debug info... and:
malloc() ../../sandbox-2.5/libsandbox/libsandbox.c:resolve_path():263: malloc(8192) failed: Cannot allocate memory

Too kludgy for my system...
Comment 8 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-01 09:26:28 UTC
1. One issue per bug please. Not playing HTML5 video at all on some site is one issue, trying to use player features like changing resolution or resizing it on _another_ site is clearly a different issue.

2. Let's focus on vimeo.com in this bug (any separate issues go to separate bugs).

3. Please post steps to reproduce the problem. Don't debug before we're all even testing the same thing. Be specific: URLs and so on. What exactly you did. Ideally start with a fresh profile, so all necessary steps like enabling HTML5 player are included.

4. Does the problem occur with www-client/google-chrome-18.x?
Comment 9 Sylvain BERTRAND 2012-02-01 12:44:30 UTC
ok

fresh profile (rm -Rf .config/chromium)

you go on http://www.vimeo.com, click the play button on main video. Crash.

See my first post for chromium version and use flags.

-------------

I found nice info for chromium debugging: http://code.google.com/p/chromium/wiki/LinuxDebugging
I updated to gcc 4.6.2.
I tried to compile it very conservatively:-O -march=k8 -mtune=generic.
100% of the time reproductible.
With gdb, it's an illegal instruction in the chromium code segment (I'm unable to compile chromium with debug info (-g), event without sandbox).
Comment 10 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-01 13:40:00 UTC
(In reply to comment #9)
> you go on http://www.vimeo.com, click the play button on main video. Crash.

Please provide a URL to a particular video as requested. I think the "main video" on vimeo.com changes quite frequently.

And then: what crashes? The entire browser? Just the tab ("sad tab")? If in doubt, please post a screenshot.

> See my first post for chromium version and use flags.

OK

> I found nice info for chromium debugging:
> http://code.google.com/p/chromium/wiki/LinuxDebugging
> I updated to gcc 4.6.2.
> I tried to compile it very conservatively:-O -march=k8 -mtune=generic.

Hmmm, -O is actually more dangerous than -O2. Generally avoid it. -mtune=generic also makes me a bit suspicious.

Could you also post your /proc/cpuinfo?

> 100% of the time reproductible.

Good, will be easy to test. Let's just pick one video just to be even more confident.

> With gdb, it's an illegal instruction in the chromium code segment (I'm unable
> to compile chromium with debug info (-g), event without sandbox).

Don't worry about debug, at least for now (generally don't worry about things we don't ask you - focus on the requested info or data).

Please post the output of "bt full", "info reg" and "disas $pc" when you catch the crash in gdb. For an example see https://bugs.gentoo.org/show_bug.cgi?id=394683#c17 . If you get any error messages, please post them verbatim. If something complains about missing symbols, don't worry, just post the message as-is. Make sure to indicate with which CFLAGS it was compiled (don't worry about changing them now, just post the info).
Comment 11 Sylvain BERTRAND 2012-02-01 14:27:13 UTC
Created attachment 300649 [details]
/proc/cpuinfo
Comment 12 Sylvain BERTRAND 2012-02-01 14:29:20 UTC
let's focus on http://vimeo.com/23017365

Yes, the crash happens with the "sad tab"
Comment 13 Sylvain BERTRAND 2012-02-01 14:33:43 UTC
Created attachment 300651 [details]
gdb bt full
Comment 14 Sylvain BERTRAND 2012-02-01 14:34:25 UTC
Created attachment 300653 [details]
pmap of debugged chromium (single process)
Comment 15 Sylvain BERTRAND 2012-02-01 14:36:25 UTC
gdb tells "Program received signal SIGILL, Illegal instruction"
(single process, or gdb on the renderer process)
Comment 16 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-01 16:19:42 UTC
(In reply to comment #15)
> gdb tells "Program received signal SIGILL, Illegal instruction"
> (single process, or gdb on the renderer process)

It seems you forgot about "info reg" and "disas $pc" - please submit output of those commands in gdb after you encounter the crash.
Comment 17 Sylvain BERTRAND 2012-02-01 18:08:33 UTC
Created attachment 300691 [details]
cdb info regs
Comment 18 Sylvain BERTRAND 2012-02-01 18:09:56 UTC
Created attachment 300693 [details]
gdb bt full
Comment 19 Sylvain BERTRAND 2012-02-01 18:12:44 UTC
Created attachment 300695 [details]
pmap output
Comment 20 Sylvain BERTRAND 2012-02-01 18:25:33 UTC
Created attachment 300699 [details]
gdb dis around the $pc
Comment 21 Sylvain BERTRAND 2012-02-01 18:31:04 UTC
Created attachment 300701 [details]
gdb all regs
Comment 22 Sylvain BERTRAND 2012-02-01 18:41:20 UTC
core dump at:
http://dl.free.fr/fZJSOEFJi
Comment 23 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-01 20:02:16 UTC
This is most likely an upstream bug (http://code.google.com/p/chromium/issues/detail?id=107532) with unconditional (S)SSE3 compile flags. When I have some time I'm going to do experiment with removing those flags.

Thank you for patience with debugging. The critical part was disassembly with the pshufb operation.
Comment 24 Sylvain BERTRAND 2012-02-01 20:25:57 UTC
indeed, I'm impressed. To dare getting into chromimum "amazing" build system is just... doh!
Comment 25 Sylvain BERTRAND 2012-02-02 13:24:20 UTC
not fixed with www-client/chromium-18.0.1025.1
Comment 26 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-02 15:29:24 UTC
(In reply to comment #25)
> not fixed with www-client/chromium-18.0.1025.1

Please test with 18.0.1025.1-r1 (preferred) or 17.0.963.46-r1.
Comment 27 Sylvain BERTRAND 2012-02-02 22:30:37 UTC
fixed in 18.0.1025.1-r1.

Still many pbs to read videos during one www session, but that bug is gone.
Comment 28 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-03 21:07:14 UTC
(In reply to comment #27)
> Still many pbs to read videos during one www session, but that bug is gone.

How about filing a new bug for those? Thank you for testing this, fix should land upstream soon.