[Libva] [libyami] libyami Digest, Vol 8, Issue 5
Ratin
ratin3 at gmail.com
Wed May 20 10:39:04 PDT 2015
libyami/libva kernel / xorg crash
Ubuntu 14.04.2 on Intel NUC, D54250WYK, version H13922-303, serial no:
GEWY420019Z3
I have two decode / render session going in a sequence (libyami/libva),
each stream lasts for only one second after it has opened, decoded upto one
second of video and closes the file, moves over to next stream, does the
same thing etc. This loop works fine on ION based system with VDPAU based
decoding. The app lasted 12 hours and then had a kernel Oops. Any idea?
May 20 06:43:04 nuc kernel: [55628.051307] BUG: unable to handle kernel
NULL pointer dereference at 0000000000000008
May 20 06:43:04 nuc kernel: [55628.051366] IP: [<ffffffff8139dae0>]
interval_tree_iter_next+0x0/0x50
May 20 06:43:04 nuc kernel: [55628.051405] PGD 2069c0067 PUD 2124ae067 PMD 0
May 20 06:43:04 nuc kernel: [55628.051434] Oops: 0000 [#1] SMP
May 20 06:43:04 nuc kernel: [55628.051455] Modules linked in: bnep rfcomm
bluetooth 6lowpan_iphc rpcsec_gss_krb5 nfsv4 nfsd auth_rpcgss nfs_acl nfs
lockd sunrpc fscache nls_iso8859_1 joydev mei_me snd_hda_codec_realtek
snd_hda_codec_generic snd_hda_codec_hdmi intel_rapl mei
x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64
lrw gf128mul glue_helper ablk_helper cryptd ir_lirc_codec lirc_dev
ir_mce_kbd_decoder snd_hda_intel ir_sharp_decoder lpc_ich
snd_hda_controller i915 ir_sanyo_decoder snd_soc_rt5640 ir_sony_decoder
snd_hda_codec ir_jvc_decoder snd_soc_rl6231 snd_soc_core snd_hwdep
snd_compress ir_rc6_decoder snd_pcm_dmaengine ir_rc5_decoder ir_nec_decoder
drm_kms_helper snd_pcm drm snd_seq_midi i2c_algo_bit snd_seq_midi_event
snd_rawmidi snd_seq snd_seq_device snd_timer rc_rc6_mce nuvoton_cir snd
rc_core video i2c_hid soundcore dw_dmac dw_dmac_core snd_soc_sst_acpi
i2c_designware_platform i2c_designware_core 8250_dw spi_pxa2xx_platform
mac_hid parport_pc ppdev lp parport hid_generic usbhid hid e1000e ahci ptp
libahci pps_core sdhci_acpi sdhci
May 20 06:43:04 nuc kernel: [55628.052100] CPU: 2 PID: 26099 Comm:
NLSS-SDL-Thread Not tainted 3.16.0-34-generic #47~14.04.1-Ubuntu
May 20 06:43:04 nuc kernel: [55628.052152] Hardware name:
/D54250WYK, BIOS WYLPT10H.86A.0033.2014.1201.0940 12/01/2014
May 20 06:43:04 nuc kernel: [55628.052203] task: ffff880212567010 ti:
ffff88018cab0000 task.ti: ffff88018cab0000
May 20 06:43:04 nuc kernel: [55628.052241] RIP: 0010:[<ffffffff8139dae0>]
[<ffffffff8139dae0>] interval_tree_iter_next+0x0/0x50
May 20 06:43:04 nuc kernel: [55628.052292] RSP: 0000:ffff88018cab3c98
EFLAGS: 00010246
May 20 06:43:04 nuc kernel: [55628.052319] RAX: 0000000000000000 RBX:
ffff88021175e598 RCX: 00007fc7fc000000
May 20 06:43:04 nuc kernel: [55628.052356] RDX: 00007fc7fbffffff RSI:
00007fc7fbfff000 RDI: 0000000000000000
May 20 06:43:04 nuc kernel: [55628.052392] RBP: ffff88018cab3cf8 R08:
0000000000000000 R09: 0000000000000001
May 20 06:43:04 nuc kernel: [55628.052429] R10: ffffea00058c3240 R11:
ffff880000000ff8 R12: 00007fc7fbfff000
May 20 06:43:04 nuc kernel: [55628.052467] R13: ffff88021175e598 R14:
00007fc7fbfff000 R15: 0000000000000000
May 20 06:43:04 nuc kernel: [55628.052506] FS: 00007fc8e4982700(0000)
GS:ffff88021fb00000(0000) knlGS:0000000000000000
May 20 06:43:04 nuc kernel: [55628.052546] CS: 0010 DS: 0000 ES: 0000 CR0:
0000000080050033
May 20 06:43:04 nuc kernel: [55628.052576] CR2: 0000000000000008 CR3:
00000001ffd81000 CR4: 00000000001407e0
May 20 06:43:04 nuc kernel: [55628.052611] Stack:
May 20 06:43:04 nuc kernel: [55628.052623] ffffffffc040f579
ffff88021175e5b0 ffffea00058c3200 0000000000000000
May 20 06:43:04 nuc kernel: [55628.052668] 00007fc7fbffffff
ffff88021175e580 0000000000000000 ffff88021175e598
May 20 06:43:04 nuc kernel: [55628.052711] ffff8801ee5cf100
00007fc7fc000000 00007fc7fbfff000 0000000000000000
May 20 06:43:04 nuc kernel: [55628.052755] Call Trace:
May 20 06:43:04 nuc kernel: [55628.052794] [<ffffffffc040f579>] ?
i915_gem_userptr_mn_invalidate_range_start+0x1b9/0x240 [i915]
May 20 06:43:04 nuc kernel: [55628.052848] [<ffffffff811afd1b>]
__mmu_notifier_invalidate_range_start+0x5b/0x80
May 20 06:43:04 nuc kernel: [55628.052894] [<ffffffff8118c88c>]
do_wp_page+0x72c/0x780
May 20 06:43:04 nuc kernel: [55628.052927] [<ffffffff8118eaec>]
handle_mm_fault+0x7fc/0x10c0
May 20 06:43:04 nuc kernel: [55628.052963] [<ffffffff8105aeee>]
__do_page_fault+0x19e/0x560
May 20 06:43:04 nuc kernel: [55628.052996] [<ffffffff81094728>] ?
hrtimer_try_to_cancel+0x48/0xe0
May 20 06:43:04 nuc kernel: [55628.053031] [<ffffffff81767f22>] ?
do_nanosleep+0x92/0x130
May 20 06:43:04 nuc kernel: [55628.053061] [<ffffffff8109534b>] ?
hrtimer_nanosleep+0xbb/0x180
May 20 06:43:04 nuc kernel: [55628.053094] [<ffffffff810941e0>] ?
hrtimer_get_res+0x50/0x50
May 20 06:43:04 nuc kernel: [55628.053126] [<ffffffff8105b2e1>]
do_page_fault+0x31/0x70
May 20 06:43:04 nuc kernel: [55628.053155] [<ffffffff8176eaa8>]
page_fault+0x28/0x30
May 20 06:43:04 nuc kernel: [55628.053181] Code: 48 85 ff 74 16 48 39 77 28
72 0a 55 48 89 e5 e8 87 ff ff ff 5d f3 c3 0f 1f 40 00 f3 c3 66 66 66 66 66
2e 0f 1f 84 00 00 00 00 00 <48> 8b 4f 08 48 85 c9 74$
May 20 06:43:04 nuc kernel: [55628.053365] RIP [<ffffffff8139dae0>]
interval_tree_iter_next+0x0/0x50
May 20 06:43:04 nuc kernel: [55628.053402] RSP <ffff88018cab3c98>
May 20 06:43:04 nuc kernel: [55628.053420] CR2: 0000000000000008
May 20 06:43:04 nuc kernel: [55628.069411] ---[ end trace e97a323c6d0c855e
]---
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^$
On Mon, Apr 27, 2015 at 11:20 PM, Yu, Jiankang <jiankang.yu at intel.com>
wrote:
> Hi,
>
> How do you integrate libyami to ffmpeg?
>
> Does this issue only happen for this specific stream? or other streams
> have the same issue? Thanks a lot.
>
> Would you please get the following patch:
> https://github.com/01org/player-ffmpeg-yami
>
> Please follow the readme in the patch to apply and build the example
> palyer.
>
> 1. setup env for ffmpeg build: "source build-ffmpeg.env"
> 2. build ffmpeg (with yami patches): "make ffmpeg"
> by default, ffmpeg is installed to /opt/ffmpeg
> 3. build the example player: "make player"
>
> I have tried "player -I Geldkoffer.mp4 -m 1", the file can be played well.
>
> Best regards,
> Jiankang
>
> -----Original Message-----
> From: libyami [mailto:libyami-bounces at lists.01.org] On Behalf Of
> libyami-request at lists.01.org
> Sent: Saturday, April 25, 2015 3:00 AM
> To: libyami at lists.01.org
> Subject: libyami Digest, Vol 8, Issue 5
>
> Send libyami mailing list submissions to
> libyami at lists.01.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.01.org/mailman/listinfo/libyami
> or, via email, send a message with subject or body 'help' to
> libyami-request at lists.01.org
>
> You can reach the person managing the list at
> libyami-owner at lists.01.org
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of libyami digest..."
>
>
> Today's Topics:
>
> 1. Re: ffmpeg decoding not working (Artem Makhutov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 24 Apr 2015 13:31:44 +0200
> From: Artem Makhutov <artem at makhutov.org>
> To: "Yu, Jiankang" <jiankang.yu at intel.com>
> Cc: "libyami at lists.01.org" <libyami at lists.01.org>
> Subject: Re: [libyami] ffmpeg decoding not working
> Message-ID: <553A29A0.10100 at makhutov.org>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> Hello,
>
> I still can not get it working.
>
>
> You can download the test video here:
>
> http://www.makhutov.org/Geldkoffer.mp4
>
> yamidecode works, but ffmpeg not:
>
>
> artem at apollo ~ $ yamidecode -i Geldkoffer.mp4 -m -1 input file:
> Geldkoffer.mp4, renderMode: -1 libva info: VA-API version 0.37.0 libva
> info: va_getDriverName() returns 0 libva info: Trying to open
> /usr/lib64/va/drivers/i965_drv_video.so
> libva info: Found init function __vaDriverInit_0_37 libva info:
> va_openDriver() returns 0 libva info: VA-API version 0.37.0 libva info:
> va_getDriverName() returns 0 libva info: Trying to open
> /usr/lib64/va/drivers/i965_drv_video.so
> libva info: Found init function __vaDriverInit_0_37 libva info:
> va_openDriver() returns 0 rendered frame count: 198 in 2633 ms; fps=75.20
> rendered frame count: 193 in 520 ms; fps=371.15 decode done
>
> ------
>
> artem at apollo ~ $ ffmpeg -i Geldkoffer.mp4 /tmp/test3.avi ffmpeg version
> 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers
> built on Apr 24 2015 11:20:39 with gcc 4.9.2 (Gentoo 4.9.2 p1.3,
> pie-0.6.2)
> configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
> --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc
> --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar
> --optflags='-march=native -O2 -pipe' --extra-cflags='-march=native -O2
> -pipe' --extra-cxxflags='-march=native -O2 -pipe' --disable-static
> --enable-gpl --enable-postproc --enable-avfilter --enable-avresample
> --disable-stripping --enable-version3 --enable-version3 --enable-nonfree
> --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss
> --disable-indev=jack --disable-outdev=oss --enable-version3
> --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug
> --disable-doc --enable-gnutls --enable-hardcoded-tables --enable-iconv
> --disable-lzma --enable-network --disable-openssl --enable-libsmbclient
> --enable-ffplay --enable-vaapi --disable-vdpau --enable-xlib
> --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib
> --enable-libvo-aacenc --enable-libvo-amrw
> benc --enable-libmp3lame --enable-libaacplus --enable-libfaac
> --enable-libtheora --disable-libtwolame --enable-libwavpack
> --disable-libwebp --enable-libx264 --disable-libx265 --enable-libxvid
> --enable-libyami-h264 --disable-libcdio --disable-libiec61883
> --disable-libdc1394 --enable-libcaca --disable-openal --enable-opengl
> --disable-libv4l2 --enable-libpulse --enable-x11grab --disable-libbs2b
> --disable-libflite --disable-frei0r --disable-libfribidi
> --enable-fontconfig --disable-ladspa --disable-libass --enable-libfreetype
> --disable-libsoxr --enable-pthreads --enable-libopencore-amrwb
> --enable-libopencore-amrnb --enable-libfdk-aac --disable-libopenjpeg
> --enable-libbluray --disable-libcelt --disable-libgme --enable-libgsm
> --enable-libmodplug --disable-libopus --disable-libquvi --enable-librtmp
> --enable-libssh --disable-libschroedinger --enable-libspeex
> --enable-libvorbis --disable-libvpx --disable-libzvbi --disable-armv5te
> --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp
> --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2
> --disable-mipsfpu --disable-altivec --disable-amd3dnow
> --disable-amd3dnowext --disable-avx
> --disable-avx2 --disable-fma3 --disable-fma4 --disable-xop --cpu=host
> libavutil 54. 15.100 / 54. 15.100
> libavcodec 56. 13.100 / 56. 13.100
> libavformat 56. 15.102 / 56. 15.102
> libavdevice 56. 3.100 / 56. 3.100
> libavfilter 5. 2.103 / 5. 2.103
> libavresample 2. 1. 0 / 2. 1. 0
> libswscale 3. 1.101 / 3. 1.101
> libswresample 1. 1.100 / 1. 1.100
> libpostproc 53. 3.100 / 53. 3.100
> libva info: VA-API version 0.37.0
> libva info: va_getDriverName() returns 0 libva info: Trying to open
> /usr/lib64/va/drivers/i965_drv_video.so
> libva info: Found init function __vaDriverInit_0_37 libva info:
> va_openDriver() returns 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> 'Geldkoffer.mp4':
> Metadata:
> major_brand : isom
> minor_version : 512
> compatible_brands: isomiso2avc1mp41
> encoder : Lavf56.15.102
> Duration: 00:00:08.33, start: 0.000000, bitrate: 8853 kb/s
> Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p,
> 1920x1080, 8512 kb/s, 25.12 fps, 25 tbr, 90k tbn, 90k tbc (default)
> Metadata:
> handler_name : VideoHandler
> Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, mono,
> s16p, 384 kb/s (default)
> Metadata:
> handler_name : SoundHandler
> File '/tmp/test3.avi' already exists. Overwrite ? [y/N] y Output #0, avi,
> to '/tmp/test3.avi':
> Metadata:
> major_brand : isom
> minor_version : 512
> compatible_brands: isomiso2avc1mp41
> ISFT : Lavf56.15.102
> Stream #0:0(und): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p,
> 1920x1080, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
> Metadata:
> handler_name : VideoHandler
> encoder : Lavc56.13.100 mpeg4
> Stream #0:1(und): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055),
> 48000 Hz, mono, s16p (default)
> Metadata:
> handler_name : SoundHandler
> encoder : Lavc56.13.100 libmp3lame
> Stream mapping:
> Stream #0:0 -> #0:0 (h264 (libyami_h264) -> mpeg4 (native))
> Stream #0:1 -> #0:1 (mp3 (native) -> mp3 (libmp3lame)) Press [q] to
> stop, [?] for help libva info: VA-API version 0.37.0 libva info:
> va_getDriverName() returns 0 libva info: Trying to open
> /usr/lib64/va/drivers/i965_drv_video.so
> libva info: Found init function __vaDriverInit_0_37 libva info:
> va_openDriver() returns 0 libyami error(vaapidecoder_h264.cpp, 1534):
> parser nalu uncheck failed code =0 libyami error(vaapidecoder_h264_dpb.cpp,
> 1252): found no short-term reference picture with PicNum = 13 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 13 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 12 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 11 libyami error(vaapidecoder_h264.cpp, 1534): parser
> nalu uncheck failed code =0 libyami error(vaapidecoder_h264.cpp, 1534):
> parser nalu uncheck failed code =0 libyami error(vaapidecoder_h264.cpp,
> 1534): parser nalu uncheck failed code =0 libyami
> error(vaapidecoder_h264.cpp, 1534): parser nalu uncheck failed code =0
> WARNING: !!!incorrect slice_param. The first_mb_in_slice of next_slice is
> less than or equal to that in current slice libyami error(vaapiutils.h,
> 62): vaEndPicture(): invalid parameter libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 6 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 6 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 5 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 4 libyami
> error(vaapidecoder_h264.cpp, 1534): parser nalu uncheck failed code =0
> libyami error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term
> reference picture with PicNum = 4 libyami error(vaapidecoder_h264_dpb.cpp,
> 1252): found no short-term reference picture with PicNum = 4 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 3 libyami error(vaapid
> ecoder_h264_dpb.cpp, 1252): found no short-term reference picture with
> PicNum = 2 libyami error(vaapidecoder_h264.cpp, 1534): parser nalu uncheck
> failed code =0 libyami error(vaapidecoder_h264_dpb.cpp, 1252): found no
> short-term reference picture with PicNum = 4 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 4 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 3 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 2 libyami error(vaapidecoder_h264.cpp, 1534): parser
> nalu uncheck failed code =0 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 4 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 4 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 3 libyami
> error(vaapidecoder_h264_dpb.cpp, 12
> 52): found no short-term reference picture with PicNum = 2 libyami
> error(vaapidecoder_h264.cpp, 1534): parser nalu uncheck failed code =0
> libyami error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term
> reference picture with PicNum = 4 libyami error(vaapidecoder_h264_dpb.cpp,
> 1252): found no short-term reference picture with PicNum = 4 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 3 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 2 libyami
> error(vaapidecoder_h264.cpp, 1534): parser nalu uncheck failed code =0
> libyami error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term
> reference picture with PicNum = 4 libyami error(vaapidecoder_h264_dpb.cpp,
> 1252): found no short-term reference picture with PicNum = 4 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 3 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-ter
> m reference picture with PicNum = 2 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 1 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 2 libyami
> error(vaapiutils.h, 62): vaEndPicture(): invalid parameter libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 5 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 5 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 4 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 3 libyami
> error(vaapidecoder_h264_dpb.cpp, 1252): found no short-term reference
> picture with PicNum = 3 libyami error(vaapidecoder_h264_dpb.cpp, 1252):
> found no short-term reference picture with PicNum = 4
> frame= 6 fps=0.0 q=6.4 Lsize= 525kB time=00:00:08.32 bitrate=
> 516.2kbits/s dup=0 drop=1
> video:438kB audio:65kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 4.204623% Speicherzugriffsfehler artem at apollo ~ $
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 4311 bytes
> Desc: Kryptographische S/MIME-Signatur
> URL: <
> http://lists.01.org/pipermail/libyami/attachments/20150424/d60a66dc/attachment-0001.p7s
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> libyami mailing list
> libyami at lists.01.org
> https://lists.01.org/mailman/listinfo/libyami
>
>
> ------------------------------
>
> End of libyami Digest, Vol 8, Issue 5
> *************************************
> _______________________________________________
> libyami mailing list
> libyami at lists.01.org
> https://lists.01.org/mailman/listinfo/libyami
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libva/attachments/20150520/a5f5e940/attachment-0001.html>
More information about the Libva
mailing list