<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 04/27/2015 10:54 AM, Anthony Buckley
wrote:<br>
</div>
<blockquote
cite="mid:CAKoc5RVA3jqQq9zdcGDsc09AWQWBJ3CXrm6CrYyeiAg_i1Dnww@mail.gmail.com"
type="cite">
<div dir="ltr">Hello All,<br>
<br>
I have a problem with a program displaying video from a webcam.<br>
When I build the pipeline and start playing its fine, but I<br>
need to clear, re-build and restart the pipeline in some <br>
circumstances and when I do it causes a 'Segmentation fault
(core dumped)'.<br>
</div>
</blockquote>
<br>
Can't you run this under gdb and print he backtrace?<br>
<br>
gdb ./testcoredump<br>
<br>
and inside gdb 'r' to run and 'bt' once it crashed? The backtrace
should point you to wher eit crashed.<br>
<blockquote
cite="mid:CAKoc5RVA3jqQq9zdcGDsc09AWQWBJ3CXrm6CrYyeiAg_i1Dnww@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
Strange thing is it works fine on 2 other computers (one 32 bit
and<br>
one 64 bit). The only difference I can see is that the one it
fails<br>
on (64 bit) uses VAAPI.<br>
Also if I 'sleep' it before setting the pipeline to PLAY it
works.<br>
From my debug output (below) as far as I can tell the problem
looks to be in<br>
the bus sync handler.<br>
<br>
I've created a cut-down program (attached) to hopefully <br>
demonstrate the error (apologies for the length, I've stripped
as much as I can).<br>
<br>
If anyone would care to try it or has any ideas or can point out
that I'm <br>
doing things incorrectly I'd be grateful for any input.<br>
<br>
Thanks.<br>
<br>
<br>
This is what happens when I run it...<br>
<br>
./testcoredump<br>
<br>
debug set play 1<br>
libva info: VA-API version 0.35.1<br>
libva info: va_getDriverName() returns 0<br>
libva info: Trying to open
/usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so<br>
libva info: Found init function __vaDriverInit_0_35<br>
libva info: va_openDriver() returns 0<br>
debug sync 1a handle 67108880<br>
debug sync 1b<br>
debug sync 1c<br>
debug set play 2<br>
debug Restart button clicked<br>
debug set play 1<br>
libva info: VA-API version 0.35.1<br>
libva info: va_getDriverName() returns 0<br>
libva info: Trying to open
/usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so<br>
libva info: Found init function __vaDriverInit_0_35<br>
libva info: va_openDriver() returns 0<br>
debug sync 1a handle 67108880<br>
debug sync 1b<br>
Segmentation fault (core dumped)<br>
<br>
<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>