<div class="markdown_content"><hr/>
<p><strong> <a class="alink" href="https://sourceforge.net/p/pure-data/bugs/1278/">[bugs:#1278]</a> JACKerror SuspendRefNum starting dsp on loadbang with -nogui</strong></p>
<p><strong>Status:</strong> open<br/>
<strong>Group:</strong> v0.47<br/>
<strong>Labels:</strong> jack nogui loadbang <br/>
<strong>Created:</strong> Thu Dec 15, 2016 07:15 AM UTC by Claude Heiland-Allen<br/>
<strong>Last Updated:</strong> Thu Dec 15, 2016 07:15 AM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>Also affects self-compiled <code>pd-0.47.0</code> from Miller's site so it isn't a Debian-specific issue.</p>
<div class="codehilite"><pre><span class="nv">$ </span>pd -version
Pd-0.47.1 <span class="o">(</span><span class="s2">""</span><span class="o">)</span> compiled <span class="k">for</span> Debian <span class="o">(</span>0.47.1-3<span class="o">)</span> on 2016/11/28 at 20:56:10 UTC
</pre></div>


<p>Steps to reproduce:</p>
<div class="codehilite"><pre><span class="nv">$ </span>qjackctl
start jackd at <span class="m">48000</span> sample rate, or modify the line below
<span class="nv">$ </span>pd -noprefs -jack -channels <span class="m">2</span> -r <span class="m">48000</span> -nogui -send <span class="s2">"pd dsp 1"</span>
error: JACKerror: SuspendRefNum error
error: JACKerror: JackClient::Execute error <span class="nv">name</span> <span class="o">=</span> pure_data_0
error: JACK: server shut down
^CPd: signal 2
</pre></div>


<p>Pd starts up and connects to JACK successfully without <code>-nogui</code>, or without <code>-send "pd dsp 1"</code>.</p>
<p>Problem also occurs with <code>[loadbang]--[; pd dsp 1(</code>, which was where I noticed it.</p>
<p>Workaround 1 (requires modifying patches): <code>[loadbang]--[delay 1]--[; pd dsp 1(</code></p>
<p>Workaround 2 (requires modifying startup scripts): create a loader patch that opens the real patch after a <code>[loadbang]--[delay 1]</code>, then the real patch's <code>[loadbang]--[; pd dsp 1(</code> is late enough not to break.  And load the loader patch instead of the real patch from the command line.</p>
<hr/>
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/bugs/">https://sourceforge.net/p/pure-data/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/bugs/options.">https://sourceforge.net/p/pure-data/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>