Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#35952 - [gst-vaapi] crashes totem

Attached to Project: Arch Linux
Opened by Emilio (emilio) - Thursday, 27 June 2013, 14:59 GMT
Last edited by Jan Alexander Steffens (heftig) - Wednesday, 17 July 2013, 18:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

gst-vaapi causes Totem to crash when trying to playback H264 video. Uninstalling gst-vaapi makes totem work again.

Additional info:

I am running Arch on an Ivy Bridge system, with the following versions of packages:

$ pacman -Q totem gst-vaapi gst-plugins-{bad,base,good,ugly} libva libva-intel-driver
totem 3.8.2-2
gst-vaapi 0.5.4-1
gst-plugins-bad 1.0.7-1
gst-plugins-base 1.0.7-1
gst-plugins-good 1.0.7-2
gst-plugins-ugly 1.0.7-1
libva 1.2.1-1
libva-intel-driver 1.2.0-1

Steps to reproduce:
1- install gst-vaapi and libva packages
2- try to play H.264 video on totem
3- totem will crash as seen below:

$ gdb totem
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/totem...(no debugging symbols found)...done.
(gdb) run somevideofile.mkv
Starting program: /usr/bin/totem somevideofile.mkv
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe7dfa700 (LWP 3784)]
[New Thread 0x7fffe75f9700 (LWP 3785)]
[New Thread 0x7fffd18b2700 (LWP 3786)]

(totem:3774): libpeas-WARNING **: grilo: libgrilo-0.2.so.1: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

(totem:3774): libpeas-WARNING **: Error loading plugin 'grilo'
[New Thread 0x7fffd0ea2700 (LWP 3787)]
[New Thread 0x7fffcb01a700 (LWP 3789)]
[New Thread 0x7fffca3cc700 (LWP 3790)]
[New Thread 0x7fffc9bcb700 (LWP 3791)]
[New Thread 0x7fffc93ca700 (LWP 3794)]
[New Thread 0x7fffbbffe700 (LWP 3795)]
[New Thread 0x7fffbb7fd700 (LWP 3796)]
No accelerated IMDCT transform found
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
[Thread 0x7fffc9bcb700 (LWP 3791) exited]
[New Thread 0x7fffc9bcb700 (LWP 3797)]
[New Thread 0x7fffb8838700 (LWP 3798)]
[New Thread 0x7fffa3fff700 (LWP 3799)]
[New Thread 0x7fffa37fe700 (LWP 3800)]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff504eb75 in ?? () from /usr/lib/libclutter-gst-2.0.so.0
#2 0x00007ffff504fe28 in ?? () from /usr/lib/libclutter-gst-2.0.so.0
#3 0x00007ffff644bda6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#4 0x00007ffff644c0f8 in ?? () from /usr/lib/libglib-2.0.so.0
#5 0x00007ffff644c19c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#6 0x00007ffff69e7cf4 in g_application_run () from /usr/lib/libgio-2.0.so.0
#7 0x000000000040248a in main ()
(gdb)
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Wednesday, 17 July 2013, 18:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.5.5
Comment by Jan de Groot (JGC) - Friday, 28 June 2013, 09:25 GMT
You should recompile clutter-gst with debug symbols to find out why it's crashing here.
Comment by Emilio (emilio) - Friday, 28 June 2013, 23:52 GMT
Here's a backtrace after building clutter-gst with debug symbols

(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff504e1b5 in clutter_gst_hw_upload (sink=<optimized out>, buffer=0x7fffac09d390) at ./clutter-gst-video-sink.c:1115
#2 0x00007ffff504f300 in clutter_gst_source_dispatch (source=0x7fffc402c300, callback=<optimized out>, user_data=<optimized out>) at ./clutter-gst-video-sink.c:536
#3 0x00007ffff644bda6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#4 0x00007ffff644c0f8 in ?? () from /usr/lib/libglib-2.0.so.0
#5 0x00007ffff644c19c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#6 0x00007ffff69e7cf4 in g_application_run () from /usr/lib/libgio-2.0.so.0
#7 0x000000000040248a in main ()
Comment by Andrew Cowie (afcowie) - Saturday, 29 June 2013, 07:57 GMT
I can confirm this crash. The GDB trace I've taken is the same; strange that it seems to be clutter that's bailing. I can paste the other threads if someone really needs it. In my case I uninstalled libva-intel-driver, though I suppose it doesn't matter which of the {libva, libva-intel-driver, gst-vaapi} stack you remove; any one of them missing would mean Totem won't be able to try and use VAAPI.

AfC
Comment by crashbit (crashbit) - Monday, 01 July 2013, 17:21 GMT
Same problem with some videos

[crashbit@ultrabook ~]$ gdb
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) file totem
Reading symbols from /usr/bin/totem...(no debugging symbols found)...done.
(gdb) run video.flv
Starting program: /usr/bin/totem video.flv
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe7f6b700 (LWP 14450)]
[New Thread 0x7fffe7751700 (LWP 14451)]
[New Thread 0x7fffd75e9700 (LWP 14452)]

