GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_lock': Invalid argument. Aborting.

Sergei Vorobyov sergei.vorobyov at facilitylabs.com
Tue Oct 14 02:27:03 PDT 2014


Here is some additional debugging information. It's always happening in
vaapisink/pthreads

[from /var/log/syslog]
Oct 14 09:41:55 nuc3 kernel: [   57.912818] vaapidecode4:sr[2091]: segfault
at 9f200000b76 ip 00007fd526dfe414 sp 00007fd4e9e29750 error 4 in
libpthread-2.19.so[7fd526df4000+19000]
Oct 14 10:10:06 nuc3 kernel: [   64.427324] vaapidecode3:sr[2148]: segfault
at 9f200000b76 ip 00007ff967a0d414 sp 00007ff92eaf1750 error 4 in
libpthread-2.19.so[7ff967a03000+19000]
Oct 14 10:10:33 nuc3 kernel: [   91.503340] vaapidecode4:sr[2207]: segfault
at 71300004692 ip 00007ff2490b4414 sp 00007ff235db6750 error 4 in
libpthread-2.19.so[7ff2490aa000+19000]
Oct 14 10:11:34 nuc3 kernel: [  151.715247] vaapidecode4:sr[2332]: segfault
at 89800000011 ip 00007fe90d82d414 sp 00007fe8cbffd750 error 4 in
libpthread-2.19.so[7fe90d823000+19000]
Oct 14 10:43:41 nuc3 kernel: [  160.213289] vaapidecode5:sr[2379]: segfault
at 7bcebba0 ip 00007f458a517414 sp 00007f456effb750 error 4 in
libpthread-2.19.so[7f458a50d000+19000]
Oct 14 10:43:55 nuc3 kernel: [  175.072174] vaapidecode4:sr[2413]: segfault
at 110800002d82 ip 00007f160d44b414 sp 00007f15cbffd750 error 4 in
libpthread-2.19.so[7f160d441000+19000]
Oct 14 10:53:42 nuc3 kernel: [  321.647051] vaapidecode3:sr[2432]: segfault
at 3e30000000f ip 00007f59b111f414 sp 00007f596f7fc750 error 4 in
libpthread-2.19.so[7f59b1115000+19000]
Oct 14 10:54:27 nuc3 kernel: [  367.051492] vaapidecode4:sr[2486]: segfault
at 11a200001118 ip 00007f520ed04414 sp 00007f51dbcf9750 error 4 in
libpthread-2.19.so[7f520ecfa000+19000]

{Note that below I am dynamically linking, in a callback
composition_new_pad, decodebin's video source pad to identity (this forms
my video pipeline), but leave decodebin's audio source pad
dangling/unlinked; it it correct, or I should rather link it to something
like fakesink?}

[from the stdout and stderr output, with gst_debug_set_threshold_for_name
("vaapi*", GST_LEVEL_LOG);]
2014-10-14 10:53:26.403 INFO (mp.c:128:composition_new_pad) dynamically
linking decodebin on pad src_4 to identity ...
0:00:12.436076796  2386      0x1f3d370 INFO    
      vaapidecode
../../../gst/vaapi/gstvaapidecode.c:942:gst_vaapidecode_query:<vaapidecode4>
query type caps
0:00:12.436129296  2386      0x1f3d370 INFO    
      vaapidecode
../../../gst/vaapi/gstvaapidecode.c:942:gst_vaapidecode_query:<vaapidecode4>
query type caps
0:00:12.436180476  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.436996536  2386      0x1f3d370 INFO    
      vaapidecode
