<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Segmentation fault when adding mfw_mp3encoder to running pipeline in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182692#M8029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you use gst-lauch to establish the pipeline and have a try "gst-launch alsasrc ! mfw_mp3encoder ! filesin location = out.mp3" or can you share your gst-launch pipeline for us to investigate?&lt;/P&gt;&lt;P&gt;BTW: what's the release version of your package and which platform are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2011 09:18:43 GMT</pubDate>
    <dc:creator>LyonWang</dc:creator>
    <dc:date>2011-11-03T09:18:43Z</dc:date>
    <item>
      <title>Segmentation fault when adding mfw_mp3encoder to running pipeline</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182691#M8028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my app I need to record an alsasrc to mp3 files. When the user clicks a button, a new file should be created.&lt;/P&gt;&lt;P&gt;The problem is that I have a segmentation fault when I add an mfw_mp3encoder to my pipeline when it is running. When I replace the mfw_mp3encoder with an wavenc, everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible that this is a bug in the mp3encoder of freescale?&lt;/P&gt;&lt;P&gt;When I debug the app, this is the gdb backtrace of the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#0 &amp;nbsp;0x44715718 in mp3e_flush_bitstream ()&amp;nbsp; &amp;nbsp;from /usr/lib/lib_mp3_enc_arm9_elinux.so.2.2.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#1 &amp;nbsp;0x44702268 in mfw_gst_mp3enc_sink_event (pad=&amp;lt;value optimized out&amp;gt;,&amp;nbsp;&amp;nbsp; &amp;nbsp; event=0x43602180) at mfw_gst_mp3enc.c:448&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#2 &amp;nbsp;0x401d806c in gst_pad_send_event (pad=0x13a0d0, event=0x43602180)&amp;nbsp; &amp;nbsp; at gstpad.c:4962&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#3 &amp;nbsp;0x401d8900 in gst_pad_push_event (pad=0x13a008, event=0x43602180)&amp;nbsp; &amp;nbsp; at gstpad.c:4818&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#4 &amp;nbsp;0x41cda44c in gst_base_transform_sink_event (pad=&amp;lt;value optimized out&amp;gt;,&amp;nbsp;&amp;nbsp; &amp;nbsp; event=0x43602180) at gstbasetransform.c:1710&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#5 &amp;nbsp;0x401d806c in gst_pad_send_event (pad=0xf1710, event=0x43602180)&amp;nbsp; &amp;nbsp; at gstpad.c:4962&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#6 &amp;nbsp;0x401d8900 in gst_pad_push_event (pad=0xf1648, event=0x43602180)&amp;nbsp; &amp;nbsp; at gstpad.c:4818&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#7 &amp;nbsp;0x41dd2cbc in gst_queue_loop (pad=&amp;lt;value optimized out&amp;gt;) at gstqueue.c:1094&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#8 &amp;nbsp;0x401f82d8 in gst_task_func (task=0xfe278) at gsttask.c:234&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#9 &amp;nbsp;0x401f9be8 in default_func (tdata=&amp;lt;value optimized out&amp;gt;,&amp;nbsp;&amp;nbsp; &amp;nbsp; pool=&amp;lt;value optimized out&amp;gt;) at gsttaskpool.c:70&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#10 0x40108d74 in g_thread_pool_thread_proxy (data=&amp;lt;value optimized out&amp;gt;)&amp;nbsp; &amp;nbsp; at gthreadpool.c:265&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#11 0x401077bc in g_thread_create_proxy (data=0x140058) at gthread.c:635&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-size-1" style="font-family: 'courier new', courier;"&gt;#12 0x4025d7cc in start_thread () from /lib/libpthread.so.0#13 0x4033cc08 in clone () from /lib/libc.so.6&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 08:34:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182691#M8028</guid>
      <dc:creator>Sjoon</dc:creator>
      <dc:date>2011-11-03T08:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when adding mfw_mp3encoder to running pipeline</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182692#M8029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you use gst-lauch to establish the pipeline and have a try "gst-launch alsasrc ! mfw_mp3encoder ! filesin location = out.mp3" or can you share your gst-launch pipeline for us to investigate?&lt;/P&gt;&lt;P&gt;BTW: what's the release version of your package and which platform are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 09:18:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182692#M8029</guid>
      <dc:creator>LyonWang</dc:creator>
      <dc:date>2011-11-03T09:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when adding mfw_mp3encoder to running pipeline</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182693#M8030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no problem when using gst-launch to create the pipeline, because there the pipeline is set to playing when the mp3encoder is already added.&lt;/P&gt;&lt;P&gt;In my application, I have a tee on which mp3encoders are added on the fly when the pipeline is already playing.&lt;/P&gt;&lt;P&gt;I'm using the latest mm-codecs &amp;nbsp;(2.0.3) on an imx28.&lt;/P&gt;&lt;P&gt;My pipeline is as follows:&lt;/P&gt;&lt;P&gt;alsasrc ! tee ! queue ! fakesink&lt;/P&gt;&lt;P&gt;When a I start to record, I attach following to the tee:&lt;/P&gt;&lt;P&gt;queue ! "audio/x-raw-int,rate=44100,width=16,height=16,channels=1" ! mfw_mp3encoder ! queue ! filesink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works fine when I start to record before I set the pipeline to playing, but attaching the mp3 encoder when the pipeline is playing gives a segfault.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 12:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182693#M8030</guid>
      <dc:creator>Sjoon</dc:creator>
      <dc:date>2011-11-03T12:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when adding mfw_mp3encoder to running pipeline</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182694#M8031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 12:18:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-adding-mfw-mp3encoder-to-running/m-p/182694#M8031</guid>
      <dc:creator>Sjoon</dc:creator>
      <dc:date>2011-11-14T12:18:51Z</dc:date>
    </item>
  </channel>
</rss>

