video crashes due to vdpau decoders

Bug #330165 reported by Tuomas Aavikko
276
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GStreamer
Fix Released
Critical
gstreamer0.10-ffmpeg (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: totem

Up-to-date jaunty.

Trying to test totem on various codecs.
Visit: http://www.jhepple.com/support/sample_movies1.htm
file 14 works.
file 15 should work, but is a no show.

Also, there's broken link in
file /usr/lib/mozilla/plugins/libtotem-basic-plugin.so
/usr/lib/mozilla/plugins/libtotem-basic-plugin.so: broken symbolic link to `../../totem/default/libtotem-basic-plugin.so'

I'll suspect that it's related that gst0.10-plugins-bad-multiverse is unistallable due to missing dependencies
gstreamer0.10-plugins-bad-multiverse:
  Installed: (none)
  Candidate: 0.10.6-1ubuntu1
  Version table:
     0.10.6-1ubuntu1 0
        500 http://archive.ubuntu.com jaunty/multiverse Packages

depends:
Depends: <libmjpegtools0c2a>
Depends: <libx264-59>

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/lib/totem/gstreamer/totem-plugin-viewer
NonfreeKernelModules: nvidia
Package: totem-gstreamer 2.25.90-0ubuntu3
ProcCmdline: /usr/lib/totem/gstreamer/totem-plugin-viewer --plugin-type gmp --user-agent Mozilla/5.0\ (X11;\ U;\ Linux\ x86_64;\ en-US;\ rv:1.9.0.6)\ Gecko/2009020519\ Ubuntu/9.04\ (jaunty)\ Firefox/3.0.6 --mimetype video/x-msvideo --statusbar
ProcCwd: /home/devil
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: totem
StacktraceTop:
 realloc () from /lib/libc.so.6
 av_fast_realloc () from /usr/lib/libavcodec.so.52
 ff_vdpau_add_data_chunk ()
 ff_vdpau_vc1_decode_picture ()
 ?? () from /usr/lib/libavcodec.so.52
Title: totem-plugin-viewer crashed with SIGSEGV in realloc()
Uname: Linux 2.6.28-7-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Tuomas Aavikko (taavikko) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:realloc () from /lib/libc.so.6
fft8 (z=0x7d8)
?? ()
iv_Decode_Chunk (s=0x0,
?? ()

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Pedro Villavicencio (pedro) wrote : Re: totem-plugin-viewer crashed with SIGSEGV in realloc()

looks like another libavcodec issue.

Revision history for this message
Tuomas Aavikko (taavikko) wrote :

Just tested by downloading that file15 and opened with totem, totem crashed with (core dumbed)

Revision history for this message
Tuomas Aavikko (taavikko) wrote :

dmesg shows:

[18992.088484] totem-gstreamer[10410]: segfault at 7478656c ip 00007f4a909cfcfa sp 00007f4a750f2a90 error 4 in libc-2.9.so[7f4a90953000+168000]
[19027.101917] totem[10510]: segfault at fffffff4cd396c80 ip 00007fbc729911c1 sp 00007fbc6b7fdaf0 error 6 in libavcodec.so.52.11.0[7fbc72770000+49a000]

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you still get the issue using the current version? the video example works correctly there

Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try if the gstreamer0.10-ffmpeg 0.10.6.2 update in jaunty fixes your issue?

Revision history for this message
Tuomas Aavikko (taavikko) wrote :

Tested on both Firefox-3.1 and the default, firefox-3.0.7
This is before restart (uptime
 16:36:53 up 5 days, 1:16, 3 users, load average: 0.08, 0.23, 0.18)
Dmesg is showing:
[436019.412599] totem-plugin-vi[9217] general protection ip:7f522d6fa141 sp:7f52276a2b40 error:0 in libavcodec.so.52.11.0[7f522d4d9000+49a000]
[436344.240168] totem-plugin-vi[9453]: segfault at ae9530160 ip 00007f573c382141 sp 00007f5735bfab40 error 6 in libavcodec.so.52.11.0[7f573c161000+49a000]

But to my understanding restart isn't needed to these updates to take effect.
Reporting here after restart.

Revision history for this message
Tuomas Aavikko (taavikko) wrote :

Forgot to say, that the update still hasn't fix my issue.
Trying to view that sample 15 on URL in guestion, it just hangs, doesn't crash the browser.
Sample just loads and finally it's stopped. (file doesn't play)

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you run "dpkg -l | grep gst", do you get the issue if you download the file locally and play it there?

Changed in ffmpeg-debian:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Tuomas Aavikko (taavikko) wrote :

Just tested after restart, Neither browser works, just hangs.
Downloaded both samples, 14 & 15
14 plays without any issues.
15 crashed totem

Output: :~$ totem-gstreamer --debug niceday.wmv
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
** Message: Error: Internal GStreamer error: negotiation problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
gstffmpegdec.c(1150): gst_ffmpegdec_negotiate (): /GstPlayBin:play/GstDecodeBin:decodebin0/ffdec_wmv3_vdpau:ffdec_wmv3_vdpau0:
could not find caps for codec (wmv3_vdpau), unknown type

Segmentation fault (core dumped)

Files:
15 :~$ file niceday.wmv
niceday.wmv: Microsoft ASF

14 :~$ file WindowsMedia.wmv
WindowsMedia.wmv: Microsoft ASF

Revision history for this message
Sebastien Bacher (seb128) wrote :

does ffplay plays it correctly for you?

Revision history for this message
Sebastien Bacher (seb128) wrote :

"could not find caps for codec (wmv3_vdpau), unknown type" is a gstreamer0.10-ffmpeg issue fixed in git and will be fixed later this week in jaunty

Changed in ffmpeg-debian:
status: Incomplete → Fix Committed
Revision history for this message
Tuomas Aavikko (taavikko) wrote : Re: [Bug 330165] Re: totem-plugin-viewer crashed with SIGSEGV in realloc()

2009/3/11 Sebastien Bacher <email address hidden>

> does ffplay plays it correctly for you?
>
> Yes it does,
:~$ ffplay niceday.wmv
FFplay version UNKNOWN-svn16978+3:0.svn20090204-2ubuntu1, Copyright (c)
2003-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --extra-version=svn16978+3:0.svn20090204-2ubuntu1
--prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook
--enable-xvmc --enable-libdc1394 --enable-shared --disable-static
  libavutil 49.14. 0 / 49.14. 0
  libavcodec 52.11. 0 / 52.11. 0
  libavformat 52.25. 0 / 52.25. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 3. 0 / 0. 3. 0
  libswscale 0. 6. 1 / 0. 6. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Feb 5 2009 21:02:21, gcc: 4.3.3
[wmv3 @ 0x262c660]Old WMV3 version detected, only I-frames will be decoded
[wmv3 @ 0x262c660]Old WMV3 version detected, only I-frames will be decoded

Revision history for this message
Tuomas Aavikko (taavikko) wrote : Re: totem-plugin-viewer crashed with SIGSEGV in realloc()

2009/3/11 Sebastien Bacher <email address hidden>

    does ffplay plays it correctly for you?

Yes it does,
:~$ ffplay niceday.wmv
FFplay version UNKNOWN-svn16978+3:0.svn20090204-2ubuntu1, Copyright (c) 2003-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn16978+3:0.svn20090204-2ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-xvmc --enable-libdc1394 --enable-shared --disable-static
  libavutil 49.14. 0 / 49.14. 0
  libavcodec 52.11. 0 / 52.11. 0
  libavformat 52.25. 0 / 52.25. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 3. 0 / 0. 3. 0
  libswscale 0. 6. 1 / 0. 6. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Feb 5 2009 21:02:21, gcc: 4.3.3
[wmv3 @ 0x262c660]Old WMV3 version detected, only I-frames will be decoded
[wmv3 @ 0x262c660]Old WMV3 version detected, only I-frames will be decoded

Revision history for this message
Brian Arita (brianjarita) wrote :

I tried compiling the ffmpeg libraries from source in Jaunty, but it still crashes on me using an Acer Netbook powered by the Intel(R) Atom(TM) CPU N270.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug has not been fixed in jaunty but only in the upstream svn so it's normal rebuild the jaunty version makes no difference

Revision history for this message
Sebastien Bacher (seb128) wrote :

ok, I can get the issue after installing libavcodec-unstripped-52 instead of libavcodec52, does anybody else use the unstripped version?

Revision history for this message
Sebastien Bacher (seb128) wrote :

ok, I can confirm the crash at end of the video examples on launchpad with the unstripped version and the upstream change fixes the issue

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gstreamer0.10-ffmpeg - 0.10.6.2-1ubuntu1

---------------
gstreamer0.10-ffmpeg (0.10.6.2-1ubuntu1) jaunty; urgency=low

  * debian/patches/06_disable_vdpau_decoder.patch:
    - git change to disable the vdpau decoder that should fix lot of crashers
      (lp: #330165, #332860)

 -- Sebastien Bacher <email address hidden> Thu, 12 Mar 2009 11:40:47 +0100

Changed in gstreamer0.10-ffmpeg:
status: Fix Committed → Fix Released
Revision history for this message
Tuomas Aavikko (taavikko) wrote :

Fix has cleared my issues.

But next, if vdpau_decoder is disabled, ffmpeg/gstreamer devs are trying to find a way to enable for it to work?

Revision history for this message
Marius Nestor (marius-nestor) wrote :

Yes! The bug is fixed :)

Thank you very much!

Revision history for this message
shane (hshane) wrote :

The totem-mozilla package from the beta of Jaunty still installs a broken symlink, /usr/lib/mozilla/plugins/libtotem-basic-plugin.so, for anyone interested.

Changed in gstreamer:
status: Unknown → Fix Released
Changed in gstreamer:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.