<div dir="ltr">Hello,<div><br></div><div>Using OSX I'm receiving a SIGKILL while attempting to get APIC tag. Win32 is fine, only OSX faces this issue.</div><div><br></div><div>Below if the method used, any input as to how to catch this error or avoid it would be appreciated:<br><br><br><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"courier new";font-size:9pt"><span style="color:rgb(204,120,50)">void </span>audiotags_file_art(<span style="color:rgb(204,120,50)">const </span>TagLib_File *file, <span style="color:rgb(204,120,50)">int </span>id)<br>{<br>    <span style="color:rgb(204,120,50)">const </span>TagLib::File * f = <span style="color:rgb(171,81,186)">reinterpret_cast</span><<span style="color:rgb(204,120,50)">const </span>TagLib::File *>(file);<br>    TagLib::MPEG::File * mpegFile = <span style="color:rgb(171,81,186)">dynamic_cast</span><TagLib::MPEG::File *>(<span style="color:rgb(171,81,186)">const_cast</span><TagLib::File *>(f));<br>    <span style="color:rgb(204,120,50)">if </span>(mpegFile!=nullptr) {<br>        <span style="color:rgb(204,120,50)">if </span>(mpegFile<span style="color:rgb(15,151,149)">-></span>hasID3v2Tag()) {<br>            TagLib::ID3v2::Tag * id3v2 = mpegFile<span style="color:rgb(15,151,149)">-></span>ID3v2Tag(<span style="color:rgb(204,120,50)">false</span>);<br>            <span style="color:rgb(204,120,50)">const </span>TagLib::ID3v2::FrameList frameList = id3v2<span style="color:rgb(15,151,149)">-></span>frameListMap()[<span style="color:rgb(106,135,89)">"APIC"</span>];<br>            <span style="color:rgb(204,120,50)">for</span>(<span style="color:rgb(204,120,50)">auto </span>it = frameList.begin(); it != frameList.end(); it++) {<br>                TagLib::ID3v2::AttachedPictureFrame * frame = (TagLib::ID3v2::AttachedPictureFrame *)(*it);<br>                <span style="color:rgb(204,120,50)">if </span>(frame<span style="color:rgb(15,151,149)">-></span>size() > <span style="color:rgb(104,151,187)">0</span>) {<br>                    <span style="color:rgb(204,120,50)">char </span>*key = ::strdup(<span style="color:rgb(106,135,89)">"APIC"</span>);<br>                    <span style="color:rgb(204,120,50)">char </span>*val = ::strdup(frame<span style="color:rgb(15,151,149)">-></span>picture().toBase64().data());<br>                    go_map_audioproperties(id, key, val);<br>                    free(key);<br>                    free(val);<br>                }<br>            }<br>        }<br>    }<br>}</pre><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Timothy Stoyanovski - Developer<div><i>PHP + Frontend</i></div><div><i><br></i></div><div><i>Open Source Contributions: <a href="https://github.com/stoyvo" target="_blank">https://github.com/stoyvo</a></i></div></div></div>
</div></div>