<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br></div><div>This looks like a chicken and egg problem.  </div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">                </span>sdr_audio_gain = progdefaults.SdrAudioGain;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">               </span><span style="color: #c800a8">if</span> ((sdr_audio_gain < <span style="color: #4000e2">0</span>) || (sdr_audio_gain > <span style="color: #4000e2">100</span>)) {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(222, 0, 0); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                     </span>LOG_ERROR(</span>">>>>>>>> invalid audio gain %d"<span style="color: #000000">, sdr_audio_gain);</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(200, 0, 168); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                       </span></span>throw<span style="color: #000000">;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">             </span>}</div></div><div><br></div><div>Since its the first run, the fldigi_def.xml file doesn't exist</div><div>(or doesn't contain) hpsdr specific entries.  Not being so adept at c++, I just "throw" at the top level</div><div>when finding a problem such as this, which appears to cause the segfault.  I just fixed the same issue</div><div>for the problem I mentioned yesterday, ie. segfault when there is now hardware attached.  I will spend some</div><div>time today writing an exception handler to catch this generel class of error more gracefully.  I also </div><div>need to run test cases of startup both where a pre-existing defaults file (but without hpsdr specific entries)</div><div>exists, and where no file exists.  I was a little too pedantic on this "audio gain of 0" case because</div><div>I wasted a bit of time wondering why the signal was missing when it was just an issue of the radio being set</div><div>with audio gain of 0...</div><div><br></div><div>Keep the test results coming, I'll get it right eventually.  FYI, I'm porting flrig to control hpsdr hardware</div><div>now.  At this point it can control frequency and volume, as well as control preamp, dither and random.</div><div><br></div><div>later,</div><div>Steve AD0ES</div><div><br><div><div>On Oct 13, 2014, at 1:27 PM, Sid Boyce wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span><fldigi_segfault.gz></span></blockquote></div><br></div></body></html>