../../../gst/vaapi/gstvaapidecode.c:942:gst_vaapidecode_query:<vaapidecode4>
query type caps
0:00:12.437040186  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
2014-10-14 10:53:26.405 INFO (mp.c:163:composition_new_pad) success!
2014-10-14 10:53:26.405 INFO (mp.c:128:composition_new_pad) dynamically
linking decodebin on pad src_5 to identity ...
2014-10-14 10:53:26.405 INFO (mp.c:134:composition_new_pad) non-video pad
type: audio/x-raw, not linking...
0:00:12.438460829  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.439347561  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.440167259  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.440974619  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.441721754  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.442488794  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.442657132  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.442792927  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type caps
0:00:12.442905764  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type accept-caps
0:00:12.442993064  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:790:gst_vaapisink_set_caps: video
pixel-aspect-ratio 1/1
0:00:12.443018542  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:828:gst_vaapisink_set_caps: window
size 1080x1920
0:00:12.443037779  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:410:gst_vaapisink_ensure_render_rect:
ensure render rect within 1080x1920 bounds
0:00:12.443056214  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:417:gst_vaapisink_ensure_render_rect:
display pixel-aspect-ratio 1/1
0:00:12.443076277  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:428:gst_vaapisink_ensure_render_rect:
video size 768x1360, calculated ratio 48/85
0:00:12.443117122  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:436:gst_vaapisink_ensure_render_rect:
keeping window width
0:00:12.443132939  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:441:gst_vaapisink_ensure_render_rect:
scaling video to 1080x1912
0:00:12.443151217  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:451:gst_vaapisink_ensure_render_rect:
render rect (0,4):1080x1912
0:00:12.443186212  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type allocation
0:00:12.443252482  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type allocation
0:00:12.443341754  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type allocation
0:00:12.443443109  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type allocation
0:00:12.444818655  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type allocation
0:00:12.445492695  2386      0x1f3d370 INFO    
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1363:gst_vaapisink_query:<videosink>
query type allocation
0:00:12.445554165  2386      0x1f3d370 DEBUG   
        vaapisink
../../../gst/vaapi/gstvaapisink.c:1205:gst_vaapisink_show_frame:
render surface 0x4000012
0:00:12.445643317  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapiimage.c:261:gst_vaapi_image_new:
format BGRA, size 75x23
0:00:12.445685685  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapiimage.c:206:gst_vaapi_image_create:
image 0xa00000c
0:00:12.445716435  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisubpicture.c:144:gst_vaapi_subpicture_new:
create from image 0xa00000c
0:00:12.445736010  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisubpicture.c:76:gst_vaapi_subpicture_destroy:
subpicture 0xffffffff
0:00:12.445755615  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisubpicture.c:114:gst_vaapi_subpicture_create:
subpicture 0x1000000c
0:00:12.458252026  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisurface.c:82:gst_vaapi_surface_destroy:
surface 0x4000011
0:00:12.458328751  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisubpicture.c:76:gst_vaapi_subpicture_destroy:
subpicture 0x1000000b
0:00:12.458351079  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapiimage.c:116:gst_vaapi_image_destroy:
image 0xa00000b
0:00:12.458382609  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisurface.c:82:gst_vaapi_surface_destroy:
surface 0x400000c
0:00:12.458401629  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisubpicture.c:76:gst_vaapi_subpicture_destroy:
subpicture 0x10000006
0:00:12.458420296  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapiimage.c:116:gst_vaapi_image_destroy:
image 0xa000006
0:00:12.458472001  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisurface.c:82:gst_vaapi_surface_destroy:
surface 0x400000d
0:00:12.458491576  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisubpicture.c:76:gst_vaapi_subpicture_destroy:
subpicture 0x10000007
0:00:12.458509959  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapiimage.c:116:gst_vaapi_image_destroy:
image 0xa000007
0:00:12.458535384  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisurface.c:82:gst_vaapi_surface_destroy:
surface 0x400000e
0:00:12.458554366  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisubpicture.c:76:gst_vaapi_subpicture_destroy:
subpicture 0x10000008
0:00:12.458572599  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapiimage.c:116:gst_vaapi_image_destroy:
image 0xa000008
0:00:12.458598316  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisurface.c:82:gst_vaapi_surface_destroy:
surface 0x400000f
0:00:12.458616924  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapisubpicture.c:76:gst_vaapi_subpicture_destroy:
subpicture 0x10000009
0:00:12.458635891  2386      0x1f3d370 DEBUG   
            vaapi
