<?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>i.MX ProcessorsのトピックRe: [IMX8MMINILPD4-EVK - Audio] PyAudio/Alsa lib segment fault (core dumped) with root user</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MMINILPD4-EVK-Audio-PyAudio-Alsa-lib-segment-fault-core/m-p/948794#M141897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try Demo Images&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.14.98_2.0.0_MX8MM&amp;amp;appType=license" target="_blank"&gt;Linux Binary Demo Files - i.MX 8MMini EVK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and use Chapter 7 Audio attached Linux Manual, sect.7.3.1.1 Audio-only playback&lt;/P&gt;&lt;P&gt;Linux Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2019 23:29:53 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-08-05T23:29:53Z</dc:date>
    <item>
      <title>[IMX8MMINILPD4-EVK - Audio] PyAudio/Alsa lib segment fault (core dumped) with root user</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MMINILPD4-EVK-Audio-PyAudio-Alsa-lib-segment-fault-core/m-p/948793#M141896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using pyaudio on iMX8MM board that runs yocto-L4.14.98_2.0.0_ga.&lt;/P&gt;&lt;P&gt;But it's always be crashed after creating audio interface by codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;import pyaudio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;pyaudio.PyAudio()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug stack shows:&lt;/P&gt;&lt;P&gt;#0 __GI_raise (sig=sig@entry=6) at /usr/src/debug/glibc/2.27-r0/git/sysdeps/unix/sysv/linux/raise.c:51&lt;BR /&gt;#1 0x0000ffffbf3011b0 in __GI_abort () at /usr/src/debug/glibc/2.27-r0/git/stdlib/abort.c:79&lt;BR /&gt;#2 0x0000ffffbf2f98b8 in __assert_fail_base (fmt=0xffffbf3f0218 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0xffffbee4b988 "bitofs % 8 == 0", &lt;BR /&gt; file=file@entry=0xffffbee4b958 "../../../alsa-lib-1.1.5/src/pcm/pcm_local.h", line=line@entry=572, function=function@entry=0xffffbee49ff0 "snd_pcm_channel_area_addr")&lt;BR /&gt; at /usr/src/debug/glibc/2.27-r0/git/assert/assert.c:92&lt;BR /&gt;#3 0x0000ffffbf2f9934 in __GI___assert_fail (assertion=0xffffbee4b988 "bitofs % 8 == 0", file=0xffffbee4b958 "../../../alsa-lib-1.1.5/src/pcm/pcm_local.h", line=572, &lt;BR /&gt; function=0xffffbee49ff0 "snd_pcm_channel_area_addr") at /usr/src/debug/glibc/2.27-r0/git/assert/assert.c:101&lt;BR /&gt;#4 0x0000ffffbedaf24c in ?? () from /usr/lib/libasound.so.2&lt;BR /&gt;#5 0x0000ffffbee09f7c in ?? () from /usr/lib/libasound.so.2&lt;BR /&gt;#6 0x00000000005dea80 in ?? ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;#0 0x0000ffffbedd47ac in snd_pcm_area_silence () from /usr/lib/libasound.so.2&lt;BR /&gt;#1 0x0000ffffbee09f7c in ?? () from /usr/lib/libasound.so.2&lt;BR /&gt;#2 0x00000000005ddd10 in ?? ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this issue only occurs with root user. I created regular user (uid: 1000) for testing, pyaudio.PyAudio() worked.&lt;/P&gt;&lt;P&gt;Have anyone got similar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: The cause maybe in audio group, any user that has audio group permission will encounter this issue. When remove it from audio group, the problem disappears. But I need this permission to use mic, speaker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 09:04:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MMINILPD4-EVK-Audio-PyAudio-Alsa-lib-segment-fault-core/m-p/948793#M141896</guid>
      <dc:creator>expman99</dc:creator>
      <dc:date>2019-08-05T09:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: [IMX8MMINILPD4-EVK - Audio] PyAudio/Alsa lib segment fault (core dumped) with root user</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MMINILPD4-EVK-Audio-PyAudio-Alsa-lib-segment-fault-core/m-p/948794#M141897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try Demo Images&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.14.98_2.0.0_MX8MM&amp;amp;appType=license" target="_blank"&gt;Linux Binary Demo Files - i.MX 8MMini EVK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and use Chapter 7 Audio attached Linux Manual, sect.7.3.1.1 Audio-only playback&lt;/P&gt;&lt;P&gt;Linux Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 23:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MMINILPD4-EVK-Audio-PyAudio-Alsa-lib-segment-fault-core/m-p/948794#M141897</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-08-05T23:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: [IMX8MMINILPD4-EVK - Audio] PyAudio/Alsa lib segment fault (core dumped) with root user</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MMINILPD4-EVK-Audio-PyAudio-Alsa-lib-segment-fault-core/m-p/948795#M141898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="206296" data-username="igorpadykov" href="https://community.nxp.com/people/igorpadykov" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;igorpadykov&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I tried as you recommended. But the issue still&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;occurs sometime&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 03:03:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MMINILPD4-EVK-Audio-PyAudio-Alsa-lib-segment-fault-core/m-p/948795#M141898</guid>
      <dc:creator>expman99</dc:creator>
      <dc:date>2019-08-06T03:03:44Z</dc:date>
    </item>
  </channel>
</rss>

