$ GST_DEBUG=*vaapi*:6 libtool --mode=execute gdb --args /home/gpalsingh/gst/master/gstreamer/tools/gst-launch-1.0 videotestsrc \! video/x-raw, format=RGBx \! vaapisink GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/gpalsingh/gst/master/gstreamer/tools/.libs/lt-gst-launch-1.0...done. (gdb) r Starting program: /home/gpalsingh/gst/master/gstreamer/tools/.libs/lt-gst-launch-1.0 videotestsrc \! video/x-raw, format=RGBx \! vaapisink [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0:00:00.048025752 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:804:gst_vaapi_display_calculate_pixel_aspect_ratio: calculated pixel aspect ratio: 1.002632 libva info: VA-API version 0.40.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /home/gpalsingh/gst/master/prefix/lib/dri/nouveau_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 0:00:00.102996207 4341 0x611780 INFO vaapi gstvaapiutils.c:77:vaapi_initialize: VA-API version 0.40 0:00:00.103053448 4341 0x611780 INFO vaapidisplay gstvaapidisplay.c:948:gst_vaapi_display_create_unlocked: new display addr=0x6420d0 0:00:00.144772315 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:540:ensure_profiles: 9 profiles 0:00:00.144794306 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileMPEG2Simple 0:00:00.144800078 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileMPEG2Main 0:00:00.144804168 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileVC1Simple 0:00:00.144807942 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileVC1Main 0:00:00.144811584 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileVC1Advanced 0:00:00.144816792 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileH264ConstrainedBaseline 0:00:00.144831774 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileH264Main 0:00:00.144836659 4341 0x611780 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileH264High 0:00:00.608548767 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:804:gst_vaapi_display_calculate_pixel_aspect_ratio: calculated pixel aspect ratio: 1.002632 libva info: VA-API version 0.40.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /home/gpalsingh/gst/master/prefix/lib/dri/nouveau_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 0:00:00.961470709 4337 0x81dd50 INFO vaapi gstvaapiutils.c:77:vaapi_initialize: VA-API version 0.40 0:00:00.961523973 4337 0x81dd50 INFO vaapidisplay gstvaapidisplay.c:948:gst_vaapi_display_create_unlocked: new display addr=0x964100 0:00:01.007214604 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:540:ensure_profiles: 9 profiles 0:00:01.007238344 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileMPEG2Simple 0:00:01.007244422 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileMPEG2Main 0:00:01.007248796 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileVC1Simple 0:00:01.007252647 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileVC1Main 0:00:01.007256595 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileVC1Advanced 0:00:01.007262246 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileH264ConstrainedBaseline 0:00:01.007267834 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileH264Main 0:00:01.007272852 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:547:ensure_profiles: VAProfileH264High Setting pipeline to PAUSED ... 0:00:01.079726980 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:804:gst_vaapi_display_calculate_pixel_aspect_ratio: calculated pixel aspect ratio: 1.002632 libva info: VA-API version 0.40.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /home/gpalsingh/gst/master/prefix/lib/dri/nouveau_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 0:00:01.122303067 4337 0x81dd50 INFO vaapi gstvaapiutils.c:77:vaapi_initialize: VA-API version 0.40 0:00:01.122325276 4337 0x81dd50 INFO vaapidisplay gstvaapidisplay.c:948:gst_vaapi_display_create_unlocked: new display addr=0x964230 0:00:01.122344451 4337 0x81dd50 INFO vaapisink gstvaapipluginbase.c:54:plugin_set_display: set display 0:00:01.122379137 4337 0x81dd50 INFO vaapisink gstvaapisink.c:1194:gst_vaapisink_display_changed: created VA/X11 display 0x964230 0:00:01.122387821 4337 0x81dd50 DEBUG vaapi gstvaapiutils.c:86:vaapi_check_status: vaGetDisplayAttributes(): the requested function is not implemented 0:00:01.122393634 4337 0x81dd50 DEBUG vaapisink gstvaapisink.c:1202:gst_vaapisink_display_changed: use texture rendering mode 0:00:01.122399055 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:630:ensure_properties: 0 display attributes 0:00:01.122412131 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:717:ensure_image_formats: 8 image formats 0:00:01.122417649 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:719:ensure_image_formats: NV12 0:00:01.122422663 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:719:ensure_image_formats: YV12 0:00:01.122426960 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:719:ensure_image_formats: YUYV 0:00:01.122432494 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:719:ensure_image_formats: UYVY 0:00:01.122437666 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:719:ensure_image_formats: BGRA 0:00:01.122442782 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:719:ensure_image_formats: RGBA 0:00:01.122456515 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:719:ensure_image_formats: BGRX 0:00:01.122461620 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:719:ensure_image_formats: RGBX 0:00:01.122467221 4337 0x81dd50 DEBUG vaapidisplay gstvaapidisplay.c:249:append_formats: unsupported format YUYV 0:00:01.122475553 4337 0x81dd50 DEBUG vaapi gstvaapisurface.c:337:gst_vaapi_surface_new: size 64x64, chroma type 0x1 0:00:01.122528261 4337 0x81dd50 DEBUG vaapi gstvaapisurface.c:121:gst_vaapi_surface_create: surface 0x1 0:00:01.122536343 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:251:gst_vaapi_image_new: format NV12, size 64x64 0:00:01.122563999 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:204:gst_vaapi_image_create: image 0x2 0:00:01.122674670 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.122684284 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:251:gst_vaapi_image_new: format YV12, size 64x64 0:00:01.122700522 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:204:gst_vaapi_image_create: image 0x2 0:00:01.122792749 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.122801562 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:251:gst_vaapi_image_new: format I420, size 64x64 0:00:01.122809086 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:204:gst_vaapi_image_create: image 0x2 0:00:01.122900015 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.122908581 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:251:gst_vaapi_image_new: format UYVY, size 64x64 0:00:01.122915725 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:204:gst_vaapi_image_create: image 0x2 0:00:01.123000880 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.123010691 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:251:gst_vaapi_image_new: format BGRA, size 64x64 0:00:01.123018493 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:204:gst_vaapi_image_create: image 0x2 0:00:01.123102872 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.123111468 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:251:gst_vaapi_image_new: format RGBA, size 64x64 0:00:01.123127277 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:204:gst_vaapi_image_create: image 0x2 0:00:01.123207946 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.123216555 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:251:gst_vaapi_image_new: format BGRx, size 64x64 0:00:01.123232490 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:204:gst_vaapi_image_create: image 0x2 0:00:01.123307761 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.123316831 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:251:gst_vaapi_image_new: format RGBx, size 64x64 0:00:01.123324141 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:204:gst_vaapi_image_create: image 0x2 0:00:01.123403684 4337 0x81dd50 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.123447649 4337 0x81dd50 DEBUG vaapi gstvaapisurface.c:78:gst_vaapi_surface_destroy: surface 0x1 [New Thread 0x7fffeb688700 (LWP 4355)] Pipeline is PREROLLING ... 0:00:01.123945584 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1670:gst_vaapisink_event: handling event stream-start [New Thread 0x7fffeae87700 (LWP 4356)] Got context from element 'vaapisink0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx1"; 0:00:01.124163006 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1670:gst_vaapisink_event: handling event caps 0:00:01.124184272 4337 0x965450 INFO vaapisink gstvaapipluginbase.c:519:ensure_sinkpad_allocator: enabling direct upload in sink allocator 0:00:01.124224908 4337 0x965450 DEBUG vaapi gstvaapisurface.c:376:gst_vaapi_surface_new_full: size 320x240, format RGBx, flags 0x00000000 0:00:01.124266053 4337 0x965450 DEBUG vaapi gstvaapisurface.c:213:gst_vaapi_surface_create_full: surface 0x1 0:00:01.124275673 4337 0x965450 DEBUG vaapi gstvaapiimage.c:293:gst_vaapi_image_new_with_image: VA image 0x00000002, format RGBX, size 320x240 0:00:01.124314558 4337 0x965450 DEBUG vaapi gstvaapiimage.c:118:gst_vaapi_image_destroy: image 0x2 0:00:01.124324604 4337 0x965450 INFO vaapivideomemory gstvaapivideomemory.c:791:allocator_configure_surface_info: has direct-uploading for RGBx surfaces 0:00:01.124331050 4337 0x965450 DEBUG vaapi gstvaapisurface.c:78:gst_vaapi_surface_destroy: surface 0x1 0:00:01.124419147 4337 0x965450 DEBUG vaapivideopool gstvaapivideobufferpool.c:145:gst_vaapi_video_buffer_pool_set_config: config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\ format\=\(string\)RGBx\,\ width\=\(int\)320\,\ height\=\(int\)240\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive", size=(uint)307200, min-buffers=(uint)2, max-buffers=(uint)0, allocator=(GstAllocator)"\(GstVaapiVideoAllocator\)\ vaapivideoallocator0", params=(GstAllocationParams)NULL, options=(string)< GstBufferPoolOptionVaapiVideoMeta, GstBufferPoolOptionVideoMeta >; 0:00:01.124455236 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1334:gst_vaapisink_set_caps: video pixel-aspect-ratio 1/1 0:00:01.124463439 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1304:update_colorimetry: colorimetry sRGB 0:00:01.124491028 4337 0x965450 DEBUG vaapi gstvaapiwindow_x11.c:573:gst_vaapi_window_x11_new: new window, size 320x240 0:00:01.124640854 4337 0x965450 DEBUG vaapi gstvaapiwindow_x11.c:270:gst_vaapi_window_x11_create: xid 0x4000001 0:00:01.124657375 4337 0x965450 DEBUG vaapi gstvaapiwindow.c:70:gst_vaapi_window_create: backend resized window to 320x240 0:00:01.125983038 4337 0x965450 DEBUG vaapisink gstvaapisink.c:936:gst_vaapisink_set_event_handling: starting xevent thread [New Thread 0x7fffea686700 (LWP 4357)] 0:00:01.126141543 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1361:gst_vaapisink_set_caps: window size 320x240 0:00:01.126179756 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1018:gst_vaapisink_ensure_render_rect: ensure render rect within 320x240 bounds 0:00:01.126188309 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1022:gst_vaapisink_ensure_render_rect: display pixel-aspect-ratio 1/1 0:00:01.126195272 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1030:gst_vaapisink_ensure_render_rect: video size 320x240, calculated ratio 4/3 0:00:01.126201724 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1034:gst_vaapisink_ensure_render_rect: keeping window height 0:00:01.126206582 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1042:gst_vaapisink_ensure_render_rect: scaling video to 320x240 0:00:01.126211924 4337 0x965450 DEBUG vaapisink gstvaapisink.c:1052:gst_vaapisink_ensure_render_rect: render rect (0,0):320x240 0:00:01.126330430 4337 0x965450 DEBUG vaapivideopool gstvaapivideobufferpool.c:145:gst_vaapi_video_buffer_pool_set_config: config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\ format\=\(string\)RGBx\,\ width\=\(int\)320\,\ height\=\(int\)240\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive", size=(uint)307200, min-buffers=(uint)2, max-buffers=(uint)0, allocator=(GstAllocator)"\(GstVaapiVideoAllocator\)\ vaapivideoallocator0", params=(GstAllocationParams)NULL, options=(string)< GstBufferPoolOptionVaapiVideoMeta, GstBufferPoolOptionVideoMeta >; 0:00:01.126431250 4337 0x965450 DEBUG vaapi gstvaapisurface.c:376:gst_vaapi_surface_new_full: size 320x240, format RGBx, flags 0x00000000 0:00:01.126903430 4337 0x965450 DEBUG vaapi gstvaapisurface.c:213:gst_vaapi_surface_create_full: surface 0x1 0:00:01.126921296 4337 0x965450 DEBUG vaapi gstvaapiimage.c:293:gst_vaapi_image_new_with_image: VA image 0x00000002, format RGBX, size 320x240 Thread 2 "videotestsrc0:s" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffeb688700 (LWP 4355)] 0x00007ffff7f1c196 in ?? () (gdb) backtrace #0 0x00007ffff7f1c196 in ?? () #1 0x00007ffff5aa4dfe in video_orc_pack_RGBA (d1=0x7ffff7ff7e00 '\377' , s1=0x7fffe40046a0 '\377' , n=320) at tmp-orc.c:4771 #2 0x00007ffff5ce38fe in convert_hline_generic (p=, frame=0x7fffeb687940, y=) at videotestsrc.c:1289 #3 0x00007ffff5ce3588 in videotestsrc_convert_tmpline (p=p@entry=0x7fffeb687830, frame=frame@entry=0x7fffeb687940, j=j@entry=118) at videotestsrc.c:273 #4 0x00007ffff5ce3f1d in gst_video_test_src_smpte (v=0x9e5cd0, pts=, frame=0x7fffeb687940) at videotestsrc.c:351 #5 0x00007ffff5ce13bc in gst_video_test_src_fill (psrc=0x9e5cd0, buffer=0x7fffe4012080) at gstvideotestsrc.c:1121 #6 0x00007ffff5810a2f in gst_base_src_default_create (src=0x9e5cd0, offset=18446744073709551615, size=4096, buffer=0x7fffeb687d08) at gstbasesrc.c:1474 #7 0x00007ffff5813b56 in gst_base_src_get_range (src=src@entry=0x9e5cd0, offset=offset@entry=18446744073709551615, length=4096, buf=buf@entry=0x7fffeb687de8) at gstbasesrc.c:2453 #8 0x00007ffff581576f in gst_base_src_loop (pad=0x960060) at gstbasesrc.c:2729 #9 0x00007ffff7b46621 in gst_task_func (task=0xa4d050) at gsttask.c:335 #10 0x00007ffff75ab54e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #11 0x00007ffff75aabb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #12 0x00007ffff73246ba in start_thread (arg=0x7fffeb688700) at pthread_create.c:333 #13 0x00007ffff705a82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109