<?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: Segmentation Fault VPU_DecDecodeBuf with VPU_WRAPPER</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-Fault-VPU-DecDecodeBuf-with-VPU-WRAPPER/m-p/1866386#M223775</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is probably the libfslwrapper.so.3 has a bug on it, but try to download the latest one, it works:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX" target="_blank"&gt;https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 14:44:16 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2024-05-15T14:44:16Z</dc:date>
    <item>
      <title>Segmentation Fault VPU_DecDecodeBuf with VPU_WRAPPER</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-Fault-VPU-DecDecodeBuf-with-VPU-WRAPPER/m-p/1865975#M223750</link>
      <description>&lt;P&gt;I have an IMX.8MP and am trying to decode a H.264 RTP stream of SPS/PPS/ and FU-A NALU's with the vpu wrapper. I'm on &lt;STRONG&gt;5.10.35+g5f6f502e525b&lt;/STRONG&gt; using &lt;STRONG&gt;libfslvpuwrap.so.3.0.0&lt;/STRONG&gt;. Following the decoding calling sequence Ive been successful up until trying to decode a frame with &lt;STRONG&gt;VPU_DecDecodeBuf(). A&lt;/STRONG&gt;ll previous step have being completed in order and returned correctly. Calling &lt;STRONG&gt;VPU_DecDecodeBuf()&lt;/STRONG&gt; always results in a segmentation fault and after debugging Ive checked that the VpuBufferNode is populated with pVirAddr being set with the NALU and nSize being set to the size of the NALU in bytes with all other fields being set to NULL or 0. Am I setting these fields correctly and is there additional documentation on the VPU Wrapper library as the &lt;STRONG&gt;i.MX VPU Application Programming Interface Linux® Reference Manual &lt;/STRONG&gt;does not document these fields? My guess is sCodecData should be initialized, but I don't see any documentation on what I should initialize it to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;Wrapper Configurations output via GDB&lt;BR /&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VpuVersionInfo&lt;/STRONG&gt;: [nFwMajor = 1nFwMinor = 1, nFwRelease = 1, nFwCode = 0,nLibMajor = 1, nLibMinor = 1, nLibRelease = 1, nReserved = 0]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VpuWrapperVersionInfo&lt;/STRONG&gt;: [nMajor = 3, nMinor = 0, nRelease = 0, pBinary = 0xfffff7f0a4d0 "VPUWRAPPER_ARM64_LINUX Build on Jun 3 2021 04:20:32", nReserved = {0, 0, 0, 0}]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VpuDecOpenParam&lt;/STRONG&gt;:&amp;nbsp; [CodecFormat = VPU_V_AVC, nReorderEnable = 1, nChromaInterleave = 0, nMapType = 0, nTiled2LinearEnable = 0, nPicWidth = 0,&lt;BR /&gt;nPicHeight = 0, nEnableFileMode = 0, nEnableVideoCompressor = 0, nPixelFormat = 0, nAdaptiveMode = 0, pAppCxt = 0x0, nSecureMode = 0,&lt;BR /&gt;nSecureBufferAllocSize = 0]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VpuMemInfo&lt;/STRONG&gt;: [nSubBlockNum = 2, MemSubBlock = {{nAlignment = 16, nSize = 6040, MemType = VPU_MEM_VIRT, pVirtAddr = 0xaaaaaaab5150 "",&lt;BR /&gt;pPhyAddr = 0x0, nFd = 0, nReserved = {0, 0, 0}}, {nAlignment = 16, nSize = 16777216, MemType = VPU_MEM_PHY,&lt;BR /&gt;pVirtAddr = 0xfffff6ba0000 &amp;lt;error: Cannot access memory at address 0xfffff6ba0000&amp;gt;,&lt;BR /&gt;pPhyAddr = 0x66300000 &amp;lt;error: Cannot access memory at address 0x66300000&amp;gt;, nFd = 0, nReserved = {0, 0, 0}}}]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DecMemInfo&lt;/STRONG&gt;: [nVirtNum = 1, virtMem = {187649984516432, 0 &amp;lt;repeats 19 times&amp;gt;}, nPhyNum = 1, phyMem_virtAddr = {281474821128192,&lt;BR /&gt;0 &amp;lt;repeats 19 times&amp;gt;}, phyMem_phyAddr = {1714421760, 0 &amp;lt;repeats 19 times&amp;gt;}, phyMem_cpuAddr = {5, 0 &amp;lt;repeats 19 times&amp;gt;},&lt;BR /&gt;phyMem_size = {16777232, 0 &amp;lt;repeats 19 times&amp;gt;}]&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 06:44:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-Fault-VPU-DecDecodeBuf-with-VPU-WRAPPER/m-p/1865975#M223750</guid>
      <dc:creator>hsuq7052</dc:creator>
      <dc:date>2024-05-15T06:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation Fault VPU_DecDecodeBuf with VPU_WRAPPER</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-Fault-VPU-DecDecodeBuf-with-VPU-WRAPPER/m-p/1866386#M223775</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is probably the libfslwrapper.so.3 has a bug on it, but try to download the latest one, it works:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX" target="_blank"&gt;https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 14:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-Fault-VPU-DecDecodeBuf-with-VPU-WRAPPER/m-p/1866386#M223775</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-05-15T14:44:16Z</dc:date>
    </item>
  </channel>
</rss>

