<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal"><p dir="auto">Please obtain a stacktrace as the log seems not very<br>
helpful in this case to figure out what went wrong.</p>
<p dir="auto">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"><div id="449018D4-9037-46E4-A1CD-63E9D2BA87E5"><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"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
</blockquote><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">_______________________________________________<br>
Icecast mailing list<br>
Icecast@xiph.org<br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast" style="color:#777">http://lists.xiph.org/mailman/listinfo/icecast</a></p>
</blockquote></div>
</div>
</body>
</html>