Bug 70522 - Mplayer interrupted while playing two mpeg2 files
Summary: Mplayer interrupted while playing two mpeg2 files
Status: VERIFIED NOTOURBUG
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: ykzhao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 07:35 UTC by zhenxiang.li
Modified: 2013-11-19 08:50 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
The file was produced by mplayer (7.74 KB, text/plain)
2013-10-16 08:07 UTC, zhenxiang.li
Details
the test patch for the mplayer crash issue during playing back the mentioned mpeg2 video (1.25 KB, patch)
2013-11-19 07:08 UTC, ykzhao
Details | Splinter Review
the test patch for the mplayer crash issue during playing back the mentioned mpeg2 video (1.97 KB, patch)
2013-11-19 08:50 UTC, ykzhao
Details | Splinter Review

Description zhenxiang.li 2013-10-16 07:35:49 UTC
Summary:
--------------
The two MPEG2 files are twilight_zone_mei_MEI2.stream17 and twilight_zone_mei_MEI2.stream17.long, both of which are pieced together by two different frame W & H.
It's a regression, since it passed in the nightly testing before Oct.

Environment:
--------------
libva(staging): 29f6de2e1cf1e08f85d6a3040478acd82cc458a8
intel_driver(staging): 1cee858036a87837deddc87586701ed869f96261
mplayer(hwaccel-vaapi): 1923fa10ed77bbf8408f2ce312d85a97dab1f0f3

Reproduce steps:
--------------
mplayer -nosound -fps 30 -vo vaapi -va vaapi
bitstreams/twilight_zone_mei_MEI2.stream17

Log info:
--------------
Playing bitstreams/twilight_zone_mei_MEI2.stream17.
libavformat version 55.7.100 (internal)
MPEG-ES file format detected.
VIDEO:  MPEG2  704x480  (aspect 2)  30.000 fps  4000.0 kbps (500.0 kbyte/s)
Load subtitles in bitstreams/
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.9.100 (internal)
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
Audio: no sound
FPS forced to be 30.000  (ftime: 0.033).
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vaapi] 704x480 => 704x528 MPEG-2 VA-API Acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
V:   0.1   4/  4 ??% ??% ??,?% 0 0
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vaapi] 256x256 => 342x256 MPEG-2 VA-API Acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
mplayer: libvo/vo_vaapi.c:2523: get_surface: Assertion `!va_free_surfaces[va_free_surfaces_tail_index]' failed.

MPlayer interrupted by signal 6 in module: decode_video
- MPlayer crashed. This shouldn't happen.
Comment 1 zhenxiang.li 2013-10-16 08:07:50 UTC
Created attachment 87713 [details]
The file was produced by mplayer

Produced by executing the cmd "mplayer -nosound -fps 30 -vo vaapi -va vaapi twilight_zone_mei_MEI2.stream17.long 2>decoder.2 >decoder.1"
the file twilight_zone_mei_MEI2.stream17.long has 122 frames and mplayer interrupted at the 60th frame
Comment 2 haihao 2013-10-17 04:03:32 UTC
Could you help to bisect the code to find the culprit ?
Comment 3 zhenxiang.li 2013-10-17 07:28:54 UTC
I tried the following commits but it still reproduced the problem.
libva(staging): c61d986851140a6d1e3f9a6d788bcb7a9407dffc
intel-driver(staging): bd5d588c730e1e436b09805ffd039855ad3f6a52
these commits were applied before Sep.10 but the test results on nightly test page were passed, so we doubt whether this problem existed before or not and it may not a regression.
Comment 4 zhenxiang.li 2013-10-21 09:27:24 UTC
It can be played with gst0.10 && gst1.0
Comment 5 ykzhao 2013-11-19 07:08:30 UTC
Created attachment 89451 [details] [review]
the test patch for the mplayer crash issue during playing back the mentioned mpeg2 video

The attached is the workaround patch for mplayer that is to fix the crash issue
Comment 6 ykzhao 2013-11-19 07:14:14 UTC
After a lot of debugs it seems that this is the mplayer issue instead of the driver issue. 

The attached patch in comment #5 can workaround the crash issue. 

So this bug will be regarded as "NOTOURBUG" and marked as resolved.
Comment 7 ykzhao 2013-11-19 08:50:28 UTC
Created attachment 89453 [details] [review]
the test patch for the mplayer crash issue during playing back the mentioned mpeg2 video


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.