<div dir="ltr">One thing to check is a compatibility issue with the C Runtime environment. I have often seen this issues manifest as GST_STATE_CHANGE_FAILURE in the past. These issues are very difficult to diagnose / debug. (You may even find that the issue will not reproduce under a debugger.)<div><br></div><div>Are you using the mingw binaries for Gstreamer? If so, these kinds of issues may disappear if you switch to the msvc binaries. The msvc binaries also have debug symbols which makes it possible to debug (if the problem doesn't go away by itself), whereas the mingw binaries have no such symbols.</div><div><br></div><div>You should also check the C Runtime versions on your two Windows machines and see if they are different.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 27, 2020 at 9:21 AM Daniel Sperka <<a href="mailto:djsperka@ucdavis.edu">djsperka@ucdavis.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Oops, I missed that both machines are windows machines. Sorry. d</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 27, 2020 at 9:20 AM Daniel Sperka <<a href="mailto:djsperka@ucdavis.edu" target="_blank">djsperka@ucdavis.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Could it be that you are using elements that do not work on windows? </div><div><br></div><div>A desktop app, for example, will have to create different audio sink elements for mac/linux/windows/. When I had this bug, the windows version failed when creating "osxaudiosink", as it should. I was sloppy in checking for NULL or return values when adding,linking in pipeline. When I try to run application, it fails when I try to preroll (change of state to PAUSE) because the pipeline is incomplete (no sink). <br></div><div><br></div><div>My fix was to use the correct elements for different platforms - the project (Qt) that has code something like this:</div><div><br></div><div>audioSink = NULL;</div><div>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><span style="color:rgb(127,0,85)"><b>#if</b></span> defined(Q_OS_MAC)</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(42,0,255)"><span style="color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>qDebug() << </span>"make <span style="text-decoration-line:underline">osxaudiosink</span> for <span style="text-decoration-line:underline">mac</span>"<span style="color:rgb(0,0,0)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><span style="white-space:pre-wrap"> </span>audioSink = gst_element_factory_make(<span style="color:rgb(42,0,255)">"</span><span style="text-decoration-line:underline;color:rgb(42,0,255)">osxaudiosink</span><span style="color:rgb(42,0,255)">"</span>);</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><span style="color:rgb(127,0,85)"><b>#elif</b></span> defined(Q_OS_LINUX)</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(42,0,255)"><span style="color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>qDebug() << </span>"make <span style="text-decoration-line:underline">alsasink</span> for <span style="text-decoration-line:underline">linux</span>"<span style="color:rgb(0,0,0)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><span style="white-space:pre-wrap"> </span>audioSink = gst_element_factory_make(<span style="color:rgb(42,0,255)">"</span><span style="text-decoration-line:underline;color:rgb(42,0,255)">alsaudiosink</span><span style="color:rgb(42,0,255)">"</span>);</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><span style="color:rgb(127,0,85)"><b>#elif</b></span> defined(Q_OS_WIN)<br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(42,0,255)"><span style="color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>qDebug() << </span>"make <span style="text-decoration-line:underline">directsoundsink</span> for win"<span style="color:rgb(0,0,0)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><span style="white-space:pre-wrap"> </span>audioSink = gst_element_factory_make(<span style="color:rgb(42,0,255)">"</span><span style="text-decoration-line:underline;color:rgb(42,0,255)">directsoundsink</span><span style="color:rgb(42,0,255)">"</span>);</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><b style="color:rgb(127,0,85)">#else</b><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><span style="white-space:pre-wrap"> </span>qDebug() << <span style="color:rgb(42,0,255)">"Unsupported OS."</span>;</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(127,0,85)"><b>#endif</b></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;min-height:14px"><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><span style="white-space:pre-wrap"> </span>Q_ASSERT(audioSink);</p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica"><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica">Dan</p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 26, 2020 at 4:34 PM Yair Reshef <<a href="mailto:yair99@gmail.com" target="_blank">yair99@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">dependency walker sometime finds missing stuff. <div>try to prepend it with GST_DEBUG:7 <br><br>more here</div><div><a href="https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html?gi-language=c" target="_blank">https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html?gi-language=c</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 27, 2020 at 1:19 AM Erik Herz <<a href="mailto:erik@vivoh.com" target="_blank">erik@vivoh.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have an app that runs on my Windows build machine but not on another windows machine.<div><br></div><div>I get this error:<br><div dir="ltr"><div dir="ltr"></div></div><div><code>gst_element_set_state() returns GST_STATE_CHANGE_FAILURE</code><br></div></div><div><code><br></code></div><div><code>I suspect that I am missing a library.</code></div><div><code><br></code></div><div><code>How can I debug what is happening?</code></div><div><code><br></code></div><div><code>My App is QT-based.</code></div><img width="0" height="0" alt="" style="display: flex;" src="https://mailtrack.io/trace/mail/ead43859c32084ffd188fd7a9026e6f1acff0d08.png?u=4940373"></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Daniel J. Sperka, Ph. D. <br>UC Davis Center for Neuroscience<br></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Daniel J. Sperka, Ph. D. <br>UC Davis Center for Neuroscience<br></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>