From: Jyotsana Subject: Crash of repeated playback using libva and gstreamer Date: Mon, 03 Jan 2011 12:24:18 +0530 Message-ID: <4D21729A.7070902@tataelxsi.co.in> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1660050219==" Return-path: Received: from smtpout3.vsnlxchange.com (smtpout3.vsnlxchange.com [59.163.96.18]) by gabe.freedesktop.org (Postfix) with ESMTP id 183EA9E821 for ; Sun, 2 Jan 2011 23:04:55 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This is a multi-part message in MIME format. --===============1660050219== Content-Type: multipart/alternative; boundary="------------050303070707060605030602" This is a multi-part message in MIME format. --------------050303070707060605030602 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; format="flowed" Hi, I am trying to play multiple video files one after the other using=20 GStreamer(vaapidecode and vaapisink plugins) and libVA-1.0.3. I am able to play one file successfully but once the first file is=20 played to completion, we delete all references of the first pipeline and=20 create a new one. When the second file is played, application crashes with the following=20 error: libva: libva version 0.31.1 libva: va_getDriverName() returns 0 libva: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so libva: va_openDriver() returns 0 libva: libva version 0.31.1 libva: va_getDriverName() returns 0 libva: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so libva: va_openDriver() returns 0 VaapiApp: i965_media.c:277: i965_media_decode_picture: Assertion=20 `media_state->media_states_setup' failed. Following is the backtrace obtained from gdb: i965_media_decode_picture: Assertion `media_state->media_states_setup'=20 failed. # 0xb7fff424 in __kernel_vsyscall () # #1 0x00414d71 in raise () from /lib/libc.so.6 # #2 0x0041664a in abort () from /lib/libc.so.6 # #3 0x0040dde8 in __assert_fail () from /lib/libc.so.6 # #4 0xb71531d5 in i965_media_decode_picture (ctx=3D0xaeb19760,=20 profile=3DVAProfileMPEG2Main, decode_state=3D0xaeb1a524) at i965_media.c:277 # #5 0xb715afcf in i965_EndPicture (ctx=3D0xaeb19760, context=3D33554432)=20 at i965_drv_video.c:1146 # #6 0xb7d8cec5 in vaEndPicture (dpy=3D0xaeb1e960, context=3D33554432) at=20 va.c:815 # #7 0xb5f73a85 in render_picture (s=3D0xb0701c00) at libavcodec/vaapi.c:74 # #8 ff_vaapi_common_end_frame (s=3D0xb0701c00) at libavcodec/vaapi.c:188 # #9 0xb5d37c0b in slice_end (avctx=3D0xb0701400, picture=3D0xb0740940,=20 data_size=3D0xb10fef24, buf=3D0xb0704600 "", buf_size=3D18936) at=20 libavcodec/mpeg12.c:1935 # #10 decode_chunks (avctx=3D0xb0701400, picture=3D0xb0740940,=20 data_size=3D0xb10fef24, buf=3D0xb0704600 "", buf_size=3D18936) at=20 libavcodec/mpeg12.c:2303 # #11 0xb5d39290 in mpeg_decode_frame (avctx=3D0xb0701400,=20 data=3D0xb0740940, data_size=3D0xb10fef24, avpkt=3D0xb10fee64) at=20 libavcodec/mpeg12.c:2272 # #12 0xb5e2de35 in avcodec_decode_video2 (avctx=3D0xb0701400,=20 picture=3D0xb0740940, got_picture_ptr=3D0xb10fef24, buf=3D0xb0704600 "",=20 buf_size=3D18936) at libavcodec/utils.c:611 # #13 avcodec_decode_video (avctx=3D0xb0701400, picture=3D0xb0740940,=20 got_picture_ptr=3D0xb10fef24, buf=3D0xb0704600 "", buf_size=3D18936) at=20 libavcodec/utils.c:597 # #14 0xb5be3392 in decode_frame (decoder=3D0xafd03478, buffer=3D0xae91b9e0= )=20 at gstvaapidecoder_ffmpeg.c:483 # #15 gst_vaapi_decoder_ffmpeg_decode (decoder=3D0xafd03478,=20 buffer=3D0xae91b9e0) at gstvaapidecoder_ffmpeg.c:566 # #16 0xb5bd74ad in decode_step (decoder=3D0xafd03478, pstatus=3D0xb10ff00c= )=20 at gstvaapidecoder.c:117 # #17 gst_vaapi_decoder_get_surface (decoder=3D0xafd03478,=20 pstatus=3D0xb10ff00c) at gstvaapidecoder.c:422 # #18 0xb7fe5105 in gst_vaapidecode_step (pad=3D0xb7036008,=20 buf=3D0xae91b9e0) at gstvaapidecode.c:116 # #19 gst_vaapidecode_chain (pad=3D0xb7036008, buf=3D0xae91b9e0) at=20 gstvaapidecode.c:536 # #20 0x420dfacd in gst_pad_chain_data_unchecked (pad=3D0xb7036008,=20 is_buffer=3D1, data=3D0xae91b9e0) at gstpad.c:4131 # #21 0x420e04e7 in gst_pad_push_data (pad=3D0xb70363f0, is_buffer=3D1,=20 data=3D0xae91b9e0) at gstpad.c:4360 # #22 0xb71e2655 in gst_queue_push_one (pad=3D0xb70363f0) at gstqueue.c:1083 # #23 gst_queue_loop (pad=3D0xb70363f0) at gstqueue.c:1185 # #24 0x4210ba11 in gst_task_func (task=3D0xb70570b0) at gsttask.c:271 # #25 0x4210d047 in default_func (tdata=3D0xaeb00d58, pool=3D0xb7408c08) at=20 gsttaskpool.c:68 # #26 0x0066e214 in ?? () from /lib/libglib-2.0.so.0 # #27 0x0066c210 in ?? () from /lib/libglib-2.0.so.0 # #28 0x00585919 in start_thread () from /lib/libpthread.so.0 # #29 0x004c7e5e in clone () from /lib/libc.so.6 I am running this on Fedora Core 13 on Calpella Platform. What could be the problem? :-( Regards, Jyotsana. --------------050303070707060605030602 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1" Hi,

