vaapih264enc: Crashes on Coffeelake
gst-launch-1.0 videotestsrc ! vaapih264enc ! fakesink
(gdb) bt
#0 0x00007f7572af1081 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007f7572adc535 in __GI_abort () at abort.c:79
#2 0x00007f7572adc40f in __assert_fail_base
(fmt=0x7f7572c3e710 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f7570ae4e43 "encoder_context->mfc_context", file=0x7f7570ae4e24 "i965_encoder.c", line=1692, function=<optimized out>)
at assert.c:92
#3 0x00007f7572ae9b92 in __GI___assert_fail (assertion=0x7f7570ae4e43 "encoder_context->mfc_context", file=0x7f7570ae4e24 "i965_encoder.c", line=1692, function=0x7f7570ae5790 "intel_enc_hw_context_init")
at assert.c:101
#4 0x00007f7570a8212b in () at /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
#5 0x00007f7570a791be in () at /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
#6 0x00007f7572210c71 in vaCreateContext () at /usr/lib/x86_64-linux-gnu/libva.so.2
#7 0x00007f7572405c05 in context_create (context=context@entry=0x7f7568006130) at ../subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapicontext.c:198
#8 0x00007f7572405db8 in gst_vaapi_context_new (display=<optimized out>, cip=cip@entry=0x561233fa3300) at ../subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapicontext.c:442
#9 0x00007f75723c773c in gst_vaapi_encoder_ensure_context (encoder=0x561233fa3290 [GstVaapiEncoderH264]) at ../subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapiencoder.c:814
#10 0x00007f75723c773c in gst_vaapi_encoder_reconfigure_internal (encoder=0x561233fa3290 [GstVaapiEncoderH264]) at ../subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapiencoder.c:864
#11 0x00007f75723c82ad in gst_vaapi_encoder_set_codec_state (encoder=<optimized out>, state=state@entry=0x7f756800c000) at ../subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapiencoder.c:968
#12 0x00007f7572397a1f in set_codec_state (encode=0x561233f7b280, state=0x7f756800c000) at ../subprojects/gstreamer-vaapi/gst/vaapi/gstvaapiencode.c:588
#13 0x00007f7572397bd1 in gst_vaapiencode_set_format (venc=0x561233f7b280 [GstVaapiEncodeH264], state=0x7f756800c000) at ../subprojects/gstreamer-vaapi/gst/vaapi/gstvaapiencode.c:617
#14 0x00007f757259357f in gst_video_encoder_setcaps (caps=0x7f7568003b20, encoder=0x561233f7b280 [GstVaapiEncodeH264]) at ../subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoencoder.c:672
#15 0x00007f757259357f in gst_video_encoder_sink_event_default (encoder=0x561233f7b280 [GstVaapiEncodeH264], event=0x561233f80560) at ../subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoencoder.c:1027
#16 0x00007f7572396877 in gst_vaapiencode_sink_event (venc=0x561233f7b280 [GstVaapiEncodeH264], event=0x561233f80560) at ../subprojects/gstreamer-vaapi/gst/vaapi/gstvaapiencode.c:827
#17 0x00007f7572ec72dc in gst_pad_send_event_unchecked (pad=pad@entry=0x561233f6c2e0 [GstPad], event=event@entry=0x561233f80560, type=<optimized out>, type@entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM)
at ../subprojects/gstreamer/gst/gstpad.c:5838
#18 0x00007f7572ec7854 in gst_pad_push_event_unchecked (pad=pad@entry=0x561233f6c090 [GstPad], event=0x561233f80560, type=<optimized out>, type@entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM)
at ../subprojects/gstreamer/gst/gstpad.c:5483
#19 0x00007f7572ec7cc6 in push_sticky (pad=pad@entry=0x561233f6c090 [GstPad], ev=ev@entry=0x7f757067ac40, user_data=user_data@entry=0x7f757067aca0) at ../subprojects/gstreamer/gst/gstevent.h:442
#20 0x00007f7572ec5750 in events_foreach (pad=pad@entry=0x561233f6c090 [GstPad], func=func@entry=0x7f7572ec7c70 <push_sticky>, user_data=user_data@entry=0x7f757067aca0)
at ../subprojects/gstreamer/gst/gstpad.c:608
#21 0x00007f7572ed04e1 in check_sticky (event=0x561233f80560, pad=0x561233f6c090 [GstPad]) at ../subprojects/gstreamer/gst/gstpad.c:4058
#22 0x00007f7572ed04e1 in gst_pad_push_event (pad=0x561233f6c090 [GstPad], event=0x561233f80560) at ../subprojects/gstreamer/gst/gstpad.c:5614
#23 0x00007f75725193ab in gst_base_src_set_caps (src=src@entry=0x561233f6a420 [GstVideoTestSrc], caps=caps@entry=0x7f7568003b20) at ../subprojects/gstreamer/libs/gst/base/gstbasesrc.c:954
#24 0x00007f757251987b in gst_base_src_default_negotiate (basesrc=0x561233f6a420 [GstVideoTestSrc]) at ../subprojects/gstreamer/libs/gst/base/gstbasesrc.c:3347
#25 0x00007f7572514279 in gst_base_src_negotiate_unlocked (basesrc=basesrc@entry=0x561233f6a420 [GstVideoTestSrc]) at ../subprojects/gstreamer/libs/gst/base/gstbasesrc.c:3387
#26 0x00007f7572516d28 in gst_base_src_loop (pad=0x561233f6c090 [GstPad]) at ../subprojects/gstreamer/libs/gst/base/gstbasesrc.c:2807
#27 0x00007f7572efc53f in gst_task_func (task=0x561233fa4050 [GstTask]) at ../subprojects/gstreamer/gst/gsttask.c:328
#28 0x00007f7572d6c263 in g_thread_pool_thread_proxy (data=<optimized out>) at ../../../glib/gthreadpool.c:308
#29 0x00007f7572d6b89d in g_thread_proxy (data=0x561233de9a80) at ../../../glib/gthread.c:805
#30 0x00007f7572c7ffb7 in start_thread (arg=<optimized out>) at pthread_create.c:486
#31 0x00007f7572bb149f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95