(totem:14446): libpeas-WARNING **: grilo: libgrilo-0.2.so.1: no s’ha pogut obrir el fitxer objecte compartit: El fitxer o directori no existeix

(totem:14446): libpeas-WARNING **: Error loading plugin 'grilo'
[New Thread 0x7fffd6de8700 (LWP 14453)]
[New Thread 0x7fffd4f8b700 (LWP 14455)]
[New Thread 0x7fffc3ffe700 (LWP 14456)]
[New Thread 0x7fffc37fd700 (LWP 14457)]
[New Thread 0x7fffc2ffc700 (LWP 14458)]
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
[New Thread 0x7fffb3fff700 (LWP 14459)]
[New Thread 0x7fffb37fe700 (LWP 14460)]
[New Thread 0x7fffb29db700 (LWP 14461)]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()

[crashbit@ultrabook ~]$ file video.flv
video.flv: Macromedia Flash Video

[crashbit@ultrabook ~]$ grep -i sandy /var/log/Xorg.0.log
Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
[ 2.128] (--) intel(0): Integrated Graphics Chipset: Intel(R) Sandybridge Mobile (GT2)
[ 2.150] (II) intel(0): SNA initialized with Sandybridge (gen6, gt2) backend


Comment by Frank Phillips (fphillips) - Wednesday, 10 July 2013, 20:05 GMT
libva-1.2 had some API changes that it may be hitting. It doesn't look like gst-vaapi has been rebuilt since. I know mythtv and vlc have had to enable legacy compat code from libva when running the newer libva. What happens if you roll back to libva-1.1.1?
Comment by Emilio (emilio) - Wednesday, 10 July 2013, 20:50 GMT
Downgrading to libva-1.1.1 stops the crashes on totem, but the following is shown, so I don't think it's using VAAPI

No accelerated IMDCT transform found
libva info: VA-API version 0.33.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva error: /usr/lib/dri/i965_drv_video.so has no function __vaDriverInit_0_32
libva info: va_openDriver() returns -1
libva info: VA-API version 0.33.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva error: /usr/lib/dri/i965_drv_video.so has no function __vaDriverInit_0_32
libva info: va_openDriver() returns -1
libva info: VA-API version 0.33.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva error: /usr/lib/dri/i965_drv_video.so has no function __vaDriverInit_0_32
libva info: va_openDriver() returns -1

Downgrading libva as well as libva-intel-driver-1.0.20-1 makes it crash again

No accelerated IMDCT transform found
libva info: VA-API version 0.33.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_33
libva info: va_openDriver() returns 0
[New Thread 0x7fffbe66c700 (LWP 2334)]
[New Thread 0x7fffbd6a8700 (LWP 2335)]
[New Thread 0x7fffbc885700 (LWP 2336)]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff504e1b5 in clutter_gst_hw_upload (sink=<optimized out>, buffer=0x7fffac05d1e0) at ./clutter-gst-video-sink.c:1115
#2 0x00007ffff504f300 in clutter_gst_source_dispatch (source=0x7fffc402c2a0, callback=<optimized out>, user_data=<optimized out>) at ./clutter-gst-video-sink.c:536
#3 0x00007ffff644bda6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#4 0x00007ffff644c0f8 in ?? () from /usr/lib/libglib-2.0.so.0
#5 0x00007ffff644c19c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#6 0x00007ffff69e7cf4 in g_application_run () from /usr/lib/libgio-2.0.so.0
#7 0x000000000040248a in main ()
Comment by Emilio (emilio) - Sunday, 14 July 2013, 17:22 GMT
I manually built the master branch of gstreamer-vaapi today (5e18a5b1bd187c9e59a6356611557903abb91bb5 from git://gitorious.org/vaapi/gstreamer-vaapi.git more precisely) and it does not seem to crash anymore.
Comment by crashbit (crashbit) - Wednesday, 17 July 2013, 17:51 GMT
Hi!

Today I upgrade the gst-vaapi package and problem was solved.

[2013-07-17 19:42] [PACKAGEKIT] upgraded gst-vaapi (0.5.4-1 -> 0.5.5-1)

Totem works well with all videos. Thx

Loading...