I am trying to play multiple video files one after the other using GStreamer(vaapidecode and vaapisink plugins) and libVA-1.0.3.
I am able to play one file successfully but once the first file is played to completion, we delete all references of the first pipeline and create a new one.
When the second file is played, application crashes with the following error:

libva: libva version 0.31.1
libva: va_getDriverName() returns 0
libva: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
libva: libva version 0.31.1
libva: va_getDriverName() returns 0
libva: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
VaapiApp: i965_media.c:277: i965_media_decode_picture: Assertion `media_state->media_states_setup' failed.

Following is the backtrace obtained from gdb:

i965_media_decode_picture: Assertion `media_state->media_states_setup' failed.
# 0xb7fff424 in __kernel_vsyscall ()
# #1  0x00414d71 in raise () from /lib/libc.so.6
# #2  0x0041664a in abort () from /lib/libc.so.6
# #3  0x0040dde8 in __assert_fail () from /lib/libc.so.6
# #4  0xb71531d5 in i965_media_decode_picture (ctx=3D0xaeb19760, profile=3DVAProfileMPEG2Main, decode_state=3D0xaeb1a524) at i965_media.c:27= 7
# #5  0xb715afcf in i965_EndPicture (ctx=3D0xaeb19760, context=3D33554= 432) at i965_drv_video.c:1146
# #6  0xb7d8cec5 in vaEndPicture (dpy=3D0xaeb1e960, context=3D33554432= ) at va.c:815
# #7  0xb5f73a85 in render_picture (s=3D0xb0701c00) at libavcodec/vaapi.c:74
# #8  ff_vaapi_common_end_frame (s=3D0xb0701c00) at libavcodec/vaapi.c= :188
# #9  0xb5d37c0b in slice_end (avctx=3D0xb0701400, picture=3D0xb074094= 0, data_size=3D0xb10fef24, buf=3D0xb0704600 "", buf_size=3D18936) at libavcodec/mpeg12.c:1935
# #10 decode_chunks (avctx=3D0xb0701400, picture=3D0xb0740940, data_size=3D0xb10fef24, buf=3D0xb0704600 "", buf_size=3D18936) at libavcodec/mpeg12.c:2303
# #11 0xb5d39290 in mpeg_decode_frame (avctx=3D0xb0701400, data=3D0xb0740940, data_size=3D0xb10fef24, avpkt=3D0xb10fee64) at libavcodec/mpeg12.c:2272
# #12 0xb5e2de35 in avcodec_decode_video2 (avctx=3D0xb0701400, picture=3D0xb0740940, got_picture_ptr=3D0xb10fef24, buf=3D0xb0704600 "", buf_size=3D18936) at libavcodec/utils.c:611
# #13 avcodec_decode_video (avctx=3D0xb0701400, picture=3D0xb0740940, got_picture_ptr=3D0xb10fef24, buf=3D0xb0704600 "", buf_size=3D18936) at libavcodec/utils.c:597
# #14 0xb5be3392 in decode_frame (decoder=3D0xafd03478, buffer=3D0xae91b9e0) at gstvaapidecoder_ffmpeg.c:483
# #15 gst_vaapi_decoder_ffmpeg_decode (decoder=3D0xafd03478, buffer=3D0xae91b9e0) at gstvaapidecoder_ffmpeg.c:566
# #16 0xb5bd74ad in decode_step (decoder=3D0xafd03478, pstatus=3D0xb10ff00c) at gstvaapidecoder.c:117
# #17 gst_vaapi_decoder_get_surface (decoder=3D0xafd03478, pstatus=3D0xb10ff00c) at gstvaapidecoder.c:422
# #18 0xb7fe5105 in gst_vaapidecode_step (pad=3D0xb7036008, buf=3D0xae91b9e0) at gstvaapidecode.c:116
# #19 gst_vaapidecode_chain (pad=3D0xb7036008, buf=3D0xae91b9e0) at gstvaapidecode.c:536
# #20 0x420dfacd in gst_pad_chain_data_unchecked (pad=3D0xb7036008, is_buffer=3D1, data=3D0xae91b9e0) at gstpad.c:4131
# #21 0x420e04e7 in gst_pad_push_data (pad=3D0xb70363f0, is_buffer=3D1, data=3D0xae91b9e0) at gstpad.c:4360
# #22 0xb71e2655 in gst_queue_push_one (pad=3D0xb70363f0) at gstqueue.c:1083
# #23 gst_queue_loop (pad=3D0xb70363f0) at gstqueue.c:1185
# #24 0x4210ba11 in gst_task_func (task=3D0xb70570b0) at gsttask.c:271
# #25 0x4210d047 in default_func (tdata=3D0xaeb00d58, pool=3D0xb7408c08) at gsttaskpool.c:68
# #26 0x0066e214 in ?? () from /lib/libglib-2.0.so.0
# #27 0x0066c210 in ?? () from /lib/libglib-2.0.so.0
# #28 0x00585919 in start_thread () from /lib/libpthread.so.0
# #29 0x004c7e5e in clone () from /lib/libc.so.6

I am running this on Fedora Core 13 on Calpella Platform.
What could be the problem? :-(

Regards,
Jyotsana.



--------------050303070707060605030602-- --===============1660050219== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1660050219==--