<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">A quick look at your xml code , reveals several  errors in format  , your  xml needs to be well formed and correct  or the  interpreter  will  puke .  this mite not be your problem but you should fix it first .<div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""><div class="" style="font-family: sans-serif;"><blockquote class="" style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(119, 119, 119); color: rgb(119, 119, 119); margin: 0px 0px 5px; padding-left: 5px;"><div id="449018D4-9037-46E4-A1CD-63E9D2BA87E5" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class=""><div class="post-text" itemprop="text"><pre class=""><code class=""> <encode>
                  ****  <quality>10</quality>—>  ****
                        <nominal-bitrate>320000</nominal-bitrate>
                        <maximum-bitrate>320000</maximum-bitrate>
                 *****  <minimum-bitrate>256000</minimum-bitrate>—> *****
                        <managed>1</managed>
                        <samplerate>48000</samplerate>
                        <channels>2</channels>
                        <flush-samples>48000</flush-samples>
                </encode></code></pre></div></div></div></div></blockquote></div></div></blockquote><div class=""><br class=""></div><div class="">Neither a comment outed  line of code  nor a well formed xml  tag.</div><div class="">also take a look at your system log  for the time frame your  launching  the application , it may reveal what’s causing the segmentation fault.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">On May 16, 2020, at 7:49 AM, Marvin Scholz <<a href="mailto:epirat07@gmail.com" class="">epirat07@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">


<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8" class="">

<div class="">
<div style="font-family:sans-serif" class=""><div style="white-space:normal" class=""><p dir="auto" class="">Please obtain a stacktrace as the log seems not very<br class="">
helpful in this case to figure out what went wrong.</p><p dir="auto" class="">On 16 May 2020, at 16:52, Kit wrote:</p>
</div>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px" class=""><div id="449018D4-9037-46E4-A1CD-63E9D2BA87E5" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I get a segmentation fault when starting the IceS encoder on a Linux-based QNAP NAS.<div class=""><br class=""></div><div class=""><div class="fc-black-500 js-vote-count fs-title grid fd-column ai-center grid--cell" itemprop="upvoteCount" data-value="0">I'm trying to set up IceS to stream an ALSA input to Icecast.
Icecast works well and confirms when I stream using other things to it.
However IceS hits a segmentation fault immediately after starting the encoder.</div><div class="post-text" itemprop="text"><p class="">The IceS log is:</p>

<pre class=""><code class="">[~] # sudo ices /etc/ices.xml
[2020-05-11  19:24:34] INFO ices-core/main IceS 2.0.2 started...
[2020-05-11  19:24:34] INFO input-alsa/alsa_open_module Opened audio device hw:0,0
[2020-05-11  19:24:34] INFO input-alsa/alsa_open_module using 2 channel(s), 48000 Hz, buffer 341 ms 
[2020-05-11  19:24:34] INFO input-alsa/alsa_open_module Starting metadata update thread
[2020-05-11  19:24:34] INFO signals/signal_usr1_handler Metadata update requested
[2020-05-11  19:24:34] INFO encode/encode_initialise Encoder initialising with bitrate management: 2 channels, 48000 Hz, minimum bitrate 256000, nominal 320000, maximum 320000
Segmentation fault
</code></pre><p class="">The IceS config file looks like this:</p>

<pre class=""><code class=""><?xml version="1.0"?>
<ices>

<background>0</background>
<logpath>/share/4a Downloads temporary</logpath>
<logfile>ices.log</logfile>
<logsize>10000</logsize>
<loglevel>4</loglevel>
<consolelog>1</consolelog>
<!-- <pidfile>/share/4a Downloads temporary/ices.pid</pidfile> -->

<stream>
        <metadata>
                <name>Roon</name>
                <genre>Avant-garde</genre>
                <description>Roon Icecast stream</description>
        </metadata>

        <input>
        <module>alsa</module>
                <param name="rate">48000</param>
                <param name="channels">2</param>
                <param name="device">hw:0</param>
                <param name="periods">2</param>
                <param name="buffer-time">1000</param>
                <!-- <param name="metadata">1</param>
                <param name="metadatafilename">/home/ices/metadata</param> -->
        </input>

        <instance>
                <hostname>localhost</hostname>
                <port>8000</port>
                <password>mirror</password>
                <mount>/test.ogg</mount>
                <encode>
                        <quality>10</quality>-->
                        <nominal-bitrate>320000</nominal-bitrate>
                        <maximum-bitrate>320000</maximum-bitrate>
                        <minimum-bitrate>256000</minimum-bitrate>-->
                        <managed>1</managed>
                        <samplerate>48000</samplerate>
                        <channels>2</channels>
                        <flush-samples>48000</flush-samples>
                </encode>
        </instance>
</stream>

</ices>
</code></pre><p class="">I've changed nearly every parameter in it to see if I can get round 
it, but all I am able to achieve is causing a crash sooner than the 
segfault. I've also got no more logging than this - level 4 is max 
anyway - so I can only assume the fault is in the encoder. libvorbis and
 libogg are both installed. I don't know of any way to use an external 
encoder or I'd be using that... can anyone help with what might be 
causing this segfault?</p><p class="">Thanks!</p></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></blockquote>
<div style="white-space:normal" class=""><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px" class="">
</blockquote><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px" class=""><p dir="auto" class="">_______________________________________________<br class="">
Icecast mailing list<br class="">
<a href="mailto:Icecast@xiph.org" class="">Icecast@xiph.org</a><br class="">
<a href="http://lists.xiph.org/mailman/listinfo/icecast" style="color:#777" class="">http://lists.xiph.org/mailman/listinfo/icecast</a></p>
</blockquote></div>
</div>
</div>

_______________________________________________<br class="">Icecast mailing list<br class=""><a href="mailto:Icecast@xiph.org" class="">Icecast@xiph.org</a><br class=""><a href="http://lists.xiph.org/mailman/listinfo/icecast" class="">http://lists.xiph.org/mailman/listinfo/icecast</a><br class=""></div></blockquote></div><br class=""></div></div></div></body></html>