../../../../gst-libs/gst/vaapi/gstvaapiimage.c:116:gst_vaapi_image_destroy:
image 0xa000009
GLib (gthread-posix.c): Unexpected error from C library during
'pthread_mutex_lock': Invalid argument.  Aborting.



On Mon, Oct 13, 2014 at 6:05 PM, Sergei Vorobyov <
sergei.vorobyov at facilitylabs.com> wrote:

> Sorry for disturbing you once again, but what would be the best way to
> collect debugging information for vaapisink? This error happens randomly,
> sometimes not at all, sometimes after a long run. It seems like a
> combination of several random events. So valgrind is not an option.
>
> This comes from my syslog:
>
> Oct 13 15:54:47 nuc3 kernel: [   61.847606] vaapidecode4:sr[1550]:
> segfault at 1000110 ip 00007fbcbcdc4414 sp 00007fbc8de9c750 error 4 in
> libpthread-2.19.so[7fbcbcdba000+19000]
> Oct 13 15:56:52 nuc3 kernel: [  186.838264] traps: vaapidecode4:sr[2376]
> general protection ip:7f5d4df24414 sp:7f5d10d79750 error:0 in
> libpthread-2.19.so[7f5d4df1a000+19000]
> Oct 13 17:08:18 nuc3 kernel: [ 4188.176224] vaapidecode4:sr[2778]:
> segfault at b00000077 ip 00007f9963747414 sp 00007f99260d5750 error 4 in
> libpthread-2.19.so[7f996373d000+19000]
> Oct 13 17:08:43 nuc3 kernel: [ 4213.496231] vaapidecode5:sr[2809]:
> segfault at c0500003be2 ip 00007f6721078414 sp 00007f66e40cb750 error 4 in
> libpthread-2.19.so[7f672106e000+19000]
> Oct 13 17:09:03 nuc3 kernel: [ 4233.580294] vaapidecode5:sr[2840]:
> segfault at eee000031c1 ip 00007ff634ddd414 sp 00007ff5f7d96750 error 4 in
> libpthread-2.19.so[7ff634dd3000+19000]
> Oct 13 17:12:57 nuc3 kernel: [   51.432403] traps: vaapidecode3:sr[2080]
> general protection ip:7f934f3cb414 sp:7f9312448750 error:0 in
> libpthread-2.19.so[7f934f3c1000+19000]
> Oct 13 17:13:22 nuc3 kernel: [   76.441344] vaapidecode4:sr[2182]:
> segfault at 4820000000f ip 00007ffc5b962414 sp 00007ffc1e8d6750 error 4 in
> libpthread-2.19.so[7ffc5b958000+19000]
>
> Calling
>
> gst_debug_set_threshold_for_name ("vaapi*", GST_LEVEL_LOG);
>
> does not seem to produce any effect.
>
> Thanks!
>
> On Thu, Sep 25, 2014 at 11:20 AM, Sergei Vorobyov <
> sergei.vorobyov at facilitylabs.com> wrote:
>
>> After further investigation I narrowed the problem to the following:
>>
>> 1. I am rendering the video sink on an XWindow, using magic recipes
>> described in gstvideooverlay (my intention is to use full screen);
>> 2. if I take it away and render in the default window, the problem goes
>> away: .wmv files are played OK on i965_drv_video.so with vaapisink
>>
>> Since my main goal is to use vaapisink, the problem goes away: vaapisink
>> implements GstVideoOverlay, and I can directly specify fullscreen,
>> rotation, and other properties directly for this sink. #1 is no longer
>> needed
>>
>> On Wed, Sep 24, 2014 at 1:41 PM, Tim Müller <tim at centricular.com> wrote:
>>
>>> On Wed, 2014-09-24 at 10:01 +0200, Sergei Vorobyov wrote:
>>>
>>> Hi Sergei,
>>>
>>> I think what would be most useful for us to help get to the bottom of
>>> this is a minimal test program or instructions to reproduce the issue
>>> ourselves.
>>>
>>> Cheers
>>>  -Tim
>>>
>>> --
>>> Tim Müller, Centricular Ltd - http://www.centricular.com
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141014/1255baa1/attachment-0001.html>


More information about the gstreamer-devel mailing list