<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><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>